1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.3 (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 # -------------------------------------------------------------------------
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
22 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
24 $(OBJS)\client_sample_rc.o \
25 $(OBJS)\client_client.o
26 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
27 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
29 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
31 $(OBJS)\server_sample_rc.o \
32 $(OBJS)\server_server.o
34 ### Conditionally set variables: ###
36 ifeq ($(GCC_VERSION),2.95)
37 GCCFLAGS = -fvtable-thunks
46 ifeq ($(DEBUG_FLAG),default)
50 ifeq ($(DEBUG_FLAG),1)
65 ifeq ($(BUILD),release)
68 ifeq ($(USE_EXCEPTIONS),0)
69 __EXCEPTIONSFLAG = -fno-rtti
71 ifeq ($(USE_EXCEPTIONS),1)
74 ifeq ($(USE_EXCEPTIONS),0)
75 __EXCEPTIONSFLAG_0 = -fno-exceptions
77 ifeq ($(USE_EXCEPTIONS),1)
81 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
84 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
87 ifeq ($(DEBUG_FLAG),default)
88 __DEBUG_DEFINE_p = -D__WXDEBUG__
91 ifeq ($(DEBUG_FLAG),1)
92 __DEBUG_DEFINE_p = -D__WXDEBUG__
95 ifeq ($(DEBUG_FLAG),default)
96 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
99 ifeq ($(DEBUG_FLAG),1)
100 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
103 __UNICODE_DEFINE_p = -D_UNICODE
106 __UNICODE_DEFINE_p_0 = --define _UNICODE
109 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
112 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
115 __DLLFLAG_p = -DWXUSINGDLL
118 __DLLFLAG_p_0 = --define WXUSINGDLL
120 ifeq ($(MONOLITHIC),0)
122 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
124 ifeq ($(MONOLITHIC),0)
125 __WXLIB_NET_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net
127 ifeq ($(MONOLITHIC),0)
128 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
130 ifeq ($(MONOLITHIC),1)
132 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
135 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
138 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
141 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
144 __UNICOWS_LIB_p = -lunicows
146 ifeq ($(BUILD),debug)
147 ifeq ($(DEBUG_INFO),default)
151 ifeq ($(BUILD),release)
152 ifeq ($(DEBUG_INFO),default)
156 ifeq ($(DEBUG_INFO),0)
159 ifeq ($(DEBUG_INFO),1)
166 -if not exist $(OBJS) mkdir $(OBJS)
170 all: $(OBJS)\client.exe $(OBJS)\server.exe
173 -if exist $(OBJS)\*.o del $(OBJS)\*.o
174 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
175 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
177 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o
178 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
180 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o
181 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
183 $(OBJS)\client_sample_rc.o: ./../../samples/sample.rc
184 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
186 $(OBJS)\client_client.o: ./client.cpp
187 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $<
189 $(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
190 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
192 $(OBJS)\server_server.o: ./server.cpp
193 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $<