]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.gcc
Extract compiler-specific macro definitions in a new wx/compiler.h.
[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
16WX_RELEASE_NODOT = 29\r
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
VZ
152ifeq ($(MONOLITHIC),1)\r
153__LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)\r
154endif\r
f82b7036
KO
155ifeq ($(USE_GUI),1)\r
156__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
157endif\r
158ifeq ($(USE_GUI),1)\r
159__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
160endif\r
f82b7036
KO
161ifeq ($(BUILD),debug)\r
162__OPTIMIZEFLAG = -O0\r
163endif\r
164ifeq ($(BUILD),release)\r
165__OPTIMIZEFLAG = -O2\r
166endif\r
167ifeq ($(USE_RTTI),0)\r
168__RTTIFLAG = -fno-rtti\r
169endif\r
170ifeq ($(USE_RTTI),1)\r
171__RTTIFLAG = \r
172endif\r
173ifeq ($(USE_EXCEPTIONS),0)\r
174__EXCEPTIONSFLAG = -fno-exceptions\r
175endif\r
176ifeq ($(USE_EXCEPTIONS),1)\r
177__EXCEPTIONSFLAG = \r
178endif\r
179ifeq ($(WXUNIV),1)\r
180__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
181endif\r
182ifeq ($(DEBUG_FLAG),0)\r
183__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
184endif\r
00fb97de
KO
185ifeq ($(BUILD),release)\r
186__NDEBUG_DEFINE_p = -DNDEBUG\r
187endif\r
f82b7036
KO
188ifeq ($(USE_EXCEPTIONS),0)\r
189__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
190endif\r
191ifeq ($(USE_RTTI),0)\r
192__RTTI_DEFINE_p = -DwxNO_RTTI\r
193endif\r
194ifeq ($(USE_THREADS),0)\r
195__THREAD_DEFINE_p = -DwxNO_THREADS\r
196endif\r
197ifeq ($(UNICODE),0)\r
198__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
199endif\r
200ifeq ($(UNICODE),1)\r
201__UNICODE_DEFINE_p = -D_UNICODE\r
202endif\r
203ifeq ($(MSLU),1)\r
204__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
205endif\r
f82b7036
KO
206ifeq ($(USE_CAIRO),1)\r
207____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
208endif\r
209ifeq ($(SHARED),1)\r
210__DLLFLAG_p = -DWXUSINGDLL\r
211endif\r
212ifeq ($(MONOLITHIC),0)\r
213__WXLIB_NET_p = \\r
bed99c22 214 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net\r
f82b7036
KO
215endif\r
216ifeq ($(MONOLITHIC),0)\r
217__WXLIB_BASE_p = \\r
bed99c22 218 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
f82b7036
KO
219endif\r
220ifeq ($(MONOLITHIC),1)\r
221__WXLIB_MONO_p = \\r
222 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
223endif\r
57c74474
VZ
224ifeq ($(USE_GUI),1)\r
225__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
226endif\r
f82b7036
KO
227ifeq ($(MSLU),1)\r
228__UNICOWS_LIB_p = -lunicows\r
229endif\r
f82b7036
KO
230ifeq ($(USE_CAIRO),1)\r
231__CAIRO_LIB_p = -lcairo\r
232endif\r
233ifeq ($(USE_CAIRO),1)\r
234____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
235endif\r
236ifeq ($(BUILD),debug)\r
237ifeq ($(DEBUG_INFO),default)\r
238__DEBUGINFO = -g\r
239endif\r
240endif\r
241ifeq ($(BUILD),release)\r
242ifeq ($(DEBUG_INFO),default)\r
243__DEBUGINFO = \r
244endif\r
245endif\r
246ifeq ($(DEBUG_INFO),0)\r
247__DEBUGINFO = \r
248endif\r
249ifeq ($(DEBUG_INFO),1)\r
250__DEBUGINFO = -g\r
251endif\r
252ifeq ($(USE_THREADS),0)\r
253__THREADSFLAG = \r
254endif\r
255ifeq ($(USE_THREADS),1)\r
256__THREADSFLAG = -mthreads\r
257endif\r
258\r
259\r
260all: $(OBJS)\r
261$(OBJS):\r
262 -if not exist $(OBJS) mkdir $(OBJS)\r
263\r
264### Targets: ###\r
265\r
266all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe\r
267\r
268clean: \r
269 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
270 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
271 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe\r
272 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe\r
273 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe\r
274 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe\r
275\r
276ifeq ($(USE_GUI),1)\r
00eef16d 277$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o\r
a4830bb5 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\r
f82b7036
KO
279endif\r
280\r
281ifeq ($(USE_GUI),1)\r
00eef16d 282$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o\r
a4830bb5 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\r
f82b7036
KO
284endif\r
285\r
286$(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)\r
57c74474 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\r
f82b7036
KO
288\r
289$(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)\r
57c74474 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\r
f82b7036 291\r
00eef16d 292$(OBJS)\client_sample_rc.o: ./../../samples/sample.rc\r
bed99c22 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\r
00eef16d 294\r
f82b7036
KO
295$(OBJS)\client_client.o: ./client.cpp\r
296 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<\r
297\r
00eef16d 298$(OBJS)\server_sample_rc.o: ./../../samples/sample.rc\r
bed99c22 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\r
f82b7036
KO
300\r
301$(OBJS)\server_server.o: ./server.cpp\r
302 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<\r
303\r
f82b7036
KO
304$(OBJS)\baseclient_baseclient.o: ./baseclient.cpp\r
305 $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<\r
306\r
307$(OBJS)\baseserver_baseserver.o: ./baseserver.cpp\r
308 $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<\r
309\r
310.PHONY: all clean\r
311\r
312\r
313SHELL := $(COMSPEC)\r
314\r
315# Dependencies tracking:\r
316-include $(OBJS)/*.d\r