]>
Commit | Line | Data |
---|---|---|
1 | # =========================================================================\r | |
2 | # This makefile was generated by\r | |
3 | # Bakefile 0.2.8 (http://www.bakefile.org)\r | |
4 | # Do not modify, all changes will be overwritten!\r | |
5 | # =========================================================================\r | |
6 | \r | |
7 | include ../../build/msw/config.gcc\r | |
8 | \r | |
9 | # -------------------------------------------------------------------------\r | |
10 | # Do not modify the rest of this file!\r | |
11 | # -------------------------------------------------------------------------\r | |
12 | \r | |
13 | ### Variables: ###\r | |
14 | \r | |
15 | CPPDEPS = -MT$@ -MF$@.d -MD -MP\r | |
16 | WX_RELEASE_NODOT = 29\r | |
17 | COMPILER_PREFIX = gcc\r | |
18 | OBJS = \\r | |
19 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r | |
20 | LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r | |
21 | SETUPHDIR = \\r | |
22 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
23 | CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r | |
24 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r | |
25 | $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r | |
26 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r | |
27 | -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r | |
28 | -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \\r | |
29 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r | |
30 | CLIENT_OBJECTS = \\r | |
31 | $(OBJS)\client_sample_rc.o \ | |
32 | $(OBJS)\client_client.o | |
33 | SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r | |
34 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r | |
35 | $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r | |
36 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r | |
37 | -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r | |
38 | -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \\r | |
39 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r | |
40 | SERVER_OBJECTS = \\r | |
41 | $(OBJS)\server_sample_rc.o \ | |
42 | $(OBJS)\server_server.o | |
43 | BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r | |
44 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r | |
45 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r | |
46 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r | |
47 | $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r | |
48 | $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r | |
49 | $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \\r | |
50 | $(CXXFLAGS)\r | |
51 | BASECLIENT_OBJECTS = \\r | |
52 | $(OBJS)\baseclient_baseclient.o\r | |
53 | BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r | |
54 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r | |
55 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r | |
56 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r | |
57 | $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r | |
58 | $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r | |
59 | $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \\r | |
60 | $(CXXFLAGS)\r | |
61 | BASESERVER_OBJECTS = \\r | |
62 | $(OBJS)\baseserver_baseserver.o\r | |
63 | \r | |
64 | ### Conditionally set variables: ###\r | |
65 | \r | |
66 | ifeq ($(GCC_VERSION),2.95)\r | |
67 | GCCFLAGS = -fvtable-thunks\r | |
68 | endif\r | |
69 | ifeq ($(USE_GUI),0)\r | |
70 | PORTNAME = base\r | |
71 | endif\r | |
72 | ifeq ($(USE_GUI),1)\r | |
73 | PORTNAME = msw\r | |
74 | endif\r | |
75 | ifeq ($(BUILD),debug)\r | |
76 | WXDEBUGFLAG = d\r | |
77 | endif\r | |
78 | ifeq ($(UNICODE),1)\r | |
79 | WXUNICODEFLAG = u\r | |
80 | endif\r | |
81 | ifeq ($(WXUNIV),1)\r | |
82 | WXUNIVNAME = univ\r | |
83 | endif\r | |
84 | ifeq ($(SHARED),1)\r | |
85 | WXDLLFLAG = dll\r | |
86 | endif\r | |
87 | ifeq ($(SHARED),0)\r | |
88 | LIBTYPE_SUFFIX = lib\r | |
89 | endif\r | |
90 | ifeq ($(SHARED),1)\r | |
91 | LIBTYPE_SUFFIX = dll\r | |
92 | endif\r | |
93 | ifeq ($(MONOLITHIC),0)\r | |
94 | EXTRALIBS_FOR_BASE = \r | |
95 | endif\r | |
96 | ifeq ($(MONOLITHIC),1)\r | |
97 | EXTRALIBS_FOR_BASE = \r | |
98 | endif\r | |
99 | ifeq ($(USE_GUI),1)\r | |
100 | __client___depname = $(OBJS)\client.exe\r | |
101 | endif\r | |
102 | ifeq ($(USE_GUI),1)\r | |
103 | __server___depname = $(OBJS)\server.exe\r | |
104 | endif\r | |
105 | ifeq ($(WXUNIV),1)\r | |
106 | __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__\r | |
107 | endif\r | |
108 | ifeq ($(DEBUG_FLAG),0)\r | |
109 | __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0\r | |
110 | endif\r | |
111 | ifeq ($(BUILD),release)\r | |
112 | __NDEBUG_DEFINE_p_0 = --define NDEBUG\r | |
113 | endif\r | |
114 | ifeq ($(USE_EXCEPTIONS),0)\r | |
115 | __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS\r | |
116 | endif\r | |
117 | ifeq ($(USE_RTTI),0)\r | |
118 | __RTTI_DEFINE_p_0 = --define wxNO_RTTI\r | |
119 | endif\r | |
120 | ifeq ($(USE_THREADS),0)\r | |
121 | __THREAD_DEFINE_p_0 = --define wxNO_THREADS\r | |
122 | endif\r | |
123 | ifeq ($(UNICODE),0)\r | |
124 | __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0\r | |
125 | endif\r | |
126 | ifeq ($(UNICODE),1)\r | |
127 | __UNICODE_DEFINE_p_0 = --define _UNICODE\r | |
128 | endif\r | |
129 | ifeq ($(MSLU),1)\r | |
130 | __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1\r | |
131 | endif\r | |
132 | ifeq ($(USE_CAIRO),1)\r | |
133 | __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r | |
134 | endif\r | |
135 | ifeq ($(SHARED),1)\r | |
136 | __DLLFLAG_p_0 = --define WXUSINGDLL\r | |
137 | endif\r | |
138 | ifeq ($(MONOLITHIC),0)\r | |
139 | __WXLIB_CORE_p = \\r | |
140 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r | |
141 | endif\r | |
142 | ifeq ($(USE_GUI),1)\r | |
143 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r | |
144 | endif\r | |
145 | ifeq ($(USE_GUI),1)\r | |
146 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r | |
147 | endif\r | |
148 | ifeq ($(USE_GUI),1)\r | |
149 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r | |
150 | endif\r | |
151 | ifeq ($(BUILD),debug)\r | |
152 | __OPTIMIZEFLAG = -O0\r | |
153 | endif\r | |
154 | ifeq ($(BUILD),release)\r | |
155 | __OPTIMIZEFLAG = -O2\r | |
156 | endif\r | |
157 | ifeq ($(USE_RTTI),0)\r | |
158 | __RTTIFLAG = -fno-rtti\r | |
159 | endif\r | |
160 | ifeq ($(USE_RTTI),1)\r | |
161 | __RTTIFLAG = \r | |
162 | endif\r | |
163 | ifeq ($(USE_EXCEPTIONS),0)\r | |
164 | __EXCEPTIONSFLAG = -fno-exceptions\r | |
165 | endif\r | |
166 | ifeq ($(USE_EXCEPTIONS),1)\r | |
167 | __EXCEPTIONSFLAG = \r | |
168 | endif\r | |
169 | ifeq ($(WXUNIV),1)\r | |
170 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r | |
171 | endif\r | |
172 | ifeq ($(DEBUG_FLAG),0)\r | |
173 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r | |
174 | endif\r | |
175 | ifeq ($(BUILD),release)\r | |
176 | __NDEBUG_DEFINE_p = -DNDEBUG\r | |
177 | endif\r | |
178 | ifeq ($(USE_EXCEPTIONS),0)\r | |
179 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r | |
180 | endif\r | |
181 | ifeq ($(USE_RTTI),0)\r | |
182 | __RTTI_DEFINE_p = -DwxNO_RTTI\r | |
183 | endif\r | |
184 | ifeq ($(USE_THREADS),0)\r | |
185 | __THREAD_DEFINE_p = -DwxNO_THREADS\r | |
186 | endif\r | |
187 | ifeq ($(UNICODE),0)\r | |
188 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r | |
189 | endif\r | |
190 | ifeq ($(UNICODE),1)\r | |
191 | __UNICODE_DEFINE_p = -D_UNICODE\r | |
192 | endif\r | |
193 | ifeq ($(MSLU),1)\r | |
194 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r | |
195 | endif\r | |
196 | ifeq ($(USE_CAIRO),1)\r | |
197 | ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r | |
198 | endif\r | |
199 | ifeq ($(SHARED),1)\r | |
200 | __DLLFLAG_p = -DWXUSINGDLL\r | |
201 | endif\r | |
202 | ifeq ($(MONOLITHIC),0)\r | |
203 | __WXLIB_NET_p = \\r | |
204 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net\r | |
205 | endif\r | |
206 | ifeq ($(MONOLITHIC),0)\r | |
207 | __WXLIB_BASE_p = \\r | |
208 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
209 | endif\r | |
210 | ifeq ($(MONOLITHIC),1)\r | |
211 | __WXLIB_MONO_p = \\r | |
212 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
213 | endif\r | |
214 | ifeq ($(MSLU),1)\r | |
215 | __UNICOWS_LIB_p = -lunicows\r | |
216 | endif\r | |
217 | ifeq ($(USE_CAIRO),1)\r | |
218 | __CAIRO_LIB_p = -lcairo\r | |
219 | endif\r | |
220 | ifeq ($(USE_CAIRO),1)\r | |
221 | ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r | |
222 | endif\r | |
223 | ifeq ($(BUILD),debug)\r | |
224 | ifeq ($(DEBUG_INFO),default)\r | |
225 | __DEBUGINFO = -g\r | |
226 | endif\r | |
227 | endif\r | |
228 | ifeq ($(BUILD),release)\r | |
229 | ifeq ($(DEBUG_INFO),default)\r | |
230 | __DEBUGINFO = \r | |
231 | endif\r | |
232 | endif\r | |
233 | ifeq ($(DEBUG_INFO),0)\r | |
234 | __DEBUGINFO = \r | |
235 | endif\r | |
236 | ifeq ($(DEBUG_INFO),1)\r | |
237 | __DEBUGINFO = -g\r | |
238 | endif\r | |
239 | ifeq ($(USE_THREADS),0)\r | |
240 | __THREADSFLAG = \r | |
241 | endif\r | |
242 | ifeq ($(USE_THREADS),1)\r | |
243 | __THREADSFLAG = -mthreads\r | |
244 | endif\r | |
245 | \r | |
246 | \r | |
247 | all: $(OBJS)\r | |
248 | $(OBJS):\r | |
249 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
250 | \r | |
251 | ### Targets: ###\r | |
252 | \r | |
253 | all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe\r | |
254 | \r | |
255 | clean: \r | |
256 | -if exist $(OBJS)\*.o del $(OBJS)\*.o\r | |
257 | -if exist $(OBJS)\*.d del $(OBJS)\*.d\r | |
258 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe\r | |
259 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe\r | |
260 | -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe\r | |
261 | -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe\r | |
262 | \r | |
263 | ifeq ($(USE_GUI),1)\r | |
264 | $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o | |
265 | $(CXX) -o $@ $(CLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r | |
266 | endif\r | |
267 | \r | |
268 | ifeq ($(USE_GUI),1)\r | |
269 | $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o | |
270 | $(CXX) -o $@ $(SERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r | |
271 | endif\r | |
272 | \r | |
273 | $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)\r | |
274 | $(CXX) -o $@ $(BASECLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r | |
275 | \r | |
276 | $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)\r | |
277 | $(CXX) -o $@ $(BASESERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r | |
278 | \r | |
279 | $(OBJS)\client_sample_rc.o: ./../../samples/sample.rc | |
280 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__NDEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH | |
281 | ||
282 | $(OBJS)\client_client.o: ./client.cpp\r | |
283 | $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<\r | |
284 | \r | |
285 | $(OBJS)\server_sample_rc.o: ./../../samples/sample.rc | |
286 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__NDEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH\r | |
287 | \r | |
288 | $(OBJS)\server_server.o: ./server.cpp\r | |
289 | $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<\r | |
290 | \r | |
291 | $(OBJS)\baseclient_baseclient.o: ./baseclient.cpp\r | |
292 | $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<\r | |
293 | \r | |
294 | $(OBJS)\baseserver_baseserver.o: ./baseserver.cpp\r | |
295 | $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<\r | |
296 | \r | |
297 | .PHONY: all clean\r | |
298 | \r | |
299 | \r | |
300 | SHELL := $(COMSPEC)\r | |
301 | \r | |
302 | # Dependencies tracking:\r | |
303 | -include $(OBJS)/*.d\r |