1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
24 -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
25 $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\client_sample_rc.o \
28 $(OBJS)\client_client.o
29 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
30 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
31 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
32 -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
33 $(CPPFLAGS) $(CXXFLAGS)
35 $(OBJS)\server_sample_rc.o \
36 $(OBJS)\server_server.o
38 ### Conditionally set variables: ###
40 ifeq ($(GCC_VERSION),2.95)
41 GCCFLAGS = -fvtable-thunks
50 ifeq ($(DEBUG_FLAG),default)
54 ifeq ($(DEBUG_FLAG),1)
72 ifeq ($(MONOLITHIC),0)
75 ifeq ($(MONOLITHIC),1)
81 ifeq ($(BUILD),release)
84 ifeq ($(USE_EXCEPTIONS),0)
85 __EXCEPTIONSFLAG = -fno-rtti
87 ifeq ($(USE_EXCEPTIONS),1)
90 ifeq ($(USE_EXCEPTIONS),0)
91 __EXCEPTIONSFLAG_0 = -fno-exceptions
93 ifeq ($(USE_EXCEPTIONS),1)
97 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p = -D__WXDEBUG__
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p = -D__WXDEBUG__
110 ifeq ($(BUILD),debug)
111 ifeq ($(DEBUG_FLAG),default)
112 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
115 ifeq ($(DEBUG_FLAG),1)
116 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
119 __UNICODE_DEFINE_p = -D_UNICODE
122 __UNICODE_DEFINE_p_0 = --define _UNICODE
125 __DLLFLAG_p = -DWXUSINGDLL
128 __DLLFLAG_p_0 = --define WXUSINGDLL
130 ifeq ($(MONOLITHIC),0)
132 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
134 ifeq ($(MONOLITHIC),0)
136 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
138 ifeq ($(MONOLITHIC),0)
140 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
142 ifeq ($(MONOLITHIC),1)
144 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
147 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
150 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
153 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
156 __UNICOWS_LIB_p = -lunicows
158 ifeq ($(BUILD),debug)
159 ifeq ($(DEBUG_INFO),default)
163 ifeq ($(BUILD),release)
164 ifeq ($(DEBUG_INFO),default)
168 ifeq ($(DEBUG_INFO),0)
171 ifeq ($(DEBUG_INFO),1)
178 -if not exist $(OBJS) mkdir $(OBJS)
182 all: $(OBJS)\client.exe $(OBJS)\server.exe
185 -if exist $(OBJS)\*.o del $(OBJS)\*.o
186 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
187 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
189 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o
190 $(CXX) -o $@ $(CLIENT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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
192 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o
193 $(CXX) -o $@ $(SERVER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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
195 $(OBJS)\client_sample_rc.o: ./../../samples/sample.rc
196 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples
198 $(OBJS)\client_client.o: ./client.cpp
199 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $<
201 $(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
202 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples
204 $(OBJS)\server_server.o: ./server.cpp
205 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $<