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