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.
|
|
|
|
|
|
|
|
|
2010-02-17 18:22:01 +01:00
|
|
|
INCLUDEPATHS= \
|
|
|
|
/I"/boost" \
|
|
|
|
/I"/db/build_windows" \
|
|
|
|
/I"/openssl/include" \
|
|
|
|
/I"/wxwidgets/lib/vc_lib/mswud" \
|
|
|
|
/I"/wxwidgets/include"
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-17 18:22:01 +01:00
|
|
|
LIBPATHS= \
|
|
|
|
/LIBPATH:"/boost/stage/lib" \
|
|
|
|
/LIBPATH:"/db/build_windows/debug" \
|
|
|
|
/LIBPATH:"/openssl/out" \
|
|
|
|
/LIBPATH:"/wxwidgets/lib/vc_lib"
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-07-26 19:15:18 +02:00
|
|
|
WXLIBS=wxmsw29ud_html.lib wxmsw29ud_core.lib wxmsw29ud_adv.lib wxbase29ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib
|
|
|
|
|
2009-08-30 05:46:39 +02:00
|
|
|
LIBS= \
|
2010-07-26 19:15:18 +02:00
|
|
|
libboost_system-vc80-mt-gd.lib \
|
|
|
|
libboost_filesystem-vc80-mt-gd.lib \
|
|
|
|
libboost_program_options-vc80-mt-gd.lib \
|
|
|
|
libboost_thread-vc80-mt-gd.lib \
|
2010-02-17 18:22:01 +01:00
|
|
|
libdb47sd.lib \
|
|
|
|
libeay32.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
|
|
|
|
|
2010-07-26 19:15:18 +02:00
|
|
|
DEFS=/DWIN32 /D__WXMSW__ /D_WINDOWS /DNOPCH
|
2010-07-27 20:14:32 +02:00
|
|
|
DEBUGFLAGS=/Zi /D__WXDEBUG__
|
2010-07-26 19:15:18 +02:00
|
|
|
CFLAGS=/c /nologo /MDd /EHsc /GR /Zm300 $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
|
2010-02-25 22:55:27 +01:00
|
|
|
HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \
|
2010-07-27 20:14:32 +02:00
|
|
|
script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h noui.h init.h
|
|
|
|
|
|
|
|
OBJS= \
|
|
|
|
obj\util.obj \
|
|
|
|
obj\script.obj \
|
|
|
|
obj\db.obj \
|
|
|
|
obj\net.obj \
|
|
|
|
obj\irc.obj \
|
|
|
|
obj\main.obj \
|
|
|
|
obj\rpc.obj \
|
|
|
|
obj\init.obj \
|
|
|
|
cryptopp\obj\sha.obj \
|
|
|
|
cryptopp\obj\cpu.obj
|
2009-08-30 05:46:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
all: bitcoin.exe
|
|
|
|
|
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
.cpp{obj}.obj:
|
2010-07-27 20:14:32 +02:00
|
|
|
cl $(CFLAGS) /DGUI /Fo$@ %s
|
2010-02-25 22:55:27 +01:00
|
|
|
|
|
|
|
obj\util.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\script.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\db.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\net.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\irc.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\main.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\rpc.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\init.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\ui.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\uibase.obj: $(HEADERS)
|
|
|
|
|
2010-07-27 20:14:32 +02:00
|
|
|
cryptopp\obj\sha.obj: cryptopp\sha.cpp
|
2010-07-28 23:11:09 +02:00
|
|
|
cl $(CFLAGS) /O2 /DCRYPTOPP_DISABLE_ASM /Fo$@ %s
|
2010-02-12 21:38:44 +01:00
|
|
|
|
2010-07-27 20:14:32 +02:00
|
|
|
cryptopp\obj\cpu.obj: cryptopp\cpu.cpp
|
2010-07-28 23:11:09 +02:00
|
|
|
cl $(CFLAGS) /O2 /DCRYPTOPP_DISABLE_ASM /Fo$@ %s
|
2010-02-25 22:55:27 +01:00
|
|
|
|
2010-07-27 20:14:32 +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) $(DEFS) /Fo$@ %s
|
2010-02-25 22:55:27 +01:00
|
|
|
|
2010-07-27 20:14:32 +02:00
|
|
|
bitcoin.exe: $(OBJS) obj\ui.obj obj\uibase.obj obj\ui.res
|
2010-07-26 19:15:18 +02:00
|
|
|
link /nologo /DEBUG /SUBSYSTEM:WINDOWS /OUT:$@ $(LIBPATHS) $** $(WXLIBS) $(LIBS)
|
2010-02-25 22:55:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
.cpp{obj\nogui}.obj:
|
2010-07-27 20:14:32 +02:00
|
|
|
cl $(CFLAGS) /Fo$@ %s
|
2010-02-25 22:55:27 +01:00
|
|
|
|
|
|
|
obj\nogui\util.obj: $(HEADERS)
|
|
|
|
|
|
|
|
obj\nogui\script.obj: $(HEADERS)
|
|
|
|
|
|
|
|
obj\nogui\db.obj: $(HEADERS)
|
|
|
|
|
|
|
|
obj\nogui\net.obj: $(HEADERS)
|
|
|
|
|
|
|
|
obj\nogui\irc.obj: $(HEADERS)
|
|
|
|
|
|
|
|
obj\nogui\main.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\nogui\rpc.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-02-25 22:55:27 +01:00
|
|
|
obj\nogui\init.obj: $(HEADERS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
2010-07-27 20:14:32 +02:00
|
|
|
bitcoind.exe: $(OBJS:obj\=obj\nogui\) obj\ui.res
|
|
|
|
link /nologo /DEBUG /OUT:$@ $(LIBPATHS) $** $(LIBS)
|
2009-08-30 05:46:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2010-07-27 20:14:32 +02:00
|
|
|
-del /Q obj\*
|
|
|
|
-del /Q obj\nogui\*
|
|
|
|
-del /Q cryptopp\obj\*
|
|
|
|
-del /Q *.ilk
|
|
|
|
-del /Q *.pdb
|