]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/makefile.gcc
6784d355f2fe010c71fc53ceb833a6a5ec62a3bb
[wxWidgets.git] / samples / sockets / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD -MP
16 WX_RELEASE_NODOT = 29
17 COMPILER_PREFIX = gcc
18 OBJS = \
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
22 SETUPHDIR = \
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
25 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
28 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
29 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
30 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
31 CLIENT_OBJECTS = \
32 $(OBJS)\client_sample_rc.o \
33 $(OBJS)\client_client.o
34 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
35 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
36 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
37 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
38 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
39 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
40 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
41 SERVER_OBJECTS = \
42 $(OBJS)\server_sample_rc.o \
43 $(OBJS)\server_server.o
44 BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
45 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
46 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
47 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
48 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
49 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
50 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
51 $(CXXFLAGS)
52 BASECLIENT_OBJECTS = \
53 $(OBJS)\baseclient_baseclient.o
54 BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
55 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
56 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
57 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
58 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
59 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
60 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
61 $(CXXFLAGS)
62 BASESERVER_OBJECTS = \
63 $(OBJS)\baseserver_baseserver.o
64
65 ### Conditionally set variables: ###
66
67 ifeq ($(GCC_VERSION),2.95)
68 GCCFLAGS = -fvtable-thunks
69 endif
70 ifeq ($(USE_GUI),0)
71 PORTNAME = base
72 endif
73 ifeq ($(USE_GUI),1)
74 PORTNAME = msw$(TOOLKIT_VERSION)
75 endif
76 ifeq ($(OFFICIAL_BUILD),1)
77 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
78 endif
79 ifeq ($(BUILD),debug)
80 WXDEBUGFLAG = d
81 endif
82 ifeq ($(UNICODE),1)
83 WXUNICODEFLAG = u
84 endif
85 ifeq ($(WXUNIV),1)
86 WXUNIVNAME = univ
87 endif
88 ifeq ($(SHARED),1)
89 WXDLLFLAG = dll
90 endif
91 ifeq ($(SHARED),0)
92 LIBTYPE_SUFFIX = lib
93 endif
94 ifeq ($(SHARED),1)
95 LIBTYPE_SUFFIX = dll
96 endif
97 ifeq ($(MONOLITHIC),0)
98 EXTRALIBS_FOR_BASE =
99 endif
100 ifeq ($(MONOLITHIC),1)
101 EXTRALIBS_FOR_BASE =
102 endif
103 ifeq ($(USE_GUI),1)
104 __client___depname = $(OBJS)\client.exe
105 endif
106 ifeq ($(USE_GUI),1)
107 __server___depname = $(OBJS)\server.exe
108 endif
109 ifeq ($(MONOLITHIC),1)
110 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
111 endif
112 ifeq ($(MONOLITHIC),1)
113 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
114 endif
115 ifeq ($(WXUNIV),1)
116 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
117 endif
118 ifeq ($(DEBUG_FLAG),0)
119 __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
120 endif
121 ifeq ($(BUILD),release)
122 __NDEBUG_DEFINE_p_0 = --define NDEBUG
123 endif
124 ifeq ($(USE_EXCEPTIONS),0)
125 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
126 endif
127 ifeq ($(USE_RTTI),0)
128 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
129 endif
130 ifeq ($(USE_THREADS),0)
131 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
132 endif
133 ifeq ($(UNICODE),0)
134 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
135 endif
136 ifeq ($(UNICODE),1)
137 __UNICODE_DEFINE_p_0 = --define _UNICODE
138 endif
139 ifeq ($(MSLU),1)
140 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
141 endif
142 ifeq ($(USE_CAIRO),1)
143 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
144 endif
145 ifeq ($(SHARED),1)
146 __DLLFLAG_p_0 = --define WXUSINGDLL
147 endif
148 ifeq ($(MONOLITHIC),0)
149 __WXLIB_CORE_p = \
150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
151 endif
152 ifeq ($(MONOLITHIC),1)
153 __LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)
154 endif
155 ifeq ($(USE_GUI),1)
156 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
157 endif
158 ifeq ($(USE_GUI),1)
159 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
160 endif
161 ifeq ($(BUILD),debug)
162 __OPTIMIZEFLAG = -O0
163 endif
164 ifeq ($(BUILD),release)
165 __OPTIMIZEFLAG = -O2
166 endif
167 ifeq ($(USE_RTTI),0)
168 __RTTIFLAG = -fno-rtti
169 endif
170 ifeq ($(USE_RTTI),1)
171 __RTTIFLAG =
172 endif
173 ifeq ($(USE_EXCEPTIONS),0)
174 __EXCEPTIONSFLAG = -fno-exceptions
175 endif
176 ifeq ($(USE_EXCEPTIONS),1)
177 __EXCEPTIONSFLAG =
178 endif
179 ifeq ($(WXUNIV),1)
180 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
181 endif
182 ifeq ($(DEBUG_FLAG),0)
183 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
184 endif
185 ifeq ($(BUILD),release)
186 __NDEBUG_DEFINE_p = -DNDEBUG
187 endif
188 ifeq ($(USE_EXCEPTIONS),0)
189 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
190 endif
191 ifeq ($(USE_RTTI),0)
192 __RTTI_DEFINE_p = -DwxNO_RTTI
193 endif
194 ifeq ($(USE_THREADS),0)
195 __THREAD_DEFINE_p = -DwxNO_THREADS
196 endif
197 ifeq ($(UNICODE),0)
198 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
199 endif
200 ifeq ($(UNICODE),1)
201 __UNICODE_DEFINE_p = -D_UNICODE
202 endif
203 ifeq ($(MSLU),1)
204 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
205 endif
206 ifeq ($(USE_CAIRO),1)
207 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
208 endif
209 ifeq ($(SHARED),1)
210 __DLLFLAG_p = -DWXUSINGDLL
211 endif
212 ifeq ($(MONOLITHIC),0)
213 __WXLIB_NET_p = \
214 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
215 endif
216 ifeq ($(MONOLITHIC),0)
217 __WXLIB_BASE_p = \
218 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
219 endif
220 ifeq ($(MONOLITHIC),1)
221 __WXLIB_MONO_p = \
222 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
223 endif
224 ifeq ($(USE_GUI),1)
225 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
226 endif
227 ifeq ($(MSLU),1)
228 __UNICOWS_LIB_p = -lunicows
229 endif
230 ifeq ($(USE_CAIRO),1)
231 __CAIRO_LIB_p = -lcairo
232 endif
233 ifeq ($(USE_CAIRO),1)
234 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
235 endif
236 ifeq ($(BUILD),debug)
237 ifeq ($(DEBUG_INFO),default)
238 __DEBUGINFO = -g
239 endif
240 endif
241 ifeq ($(BUILD),release)
242 ifeq ($(DEBUG_INFO),default)
243 __DEBUGINFO =
244 endif
245 endif
246 ifeq ($(DEBUG_INFO),0)
247 __DEBUGINFO =
248 endif
249 ifeq ($(DEBUG_INFO),1)
250 __DEBUGINFO = -g
251 endif
252 ifeq ($(USE_THREADS),0)
253 __THREADSFLAG =
254 endif
255 ifeq ($(USE_THREADS),1)
256 __THREADSFLAG = -mthreads
257 endif
258
259
260 all: $(OBJS)
261 $(OBJS):
262 -if not exist $(OBJS) mkdir $(OBJS)
263
264 ### Targets: ###
265
266 all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
267
268 clean:
269 -if exist $(OBJS)\*.o del $(OBJS)\*.o
270 -if exist $(OBJS)\*.d del $(OBJS)\*.d
271 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
272 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
273 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
274 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
275
276 ifeq ($(USE_GUI),1)
277 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o
278 $(CXX) -o $@ $(CLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
279 endif
280
281 ifeq ($(USE_GUI),1)
282 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o
283 $(CXX) -o $@ $(SERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
284 endif
285
286 $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
287 $(CXX) -o $@ $(BASECLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
288
289 $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
290 $(CXX) -o $@ $(BASESERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p_1) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
291
292 $(OBJS)\client_sample_rc.o: ./../../samples/sample.rc
293 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__NDEBUG_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 $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
294
295 $(OBJS)\client_client.o: ./client.cpp
296 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
297
298 $(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
299 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__NDEBUG_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 $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
300
301 $(OBJS)\server_server.o: ./server.cpp
302 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
303
304 $(OBJS)\baseclient_baseclient.o: ./baseclient.cpp
305 $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<
306
307 $(OBJS)\baseserver_baseserver.o: ./baseserver.cpp
308 $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<
309
310 .PHONY: all clean
311
312
313 SHELL := $(COMSPEC)
314
315 # Dependencies tracking:
316 -include $(OBJS)/*.d