diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-02-25 21:55:27 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-02-25 21:55:27 +0000 |
commit | 5eede9d4d9932969cd75a47dc0d6fd4c090f0342 (patch) | |
tree | a583b1254b26f49572fb48c52523977b75beabd2 /makefile.vc | |
parent | 30158c77e99a099cbdd556bacbac18b431c3870c (diff) |
GUI-less build target bitcoind that links to wxBase and shouldn't need GTK,
split init and shutdown from ui.cpp into init.cpp,
support wxUSE_GUI=0
-- version 0.2.7
Diffstat (limited to 'makefile.vc')
-rw-r--r-- | makefile.vc | 87 |
1 files changed, 55 insertions, 32 deletions
diff --git a/makefile.vc b/makefile.vc index c407be3d2f..41f13522a0 100644 --- a/makefile.vc +++ b/makefile.vc @@ -28,57 +28,80 @@ LIBS= \ WXDEFS=/DWIN32 /D__WXMSW__ /D_WINDOWS /DNOPCH
DEBUGFLAGS=/Zi /Od /D__WXDEBUG__
CFLAGS=/c /nologo /Ob0 /MDd /EHsc /GR /Zm300 $(DEBUGFLAGS) $(WXDEFS) $(INCLUDEPATHS)
-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 rpc.h uibase.h ui.h
-
+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 rpc.h uibase.h ui.h init.h sha.h
all: bitcoin.exe
-obj\util.obj: util.cpp $(HEADERS)
- cl $(CFLAGS) /Fo$@ %s
+.cpp{obj}.obj:
+ cl $(CFLAGS) /Fo$@ %s
+
+obj\util.obj: $(HEADERS)
-obj\script.obj: script.cpp $(HEADERS)
- cl $(CFLAGS) /Fo$@ %s
+obj\script.obj: $(HEADERS)
-obj\db.obj: db.cpp $(HEADERS)
- cl $(CFLAGS) /Fo$@ %s
+obj\db.obj: $(HEADERS)
-obj\net.obj: net.cpp $(HEADERS)
- cl $(CFLAGS) /Fo$@ %s
+obj\net.obj: $(HEADERS)
-obj\main.obj: main.cpp $(HEADERS) sha.h
- cl $(CFLAGS) /Fo$@ %s
+obj\irc.obj: $(HEADERS)
-obj\ui.obj: ui.cpp $(HEADERS)
- cl $(CFLAGS) /Fo$@ %s
+obj\main.obj: $(HEADERS)
-obj\uibase.obj: uibase.cpp uibase.h
- cl $(CFLAGS) /Fo$@ %s
+obj\rpc.obj: $(HEADERS)
-obj\sha.obj: sha.cpp sha.h
- cl $(CFLAGS) /O2 /Fo$@ %s
+obj\init.obj: $(HEADERS)
-obj\irc.obj: irc.cpp $(HEADERS)
- cl $(CFLAGS) /Fo$@ %s
+obj\ui.obj: $(HEADERS)
-obj\rpc.obj: rpc.cpp $(HEADERS)
- cl $(CFLAGS) /Fo$@ %s
+obj\uibase.obj: $(HEADERS)
+
+obj\sha.obj: sha.cpp sha.h
+ cl $(CFLAGS) /O2 /Fo$@ %s
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
+ rc $(INCLUDEPATHS) $(WXDEFS) /Fo$@ %s
+
+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
+
+bitcoin.exe: $(OBJS) obj\ui.obj obj\uibase.obj obj\sha.obj obj\ui.res
+ link /nologo /DEBUG /SUBSYSTEM:WINDOWS /OUT:$@ $(LIBPATHS) $** $(LIBS)
+
+
+.cpp{obj\nogui}.obj:
+ cl $(CFLAGS) /DwxUSE_GUI=0 /Fo$@ %s
+
+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)
+obj\nogui\rpc.obj: $(HEADERS)
+obj\nogui\init.obj: $(HEADERS)
-OBJS=obj\util.obj obj\script.obj obj\db.obj obj\net.obj obj\main.obj \
- obj\ui.obj obj\uibase.obj obj\sha.obj obj\irc.obj obj\rpc.obj \
- obj\ui.res
+bitcoind.exe: $(OBJS:obj\=obj\nogui\) obj\sha.obj obj\ui.res
+ link /nologo /DEBUG /OUT:$@ $(LIBPATHS) $** $(LIBS)
-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
+ -del /Q obj\*
+ -del *.ilk
+ -del *.pdb
|