Added 320 fresh seednodes to replace the old ones.
[novacoin.git] / makefile.mingw
1 # Copyright (c) 2009-2010 Satoshi Nakamoto
2 # Distributed under the MIT/X11 software license, see the accompanying
3 # file license.txt or http://www.opensource.org/licenses/mit-license.php.
4
5
6 INCLUDEPATHS= \
7  -I"/boost" \
8  -I"/db/build_unix" \
9  -I"/openssl/include" \
10  -I"/wxwidgets/lib/gcc_lib/mswud" \
11  -I"/wxwidgets/include"
12
13 LIBPATHS= \
14  -L"/boost/stage/lib" \
15  -L"/db/build_unix" \
16  -L"/openssl/out" \
17  -L"/wxwidgets/lib/gcc_lib"
18
19 WXLIBS= \
20  -l wxmsw29ud_html -l wxmsw29ud_core -l wxmsw29ud_adv -l wxbase29ud -l wxtiffd -l wxjpegd -l wxpngd -l wxzlibd
21
22 LIBS= \
23  -l libboost_system-mgw34-mt-d \
24  -l libboost_filesystem-mgw34-mt-d \
25  -l libboost_program_options-mgw34-mt-d \
26  -l libboost_thread-mgw34-mt-d \
27  -l db_cxx \
28  -l eay32 \
29  -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l shlwapi
30
31 DEFS=-DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH
32 DEBUGFLAGS=-g -D__WXDEBUG__
33 CFLAGS=-mthreads -O2 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
34 HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \
35     script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h noui.h init.h
36
37 OBJS= \
38     obj/util.o \
39     obj/script.o \
40     obj/db.o \
41     obj/net.o \
42     obj/irc.o \
43     obj/main.o \
44     obj/rpc.o \
45     obj/init.o \
46     cryptopp/obj/sha.o \
47     cryptopp/obj/cpu.o
48
49
50 all: bitcoin.exe
51
52
53 obj/%.o: %.cpp $(HEADERS)
54         g++ -c $(CFLAGS) -DGUI -o $@ $<
55
56 cryptopp/obj/%.o: cryptopp/%.cpp
57         g++ -c $(CFLAGS) -O3 -DCRYPTOPP_X86_ASM_AVAILABLE -o $@ $<
58
59 obj/ui_res.o: 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
60         windres $(DEFS) $(INCLUDEPATHS) -o $@ -i $<
61
62 bitcoin.exe: $(OBJS) obj/ui.o obj/uibase.o obj/ui_res.o
63         g++ $(CFLAGS) -mwindows -Wl,--subsystem,windows -o $@ $(LIBPATHS) $^ $(WXLIBS) $(LIBS)
64
65
66 obj/nogui/%.o: %.cpp $(HEADERS)
67         g++ -c $(CFLAGS) -o $@ $<
68
69 bitcoind.exe: $(OBJS:obj/%=obj/nogui/%) obj/ui_res.o
70         g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
71
72
73 clean:
74         -del /Q obj\*
75         -del /Q obj\nogui\*
76         -del /Q cryptopp\obj\*
77         -del /Q headers.h.gch