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) -I$(SETUPHDIR) -I.\..\..\include -W \
26 -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
27 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\client_client.o \
30 $(OBJS)\client_client_rc.o
31 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
32 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
33 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
34 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W \
35 -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
36 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
38 $(OBJS)\server_server.o \
39 $(OBJS)\server_server_rc.o
41 ### Conditionally set variables: ###
43 ifeq ($(GCC_VERSION),2.95)
44 GCCFLAGS = -fvtable-thunks
53 ifeq ($(DEBUG_FLAG),default)
57 ifeq ($(DEBUG_FLAG),1)
75 ifeq ($(MONOLITHIC),0)
78 ifeq ($(MONOLITHIC),1)
84 ifeq ($(BUILD),release)
88 __RTTIFLAG = -fno-rtti
93 ifeq ($(USE_EXCEPTIONS),0)
94 __EXCEPTIONSFLAG = -fno-exceptions
96 ifeq ($(USE_EXCEPTIONS),1)
100 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
105 ifeq ($(BUILD),debug)
106 ifeq ($(DEBUG_FLAG),default)
107 __DEBUG_DEFINE_p = -D__WXDEBUG__
110 ifeq ($(DEBUG_FLAG),1)
111 __DEBUG_DEFINE_p = -D__WXDEBUG__
113 ifeq ($(BUILD),debug)
114 ifeq ($(DEBUG_FLAG),default)
115 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
118 ifeq ($(DEBUG_FLAG),1)
119 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
121 ifeq ($(USE_EXCEPTIONS),0)
122 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
124 ifeq ($(USE_EXCEPTIONS),0)
125 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
128 __RTTI_DEFINE_p = -DwxNO_RTTI
131 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
133 ifeq ($(USE_THREADS),0)
134 __THREAD_DEFINE_p = -DwxNO_THREADS
136 ifeq ($(USE_THREADS),0)
137 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
140 __UNICODE_DEFINE_p = -D_UNICODE
143 __UNICODE_DEFINE_p_0 = --define _UNICODE
146 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
149 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
152 __DLLFLAG_p = -DWXUSINGDLL
155 __DLLFLAG_p_0 = --define WXUSINGDLL
157 ifeq ($(MONOLITHIC),0)
159 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
161 ifeq ($(MONOLITHIC),0)
163 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
165 ifeq ($(MONOLITHIC),0)
167 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
169 ifeq ($(MONOLITHIC),1)
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
174 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
177 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
180 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
183 __UNICOWS_LIB_p = -lunicows
185 ifeq ($(BUILD),debug)
186 ifeq ($(DEBUG_INFO),default)
190 ifeq ($(BUILD),release)
191 ifeq ($(DEBUG_INFO),default)
195 ifeq ($(DEBUG_INFO),0)
198 ifeq ($(DEBUG_INFO),1)
201 ifeq ($(USE_THREADS),0)
204 ifeq ($(USE_THREADS),1)
205 __THREADSFLAG = -mthreads
211 -if not exist $(OBJS) mkdir $(OBJS)
215 all: $(OBJS)\client.exe $(OBJS)\server.exe
218 -if exist $(OBJS)\*.o del $(OBJS)\*.o
219 -if exist $(OBJS)\*.d del $(OBJS)\*.d
220 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
221 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
223 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client_rc.o
224 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
226 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server_rc.o
227 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
229 $(OBJS)\client_client.o: ./client.cpp
230 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
232 $(OBJS)\client_client_rc.o: ./client.rc
233 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) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
235 $(OBJS)\server_server.o: ./server.cpp
236 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
238 $(OBJS)\server_server_rc.o: ./server.rc
239 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) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
244 # Dependencies tracking: