1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD -MP
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
25 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
28 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
29 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
30 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
32 $(OBJS)\client_sample_rc.o \
33 $(OBJS)\client_client.o
34 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
35 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
36 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
37 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
38 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
39 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
40 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
42 $(OBJS)\server_sample_rc.o \
43 $(OBJS)\server_server.o
44 BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
45 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
46 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
47 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
48 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
49 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
50 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
52 BASECLIENT_OBJECTS = \
53 $(OBJS)\baseclient_baseclient.o
54 BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
55 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
56 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
57 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
58 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
59 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
60 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
62 BASESERVER_OBJECTS = \
63 $(OBJS)\baseserver_baseserver.o
65 ### Conditionally set variables: ###
67 ifeq ($(GCC_VERSION),2.95)
68 GCCFLAGS = -fvtable-thunks
74 PORTNAME = msw$(TOOLKIT_VERSION)
76 ifeq ($(OFFICIAL_BUILD),1)
77 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
97 ifeq ($(MONOLITHIC),0)
100 ifeq ($(MONOLITHIC),1)
104 __client___depname = $(OBJS)\client.exe
107 __server___depname = $(OBJS)\server.exe
109 ifeq ($(MONOLITHIC),1)
110 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
112 ifeq ($(MONOLITHIC),1)
113 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
116 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
118 ifeq ($(DEBUG_FLAG),0)
119 __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
121 ifeq ($(BUILD),release)
122 __NDEBUG_DEFINE_p_0 = --define NDEBUG
124 ifeq ($(USE_EXCEPTIONS),0)
125 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
128 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
130 ifeq ($(USE_THREADS),0)
131 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
134 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
137 __UNICODE_DEFINE_p_0 = --define _UNICODE
140 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
142 ifeq ($(USE_CAIRO),1)
143 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
146 __DLLFLAG_p_0 = --define WXUSINGDLL
148 ifeq ($(MONOLITHIC),0)
150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
152 ifeq ($(MONOLITHIC),1)
154 __LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)
158 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
161 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
163 ifeq ($(BUILD),debug)
166 ifeq ($(BUILD),release)
170 __RTTIFLAG = -fno-rtti
175 ifeq ($(USE_EXCEPTIONS),0)
176 __EXCEPTIONSFLAG = -fno-exceptions
178 ifeq ($(USE_EXCEPTIONS),1)
182 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
184 ifeq ($(DEBUG_FLAG),0)
185 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
187 ifeq ($(BUILD),release)
188 __NDEBUG_DEFINE_p = -DNDEBUG
190 ifeq ($(USE_EXCEPTIONS),0)
191 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
194 __RTTI_DEFINE_p = -DwxNO_RTTI
196 ifeq ($(USE_THREADS),0)
197 __THREAD_DEFINE_p = -DwxNO_THREADS
200 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
203 __UNICODE_DEFINE_p = -D_UNICODE
206 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
208 ifeq ($(USE_CAIRO),1)
209 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
212 __DLLFLAG_p = -DWXUSINGDLL
214 ifeq ($(MONOLITHIC),0)
216 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
218 ifeq ($(MONOLITHIC),0)
220 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
222 ifeq ($(MONOLITHIC),1)
224 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
227 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
230 __UNICOWS_LIB_p = -lunicows
232 ifeq ($(USE_CAIRO),1)
233 __CAIRO_LIB_p = -lcairo
235 ifeq ($(USE_CAIRO),1)
236 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
238 ifeq ($(BUILD),debug)
239 ifeq ($(DEBUG_INFO),default)
243 ifeq ($(BUILD),release)
244 ifeq ($(DEBUG_INFO),default)
248 ifeq ($(DEBUG_INFO),0)
251 ifeq ($(DEBUG_INFO),1)
254 ifeq ($(USE_THREADS),0)
257 ifeq ($(USE_THREADS),1)
258 __THREADSFLAG = -mthreads
264 -if not exist $(OBJS) mkdir $(OBJS)
268 all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
271 -if exist $(OBJS)\*.o del $(OBJS)\*.o
272 -if exist $(OBJS)\*.d del $(OBJS)\*.d
273 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
274 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
275 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
276 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
279 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o
280 $(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_SCINTILLA_IF_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
284 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o
285 $(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_SCINTILLA_IF_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
288 $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
289 $(CXX) -o $@ $(BASECLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_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
291 $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
292 $(CXX) -o $@ $(BASESERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p_1) -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
294 $(OBJS)\client_sample_rc.o: ./../../samples/sample.rc
295 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
297 $(OBJS)\client_client.o: ./client.cpp
298 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
300 $(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
301 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
303 $(OBJS)\server_server.o: ./server.cpp
304 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
306 $(OBJS)\baseclient_baseclient.o: ./baseclient.cpp
307 $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<
309 $(OBJS)\baseserver_baseserver.o: ./baseserver.cpp
310 $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<
317 # Dependencies tracking: