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