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