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__WX$(TOOLKIT)__ $(__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 $(CXXFLAGS_GTK_WINDOWS_GCC) \
31 $(CPPFLAGS) $(CXXFLAGS)
33 $(OBJS)\client_sample_rc.o \
34 $(OBJS)\client_client.o
35 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
36 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
37 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
38 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
39 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
40 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
41 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
42 $(CPPFLAGS) $(CXXFLAGS)
44 $(OBJS)\server_sample_rc.o \
45 $(OBJS)\server_server.o
46 BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
47 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
48 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
49 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
50 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
51 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
52 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
53 $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
54 BASECLIENT_OBJECTS = \
55 $(OBJS)\baseclient_baseclient.o
56 BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
57 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
58 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
59 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
60 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
61 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
62 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
63 $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
64 BASESERVER_OBJECTS = \
65 $(OBJS)\baseserver_baseserver.o
67 ### Conditionally set variables: ###
70 WIN32_TOOLKIT_LOWERCASE = gtk
73 WIN32_TOOLKIT_LOWERCASE = msw
75 ifeq ($(GCC_VERSION),2.95)
76 GCCFLAGS = -fvtable-thunks
82 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
87 ifeq ($(OFFICIAL_BUILD),1)
88 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
108 ifeq ($(MONOLITHIC),0)
111 ifeq ($(MONOLITHIC),1)
114 ifeq ($(TOOLKIT),GTK)
115 CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
117 ifeq ($(TOOLKIT),GTK)
118 ifeq ($(TOOLKIT_VERSION),2)
119 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
120 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
125 __client___depname = $(OBJS)\client.exe
128 __server___depname = $(OBJS)\server.exe
130 ifeq ($(MONOLITHIC),1)
131 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
133 ifeq ($(MONOLITHIC),1)
134 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
137 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
139 ifeq ($(DEBUG_FLAG),0)
140 __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
142 ifeq ($(BUILD),release)
143 __NDEBUG_DEFINE_p_0 = --define NDEBUG
145 ifeq ($(USE_EXCEPTIONS),0)
146 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
149 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
151 ifeq ($(USE_THREADS),0)
152 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
155 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
158 __UNICODE_DEFINE_p_0 = --define _UNICODE
161 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
163 ifeq ($(USE_CAIRO),1)
164 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
167 __DLLFLAG_p_0 = --define WXUSINGDLL
169 ifeq ($(MONOLITHIC),0)
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
174 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
177 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
179 ifeq ($(BUILD),debug)
182 ifeq ($(BUILD),release)
186 __RTTIFLAG = -fno-rtti
191 ifeq ($(USE_EXCEPTIONS),0)
192 __EXCEPTIONSFLAG = -fno-exceptions
194 ifeq ($(USE_EXCEPTIONS),1)
198 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
200 ifeq ($(DEBUG_FLAG),0)
201 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
203 ifeq ($(BUILD),release)
204 __NDEBUG_DEFINE_p = -DNDEBUG
206 ifeq ($(USE_EXCEPTIONS),0)
207 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
210 __RTTI_DEFINE_p = -DwxNO_RTTI
212 ifeq ($(USE_THREADS),0)
213 __THREAD_DEFINE_p = -DwxNO_THREADS
216 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
219 __UNICODE_DEFINE_p = -D_UNICODE
222 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
224 ifeq ($(USE_CAIRO),1)
225 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
228 __DLLFLAG_p = -DWXUSINGDLL
230 ifeq ($(MONOLITHIC),0)
232 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
234 ifeq ($(MONOLITHIC),0)
236 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
238 ifeq ($(MONOLITHIC),1)
240 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
243 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
246 __UNICOWS_LIB_p = -lunicows
248 ifeq ($(USE_CAIRO),1)
249 __CAIRO_LIB_p = -lcairo
251 ifeq ($(USE_CAIRO),1)
252 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
254 ifeq ($(BUILD),debug)
255 ifeq ($(DEBUG_INFO),default)
259 ifeq ($(BUILD),release)
260 ifeq ($(DEBUG_INFO),default)
264 ifeq ($(DEBUG_INFO),0)
267 ifeq ($(DEBUG_INFO),1)
270 ifeq ($(USE_THREADS),0)
273 ifeq ($(USE_THREADS),1)
274 __THREADSFLAG = -mthreads
280 -if not exist $(OBJS) mkdir $(OBJS)
284 all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
287 -if exist $(OBJS)\*.o del $(OBJS)\*.o
288 -if exist $(OBJS)\*.d del $(OBJS)\*.d
289 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
290 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
291 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
292 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
295 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o
296 $(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) $(LIB_GTK) -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
300 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o
301 $(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) $(LIB_GTK) -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
304 $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
305 $(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
307 $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
308 $(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
310 $(OBJS)\client_sample_rc.o: ./../../samples/sample.rc
311 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__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
313 $(OBJS)\client_client.o: ./client.cpp
314 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
316 $(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
317 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__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
319 $(OBJS)\server_server.o: ./server.cpp
320 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
322 $(OBJS)\baseclient_baseclient.o: ./baseclient.cpp
323 $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<
325 $(OBJS)\baseserver_baseserver.o: ./baseserver.cpp
326 $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<
333 # Dependencies tracking: