1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
24 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
25 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
26 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\client_sample_rc.o \
29 $(OBJS)\client_client.o
30 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
31 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
33 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
34 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
35 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
37 $(OBJS)\server_sample_rc.o \
38 $(OBJS)\server_server.o
40 ### Conditionally set variables: ###
42 ifeq ($(GCC_VERSION),2.95)
43 GCCFLAGS = -fvtable-thunks
52 ifeq ($(DEBUG_FLAG),default)
56 ifeq ($(DEBUG_FLAG),1)
74 ifeq ($(MONOLITHIC),0)
77 ifeq ($(MONOLITHIC),1)
83 ifeq ($(BUILD),release)
87 __RTTIFLAG = -fno-rtti
92 ifeq ($(USE_EXCEPTIONS),0)
93 __EXCEPTIONSFLAG = -fno-exceptions
95 ifeq ($(USE_EXCEPTIONS),1)
99 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
102 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
104 ifeq ($(BUILD),debug)
105 ifeq ($(DEBUG_FLAG),default)
106 __DEBUG_DEFINE_p = -D__WXDEBUG__
109 ifeq ($(DEBUG_FLAG),1)
110 __DEBUG_DEFINE_p = -D__WXDEBUG__
112 ifeq ($(BUILD),debug)
113 ifeq ($(DEBUG_FLAG),default)
114 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
117 ifeq ($(DEBUG_FLAG),1)
118 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
120 ifeq ($(USE_EXCEPTIONS),0)
121 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
123 ifeq ($(USE_EXCEPTIONS),0)
124 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
127 __RTTI_DEFINE_p = -DwxNO_RTTI
130 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
132 ifeq ($(USE_THREADS),0)
133 __THREAD_DEFINE_p = -DwxNO_THREADS
135 ifeq ($(USE_THREADS),0)
136 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
139 __UNICODE_DEFINE_p = -D_UNICODE
142 __UNICODE_DEFINE_p_0 = --define _UNICODE
145 __DLLFLAG_p = -DWXUSINGDLL
148 __DLLFLAG_p_0 = --define WXUSINGDLL
150 ifeq ($(MONOLITHIC),0)
152 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
154 ifeq ($(MONOLITHIC),0)
156 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
158 ifeq ($(MONOLITHIC),0)
160 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
162 ifeq ($(MONOLITHIC),1)
164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
167 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
170 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
173 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
176 __UNICOWS_LIB_p = -lunicows
178 ifeq ($(BUILD),debug)
179 ifeq ($(DEBUG_INFO),default)
183 ifeq ($(BUILD),release)
184 ifeq ($(DEBUG_INFO),default)
188 ifeq ($(DEBUG_INFO),0)
191 ifeq ($(DEBUG_INFO),1)
194 ifeq ($(USE_THREADS),0)
197 ifeq ($(USE_THREADS),1)
198 __THREADSFLAG = -mthreads
204 -if not exist $(OBJS) mkdir $(OBJS)
208 all: $(OBJS)\client.exe $(OBJS)\server.exe
211 -if exist $(OBJS)\*.o del $(OBJS)\*.o
212 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
213 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
215 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o
216 $(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
218 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o
219 $(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
221 $(OBJS)\client_sample_rc.o: ./../../samples/sample.rc
222 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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples
224 $(OBJS)\client_client.o: ./client.cpp
225 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $<
227 $(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
228 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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples
230 $(OBJS)\server_server.o: ./server.cpp
231 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $<