]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
250700e4 | 7 | include ../../build/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
bdc408c4 | 15 | CLIENT_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS) |
3b20263d | 16 | OBJS = gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
bdc408c4 | 17 | SERVER_CXXFLAGS = $(CPPFLAGS) $(__DEBUGFLAG) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS) |
3b20263d VS |
18 | |
19 | ### Conditionally set variables: ### | |
20 | ||
250700e4 RD |
21 | ifeq ($(GCC_VERSION),2.95) |
22 | GCCFLAGS = -fvtable-thunks | |
23 | endif | |
3b20263d VS |
24 | ifeq ($(USE_GUI),0) |
25 | PORTNAME = base | |
26 | endif | |
27 | ifeq ($(USE_GUI),1) | |
28 | PORTNAME = msw | |
29 | endif | |
30 | ifeq ($(BUILD),debug) | |
31 | WXDEBUGFLAG = d | |
32 | endif | |
33 | ifeq ($(SHARED),1) | |
34 | WXDLLFLAG = dll | |
35 | endif | |
36 | ifeq ($(UNICODE),1) | |
37 | WXUNICODEFLAG = u | |
38 | endif | |
39 | ifeq ($(WXUNIV),1) | |
40 | WXUNIVNAME = univ | |
41 | endif | |
42 | ifeq ($(BUILD),debug) | |
250700e4 RD |
43 | __DEBUGFLAG = -g |
44 | endif | |
45 | ifeq ($(BUILD),release) | |
46 | __DEBUGFLAG = | |
47 | endif | |
48 | ifeq ($(BUILD),debug) | |
3b20263d VS |
49 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
50 | endif | |
51 | ifeq ($(BUILD),debug) | |
250700e4 | 52 | __DEBUG_DEFINE_p_0 = --define __WXDEBUG__ |
3b20263d VS |
53 | endif |
54 | ifeq ($(SHARED),1) | |
55 | __DLLFLAG_p = -DWXUSINGDLL | |
56 | endif | |
57 | ifeq ($(SHARED),1) | |
250700e4 RD |
58 | __DLLFLAG_p_0 = --define WXUSINGDLL |
59 | endif | |
60 | ifeq ($(BUILD),debug) | |
61 | __OPTIMIZEFLAG = -O0 | |
62 | endif | |
63 | ifeq ($(BUILD),release) | |
64 | __OPTIMIZEFLAG = -O2 | |
3b20263d VS |
65 | endif |
66 | ifeq ($(UNICODE),1) | |
67 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
68 | endif | |
69 | ifeq ($(UNICODE),1) | |
250700e4 | 70 | __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=1 |
3b20263d VS |
71 | endif |
72 | ifeq ($(MONOLITHIC),0) | |
73 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
74 | endif | |
75 | ifeq ($(MONOLITHIC),0) | |
76 | __WXLIB_CORE_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
77 | endif | |
78 | ifeq ($(MONOLITHIC),1) | |
79 | __WXLIB_MONO_p = -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
80 | endif | |
81 | ifeq ($(WXUNIV),1) | |
82 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
83 | endif | |
84 | ifeq ($(WXUNIV),1) | |
250700e4 | 85 | __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__ |
3b20263d VS |
86 | endif |
87 | ||
88 | ||
89 | all: $(OBJS) | |
90 | $(OBJS): | |
91 | -if not exist $(OBJS) mkdir $(OBJS) | |
92 | ||
93 | ### Targets: ### | |
94 | ||
250700e4 | 95 | all: $(OBJS)\client.exe $(OBJS)\server.exe |
3b20263d | 96 | |
250700e4 RD |
97 | $(OBJS)\client_client.o: .\client.cpp |
98 | $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $< | |
3b20263d | 99 | |
250700e4 | 100 | $(OBJS)\client_client_rc.o: .\client.rc |
bdc408c4 | 101 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) --include-dir ./../../include --include-dir ./../../lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) --include-dir ./../../src/tiff --include-dir ./../../src/jpeg --include-dir ./../../src/png --include-dir ./../../src/zlib --include-dir ./../../src/regex --include-dir ./../../src/expat/lib --include-dir . $(__DLLFLAG_p_0) |
250700e4 RD |
102 | |
103 | $(OBJS)\server_server.o: .\server.cpp | |
104 | $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $< | |
105 | ||
106 | $(OBJS)\server_server_rc.o: .\server.rc | |
bdc408c4 | 107 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) --include-dir ./../../include --include-dir ./../../lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) --include-dir ./../../src/tiff --include-dir ./../../src/jpeg --include-dir ./../../src/png --include-dir ./../../src/zlib --include-dir ./../../src/regex --include-dir ./../../src/expat/lib --include-dir . $(__DLLFLAG_p_0) |
3b20263d VS |
108 | |
109 | clean: | |
110 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
250700e4 RD |
111 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe |
112 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe | |
3b20263d | 113 | |
250700e4 | 114 | $(OBJS)\client.exe: $(OBJS)\client_client.o $(OBJS)\client_client_rc.o |
bdc408c4 | 115 | $(CXX) -o $@ $(OBJS)\client_client.o $(OBJS)\client_client_rc.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxtiff$(WXDEBUGFLAG) -lwxjpeg$(WXDEBUGFLAG) -lwxpng$(WXDEBUGFLAG) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 |
3b20263d | 116 | |
250700e4 | 117 | $(OBJS)\server.exe: $(OBJS)\server_server.o $(OBJS)\server_server_rc.o |
bdc408c4 | 118 | $(CXX) -o $@ $(OBJS)\server_server.o $(OBJS)\server_server_rc.o $(LDFLAGS) $(__DEBUGFLAG) -mthreads -L.\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxtiff$(WXDEBUGFLAG) -lwxjpeg$(WXDEBUGFLAG) -lwxpng$(WXDEBUGFLAG) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 |
3b20263d | 119 | |
250700e4 | 120 | .PHONY: all clean |