]>
Commit | Line | Data |
---|---|---|
0706fb23 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
f509d00d | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
0706fb23 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
7921cf2b | 6 | |
250700e4 | 7 | !include <../../build/config.vc> |
0706fb23 VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
e9877ed3 VS |
15 | CLIENT_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGFLAG_2) /DWIN32 \ |
16 | $(__DEBUGFLAG) $(____DEBUGFLAG_0) /Fd$(OBJS)\client.pdb $(__OPTIMIZEFLAG) \ | |
17 | /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
18 | /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff /I.\..\..\src\jpeg \ | |
19 | /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \ | |
20 | /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS $(CXXFLAGS) | |
21 | CLIENT_OBJECTS = \ | |
22 | $(OBJS)\client_client.obj \ | |
23 | $(OBJS)\client_client.res | |
24 | LIBDIRNAME = \ | |
25 | .\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
26 | OBJS = \ | |
27 | vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
28 | SERVER_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGFLAG_2) /DWIN32 \ | |
29 | $(__DEBUGFLAG) $(____DEBUGFLAG_0) /Fd$(OBJS)\server.pdb $(__OPTIMIZEFLAG) \ | |
30 | /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
31 | /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff /I.\..\..\src\jpeg \ | |
32 | /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \ | |
33 | /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS $(CXXFLAGS) | |
34 | SERVER_OBJECTS = \ | |
35 | $(OBJS)\server_server.obj \ | |
36 | $(OBJS)\server_server.res | |
0706fb23 VS |
37 | |
38 | ### Conditionally set variables: ### | |
39 | ||
40 | !if "$(USE_GUI)" == "0" | |
41 | PORTNAME = base | |
42 | !endif | |
43 | !if "$(USE_GUI)" == "1" | |
44 | PORTNAME = msw | |
45 | !endif | |
46 | !if "$(BUILD)" == "debug" | |
47 | WXDEBUGFLAG = d | |
48 | !endif | |
49 | !if "$(SHARED)" == "1" | |
50 | WXDLLFLAG = dll | |
51 | !endif | |
52 | !if "$(UNICODE)" == "1" | |
53 | WXUNICODEFLAG = u | |
54 | !endif | |
55 | !if "$(WXUNIV)" == "1" | |
56 | WXUNIVNAME = univ | |
57 | !endif | |
58 | !if "$(BUILD)" == "debug" | |
bdc408c4 | 59 | __DEBUGFLAG = /Zi |
250700e4 RD |
60 | !endif |
61 | !if "$(BUILD)" == "release" | |
62 | __DEBUGFLAG = | |
63 | !endif | |
64 | !if "$(BUILD)" == "debug" | |
bdc408c4 | 65 | __DEBUGFLAG_1 = /DEBUG |
250700e4 RD |
66 | !endif |
67 | !if "$(BUILD)" == "release" | |
bdc408c4 | 68 | __DEBUGFLAG_1 = |
250700e4 RD |
69 | !endif |
70 | !if "$(BUILD)" == "debug" | |
e9877ed3 | 71 | __DEBUGFLAG_2 = d |
250700e4 RD |
72 | !endif |
73 | !if "$(BUILD)" == "release" | |
e9877ed3 | 74 | __DEBUGFLAG_2 = |
250700e4 RD |
75 | !endif |
76 | !if "$(BUILD)" == "debug" | |
0706fb23 VS |
77 | __DEBUG_DEFINE_p = /D__WXDEBUG__ |
78 | !endif | |
79 | !if "$(BUILD)" == "debug" | |
e9877ed3 | 80 | __DEBUG_DEFINE_p_0 = /d __WXDEBUG__ |
0706fb23 VS |
81 | !endif |
82 | !if "$(SHARED)" == "1" | |
83 | __DLLFLAG_p = /DWXUSINGDLL | |
84 | !endif | |
85 | !if "$(SHARED)" == "1" | |
e9877ed3 VS |
86 | __DLLFLAG_p_0 = /d WXUSINGDLL |
87 | !endif | |
88 | !if "$(USE_GUI)" == "1" | |
89 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
90 | !endif | |
91 | !if "$(USE_GUI)" == "1" | |
92 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
93 | !endif | |
94 | !if "$(USE_GUI)" == "1" | |
95 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
250700e4 RD |
96 | !endif |
97 | !if "$(BUILD)" == "debug" | |
98 | __OPTIMIZEFLAG = /Od | |
99 | !endif | |
100 | !if "$(BUILD)" == "release" | |
101 | __OPTIMIZEFLAG = /O2 | |
102 | !endif | |
103 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
104 | __RUNTIME_LIBS = D | |
105 | !endif | |
106 | !if "$(RUNTIME_LIBS)" == "static" | |
f509d00d | 107 | __RUNTIME_LIBS = T |
0706fb23 VS |
108 | !endif |
109 | !if "$(UNICODE)" == "1" | |
110 | __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1 | |
111 | !endif | |
112 | !if "$(UNICODE)" == "1" | |
e9877ed3 | 113 | __UNICODE_DEFINE_p_0 = /d wxUSE_UNICODE=1 |
0706fb23 VS |
114 | !endif |
115 | !if "$(MONOLITHIC)" == "0" | |
116 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
117 | !endif | |
118 | !if "$(MONOLITHIC)" == "0" | |
e9877ed3 VS |
119 | __WXLIB_CORE_p = \ |
120 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
0706fb23 VS |
121 | !endif |
122 | !if "$(MONOLITHIC)" == "1" | |
e9877ed3 VS |
123 | __WXLIB_MONO_p = \ |
124 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
125 | !endif | |
126 | !if "$(MONOLITHIC)" == "0" | |
127 | __WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib | |
0706fb23 VS |
128 | !endif |
129 | !if "$(WXUNIV)" == "1" | |
130 | __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__ | |
131 | !endif | |
132 | !if "$(WXUNIV)" == "1" | |
e9877ed3 | 133 | __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__ |
0706fb23 | 134 | !endif |
bdc408c4 | 135 | !if "$(BUILD)" == "debug" |
e9877ed3 | 136 | ____DEBUGFLAG = /d _DEBUG |
bdc408c4 VS |
137 | !endif |
138 | !if "$(BUILD)" == "release" | |
e9877ed3 | 139 | ____DEBUGFLAG = /d NDEBUG |
bdc408c4 VS |
140 | !endif |
141 | !if "$(BUILD)" == "debug" | |
e9877ed3 | 142 | ____DEBUGFLAG_0 = /D_DEBUG |
bdc408c4 VS |
143 | !endif |
144 | !if "$(BUILD)" == "release" | |
e9877ed3 | 145 | ____DEBUGFLAG_0 = /DNDEBUG |
bdc408c4 | 146 | !endif |
0706fb23 VS |
147 | |
148 | ||
149 | all: $(OBJS) | |
150 | $(OBJS): | |
151 | -if not exist $(OBJS) mkdir $(OBJS) | |
152 | ||
153 | ### Targets: ### | |
154 | ||
250700e4 RD |
155 | all: $(OBJS)\client.exe $(OBJS)\server.exe |
156 | ||
157 | $(OBJS)\client_client.obj: .\client.cpp | |
158 | $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $** | |
159 | ||
160 | $(OBJS)\client_client.res: .\client.rc | |
e9877ed3 | 161 | rc /fo$@ /d WIN32 $(____DEBUGFLAG) /d __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) /i .\..\..\include /i $(LIBDIRNAME) /i .\..\..\src\tiff /i .\..\..\src\jpeg /i .\..\..\src\png /i .\..\..\src\zlib /i .\..\..\src\regex /i .\..\..\src\expat\lib /i . $(__DLLFLAG_p_0) /d _WINDOWS $** |
0706fb23 | 162 | |
250700e4 RD |
163 | $(OBJS)\server_server.obj: .\server.cpp |
164 | $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $** | |
0706fb23 | 165 | |
250700e4 | 166 | $(OBJS)\server_server.res: .\server.rc |
e9877ed3 | 167 | rc /fo$@ /d WIN32 $(____DEBUGFLAG) /d __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) /i .\..\..\include /i $(LIBDIRNAME) /i .\..\..\src\tiff /i .\..\..\src\jpeg /i .\..\..\src\png /i .\..\..\src\zlib /i .\..\..\src\regex /i .\..\..\src\expat\lib /i . $(__DLLFLAG_p_0) /d _WINDOWS $** |
0706fb23 VS |
168 | |
169 | clean: | |
170 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
171 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
250700e4 RD |
172 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe |
173 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe | |
0706fb23 | 174 | |
e9877ed3 VS |
175 | $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res |
176 | link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGFLAG_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<< | |
177 | $(CLIENT_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib | |
0706fb23 VS |
178 | << |
179 | ||
e9877ed3 VS |
180 | $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res |
181 | link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGFLAG_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<< | |
182 | $(SERVER_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib | |
250700e4 | 183 | << |