1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
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
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
27 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
30 $(OBJS)\client_client.o \
31 $(OBJS)\client_client_rc.o
32 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
33 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
35 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
36 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
37 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
40 $(OBJS)\server_server.o \
41 $(OBJS)\server_server_rc.o
43 ### Conditionally set variables: ###
45 ifeq ($(GCC_VERSION),2.95)
46 GCCFLAGS = -fvtable-thunks
55 ifeq ($(DEBUG_FLAG),default)
59 ifeq ($(DEBUG_FLAG),1)
77 ifeq ($(MONOLITHIC),0)
80 ifeq ($(MONOLITHIC),1)
86 ifeq ($(BUILD),release)
90 __RTTIFLAG = -fno-rtti
95 ifeq ($(USE_EXCEPTIONS),0)
96 __EXCEPTIONSFLAG = -fno-exceptions
98 ifeq ($(USE_EXCEPTIONS),1)
102 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
105 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
107 ifeq ($(BUILD),debug)
108 ifeq ($(DEBUG_FLAG),default)
109 __DEBUG_DEFINE_p = -D__WXDEBUG__
112 ifeq ($(DEBUG_FLAG),1)
113 __DEBUG_DEFINE_p = -D__WXDEBUG__
115 ifeq ($(BUILD),debug)
116 ifeq ($(DEBUG_FLAG),default)
117 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
120 ifeq ($(DEBUG_FLAG),1)
121 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
123 ifeq ($(USE_EXCEPTIONS),0)
124 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
126 ifeq ($(USE_EXCEPTIONS),0)
127 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
130 __RTTI_DEFINE_p = -DwxNO_RTTI
133 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
135 ifeq ($(USE_THREADS),0)
136 __THREAD_DEFINE_p = -DwxNO_THREADS
138 ifeq ($(USE_THREADS),0)
139 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
142 __UNICODE_DEFINE_p = -D_UNICODE
145 __UNICODE_DEFINE_p_0 = --define _UNICODE
148 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
151 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
153 ifeq ($(USE_GDIPLUS),1)
154 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
156 ifeq ($(USE_GDIPLUS),1)
157 __GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=1
160 __DLLFLAG_p = -DWXUSINGDLL
163 __DLLFLAG_p_0 = --define WXUSINGDLL
165 ifeq ($(MONOLITHIC),0)
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
169 ifeq ($(MONOLITHIC),0)
171 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
173 ifeq ($(MONOLITHIC),0)
175 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
177 ifeq ($(MONOLITHIC),1)
179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
182 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
185 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
188 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
191 __UNICOWS_LIB_p = -lunicows
193 ifeq ($(USE_GDIPLUS),1)
194 __GDIPLUS_LIB_p = -lgdiplus
196 ifeq ($(BUILD),debug)
197 ifeq ($(DEBUG_INFO),default)
201 ifeq ($(BUILD),release)
202 ifeq ($(DEBUG_INFO),default)
206 ifeq ($(DEBUG_INFO),0)
209 ifeq ($(DEBUG_INFO),1)
212 ifeq ($(USE_THREADS),0)
215 ifeq ($(USE_THREADS),1)
216 __THREADSFLAG = -mthreads
222 -if not exist $(OBJS) mkdir $(OBJS)
226 all: $(OBJS)\client.exe $(OBJS)\server.exe
229 -if exist $(OBJS)\*.o del $(OBJS)\*.o
230 -if exist $(OBJS)\*.d del $(OBJS)\*.d
231 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
232 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
234 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client_rc.o
235 $(CXX) -o $@ $(CLIENT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 -lodbc32
237 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server_rc.o
238 $(CXX) -o $@ $(SERVER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 -lodbc32
240 $(OBJS)\client_client.o: ./client.cpp
241 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
243 $(OBJS)\client_client_rc.o: ./client.rc
244 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
246 $(OBJS)\server_server.o: ./server.cpp
247 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
249 $(OBJS)\server_server_rc.o: ./server.rc
250 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
255 # Dependencies tracking: