1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.8 (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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
27 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
28 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
29 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
31 $(OBJS)\client_client.o \
32 $(OBJS)\client_client_rc.o
33 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
35 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
37 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
38 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
39 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
41 $(OBJS)\server_server.o \
42 $(OBJS)\server_server_rc.o
43 BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
44 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
45 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
46 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
47 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
48 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
49 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
51 BASECLIENT_OBJECTS = \
52 $(OBJS)\baseclient_baseclient.o
53 BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
54 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
55 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
56 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
57 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
58 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
59 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
61 BASESERVER_OBJECTS = \
62 $(OBJS)\baseserver_baseserver.o
64 ### Conditionally set variables: ###
66 ifeq ($(GCC_VERSION),2.95)
67 GCCFLAGS = -fvtable-thunks
93 ifeq ($(MONOLITHIC),0)
96 ifeq ($(MONOLITHIC),1)
100 __client___depname = $(OBJS)\client.exe
103 __server___depname = $(OBJS)\server.exe
106 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
108 ifeq ($(DEBUG_FLAG),0)
109 __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
111 ifeq ($(USE_EXCEPTIONS),0)
112 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
115 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
117 ifeq ($(USE_THREADS),0)
118 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
121 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
124 __UNICODE_DEFINE_p_0 = --define _UNICODE
127 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
129 ifeq ($(USE_GDIPLUS),1)
130 __GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=1
132 ifeq ($(USE_CAIRO),1)
133 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
136 __DLLFLAG_p_0 = --define WXUSINGDLL
138 ifeq ($(MONOLITHIC),0)
140 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
143 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
146 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
149 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
151 ifeq ($(BUILD),debug)
154 ifeq ($(BUILD),release)
158 __RTTIFLAG = -fno-rtti
163 ifeq ($(USE_EXCEPTIONS),0)
164 __EXCEPTIONSFLAG = -fno-exceptions
166 ifeq ($(USE_EXCEPTIONS),1)
170 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
172 ifeq ($(DEBUG_FLAG),0)
173 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
175 ifeq ($(USE_EXCEPTIONS),0)
176 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
179 __RTTI_DEFINE_p = -DwxNO_RTTI
181 ifeq ($(USE_THREADS),0)
182 __THREAD_DEFINE_p = -DwxNO_THREADS
185 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
188 __UNICODE_DEFINE_p = -D_UNICODE
191 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
193 ifeq ($(USE_GDIPLUS),1)
194 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
196 ifeq ($(USE_CAIRO),1)
197 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
200 __DLLFLAG_p = -DWXUSINGDLL
202 ifeq ($(MONOLITHIC),0)
204 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
206 ifeq ($(MONOLITHIC),0)
208 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
210 ifeq ($(MONOLITHIC),1)
212 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
215 __UNICOWS_LIB_p = -lunicows
217 ifeq ($(USE_GDIPLUS),1)
218 __GDIPLUS_LIB_p = -lgdiplus
220 ifeq ($(USE_CAIRO),1)
221 __CAIRO_LIB_p = -lcairo
223 ifeq ($(USE_CAIRO),1)
224 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
226 ifeq ($(BUILD),debug)
227 ifeq ($(DEBUG_INFO),default)
231 ifeq ($(BUILD),release)
232 ifeq ($(DEBUG_INFO),default)
236 ifeq ($(DEBUG_INFO),0)
239 ifeq ($(DEBUG_INFO),1)
242 ifeq ($(USE_THREADS),0)
245 ifeq ($(USE_THREADS),1)
246 __THREADSFLAG = -mthreads
252 -if not exist $(OBJS) mkdir $(OBJS)
256 all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
259 -if exist $(OBJS)\*.o del $(OBJS)\*.o
260 -if exist $(OBJS)\*.d del $(OBJS)\*.d
261 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
262 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
263 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
264 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
267 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client_rc.o
268 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
272 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server_rc.o
273 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
276 $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
277 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
279 $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
280 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
282 $(OBJS)\client_client.o: ./client.cpp
283 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
285 $(OBJS)\client_client_rc.o: ./client.rc
286 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) $(__GFXCTX_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
288 $(OBJS)\server_server.o: ./server.cpp
289 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
291 $(OBJS)\server_server_rc.o: ./server.rc
292 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) $(__GFXCTX_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
294 $(OBJS)\baseclient_baseclient.o: ./baseclient.cpp
295 $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<
297 $(OBJS)\baseserver_baseserver.o: ./baseserver.cpp
298 $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<
305 # Dependencies tracking: