1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.5 (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 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
28 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
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 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
38 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
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 -W -Wall -I. \
48 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
49 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
50 BASECLIENT_OBJECTS = \
51 $(OBJS)\baseclient_baseclient.o
52 BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
53 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
54 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
55 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
56 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
57 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
58 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
59 BASESERVER_OBJECTS = \
60 $(OBJS)\baseserver_baseserver.o
62 ### Conditionally set variables: ###
64 ifeq ($(GCC_VERSION),2.95)
65 GCCFLAGS = -fvtable-thunks
74 ifeq ($(DEBUG_FLAG),default)
78 ifeq ($(DEBUG_FLAG),1)
96 ifeq ($(MONOLITHIC),0)
99 ifeq ($(MONOLITHIC),1)
103 __client___depname = $(OBJS)\client.exe
106 __server___depname = $(OBJS)\server.exe
109 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
111 ifeq ($(BUILD),debug)
112 ifeq ($(DEBUG_FLAG),default)
113 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
116 ifeq ($(DEBUG_FLAG),1)
117 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
119 ifeq ($(USE_EXCEPTIONS),0)
120 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
123 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
125 ifeq ($(USE_THREADS),0)
126 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
129 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
132 __UNICODE_DEFINE_p_0 = --define _UNICODE
135 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
137 ifeq ($(USE_GDIPLUS),1)
138 __GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=1
141 __DLLFLAG_p_0 = --define WXUSINGDLL
143 ifeq ($(MONOLITHIC),0)
145 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
148 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
151 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
154 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
156 ifeq ($(BUILD),debug)
159 ifeq ($(BUILD),release)
163 __RTTIFLAG = -fno-rtti
168 ifeq ($(USE_EXCEPTIONS),0)
169 __EXCEPTIONSFLAG = -fno-exceptions
171 ifeq ($(USE_EXCEPTIONS),1)
175 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
177 ifeq ($(BUILD),debug)
178 ifeq ($(DEBUG_FLAG),default)
179 __DEBUG_DEFINE_p = -D__WXDEBUG__
182 ifeq ($(DEBUG_FLAG),1)
183 __DEBUG_DEFINE_p = -D__WXDEBUG__
185 ifeq ($(USE_EXCEPTIONS),0)
186 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
189 __RTTI_DEFINE_p = -DwxNO_RTTI
191 ifeq ($(USE_THREADS),0)
192 __THREAD_DEFINE_p = -DwxNO_THREADS
195 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
198 __UNICODE_DEFINE_p = -D_UNICODE
201 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
203 ifeq ($(USE_GDIPLUS),1)
204 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
207 __DLLFLAG_p = -DWXUSINGDLL
209 ifeq ($(MONOLITHIC),0)
211 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
213 ifeq ($(MONOLITHIC),0)
215 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
217 ifeq ($(MONOLITHIC),1)
219 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
222 __UNICOWS_LIB_p = -lunicows
224 ifeq ($(USE_GDIPLUS),1)
225 __GDIPLUS_LIB_p = -lgdiplus
227 ifeq ($(BUILD),debug)
228 ifeq ($(DEBUG_INFO),default)
232 ifeq ($(BUILD),release)
233 ifeq ($(DEBUG_INFO),default)
237 ifeq ($(DEBUG_INFO),0)
240 ifeq ($(DEBUG_INFO),1)
243 ifeq ($(USE_THREADS),0)
246 ifeq ($(USE_THREADS),1)
247 __THREADSFLAG = -mthreads
253 -if not exist $(OBJS) mkdir $(OBJS)
257 all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
260 -if exist $(OBJS)\*.o del $(OBJS)\*.o
261 -if exist $(OBJS)\*.d del $(OBJS)\*.d
262 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
263 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
264 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
265 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
268 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client_rc.o
269 $(CXX) -o $@ $(CLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
273 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server_rc.o
274 $(CXX) -o $@ $(SERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
277 $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
278 $(CXX) -o $@ $(BASECLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
280 $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
281 $(CXX) -o $@ $(BASESERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
283 $(OBJS)\client_client.o: ./client.cpp
284 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
286 $(OBJS)\client_client_rc.o: ./client.rc
287 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 --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
289 $(OBJS)\server_server.o: ./server.cpp
290 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
292 $(OBJS)\server_server_rc.o: ./server.rc
293 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 --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
295 $(OBJS)\baseclient_baseclient.o: ./baseclient.cpp
296 $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<
298 $(OBJS)\baseserver_baseserver.o: ./baseserver.cpp
299 $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<
306 # Dependencies tracking: