2010-02-12 21:38:44 +01:00
|
|
|
# Copyright (c) 2009-2010 Satoshi Nakamoto
|
2009-08-30 05:46:39 +02:00
|
|
|
# Distributed under the MIT/X11 software license, see the accompanying
|
|
|
|
# file license.txt or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
|
|
|
|
!IF "$(BUILD)" != "debug" && "$(BUILD)" != "release"
|
|
|
|
BUILD=debug
|
|
|
|
!ENDIF
|
|
|
|
!IF "$(BUILD)" == "debug"
|
|
|
|
D=d
|
|
|
|
DEBUGFLAGS=/Zi /Od /D__WXDEBUG__
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-29 21:10:46 +01:00
|
|
|
INCLUDEPATHS=/I"/boost" /I"/db/build_windows" /I"/openssl/include" /I"/wxwidgets/lib/vc_lib/mswd" /I"/wxwidgets/include"
|
2010-02-12 21:38:44 +01:00
|
|
|
LIBPATHS=/LIBPATH:"/boost/stage/lib" /LIBPATH:"/db/build_windows/$(BUILD)" /LIBPATH:"/openssl/out" /LIBPATH:"/wxwidgets/lib/vc_lib"
|
2009-08-30 05:46:39 +02:00
|
|
|
LIBS= \
|
2010-02-12 21:38:44 +01:00
|
|
|
libboost_system-vc80-mt-gd.lib libboost_filesystem-vc80-mt-gd.lib \
|
2009-08-30 05:46:39 +02:00
|
|
|
libdb47s$(D).lib \
|
|
|
|
libeay32.lib \
|
2009-10-21 03:08:05 +02:00
|
|
|
wxmsw28$(D)_richtext.lib wxmsw28$(D)_html.lib wxmsw28$(D)_core.lib wxmsw28$(D)_adv.lib wxbase28$(D).lib wxtiff$(D).lib wxjpeg$(D).lib wxpng$(D).lib wxzlib$(D).lib wxregex$(D).lib wxexpat$(D).lib \
|
|
|
|
kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib ws2_32.lib shlwapi.lib
|
2009-08-30 05:46:39 +02:00
|
|
|
WXDEFS=/DWIN32 /D__WXMSW__ /D_WINDOWS /DNOPCH
|
|
|
|
CFLAGS=/c /nologo /Ob0 /MD$(D) /EHsc /GR /Zm300 /YX /Fpobj/headers.pch $(DEBUGFLAGS) $(WXDEFS) $(INCLUDEPATHS)
|
2010-02-12 21:38:44 +01:00
|
|
|
HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h script.h db.h net.h irc.h main.h market.h rpc.h uibase.h ui.h
|
2009-08-30 05:46:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all: bitcoin.exe
|
|
|
|
|
|
|
|
|
|
|
|
obj\util.obj: util.cpp $(HEADERS)
|
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
|
|
|
|
|
|
|
obj\script.obj: script.cpp $(HEADERS)
|
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
|
|
|
|
2010-02-12 21:38:44 +01:00
|
|
|
obj\db.obj: db.cpp $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
|
|
|
|
2010-02-12 21:38:44 +01:00
|
|
|
obj\net.obj: net.cpp $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
|
|
|
|
2010-02-12 21:38:44 +01:00
|
|
|
obj\main.obj: main.cpp $(HEADERS) sha.h
|
2009-08-30 05:46:39 +02:00
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
|
|
|
|
2010-02-12 21:38:44 +01:00
|
|
|
obj\market.obj: market.cpp $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
|
|
|
|
2010-02-12 21:38:44 +01:00
|
|
|
obj\ui.obj: ui.cpp $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
|
|
|
|
|
|
|
obj\uibase.obj: uibase.cpp uibase.h
|
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
|
|
|
|
2010-02-12 21:38:44 +01:00
|
|
|
obj\sha.obj: sha.cpp sha.h
|
2009-08-30 05:46:39 +02:00
|
|
|
cl $(CFLAGS) /O2 /Fo$@ %s
|
|
|
|
|
|
|
|
obj\irc.obj: irc.cpp $(HEADERS)
|
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
|
|
|
|
2010-02-12 21:38:44 +01:00
|
|
|
obj\rpc.obj: rpc.cpp $(HEADERS)
|
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
|
|
|
|
2009-08-30 05:46:39 +02:00
|
|
|
obj\ui.res: ui.rc rc/bitcoin.ico rc/check.ico rc/send16.bmp rc/send16mask.bmp rc/send16masknoshadow.bmp rc/send20.bmp rc/send20mask.bmp rc/addressbook16.bmp rc/addressbook16mask.bmp rc/addressbook20.bmp rc/addressbook20mask.bmp
|
|
|
|
rc $(INCLUDEPATHS) $(WXDEFS) /Fo$@ %s
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OBJS=obj\util.obj obj\script.obj obj\db.obj obj\net.obj obj\main.obj obj\market.obj \
|
2010-02-12 21:38:44 +01:00
|
|
|
obj\ui.obj obj\uibase.obj obj\sha.obj obj\irc.obj obj\rpc.obj \
|
|
|
|
obj\ui.res
|
2009-08-30 05:46:39 +02:00
|
|
|
|
|
|
|
bitcoin.exe: $(OBJS)
|
|
|
|
-kill /f bitcoin.exe & sleep 1
|
|
|
|
link /nologo /DEBUG /SUBSYSTEM:WINDOWS /OUT:$@ $(LIBPATHS) $** $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-del /Q obj\*
|
|
|
|
-del *.ilk
|
|
|
|
-del *.pdb
|