]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.gcc
Adding wxDC::GetHandle for wxOSX-cocoa and wxOSX-carbon
[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
14b682f7
VZ
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
f82b7036
KO
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
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
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
KO
34SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
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
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
KO
44BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r
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
KO
49 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r
50 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \\r
51 $(CXXFLAGS)\r
52BASECLIENT_OBJECTS = \\r
53 $(OBJS)\baseclient_baseclient.o\r
54BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r
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
KO
59 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r
60 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \\r
61 $(CXXFLAGS)\r
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
74PORTNAME = msw\r
75endif\r
14b682f7
VZ
76ifeq ($(OFFICIAL_BUILD),1)
77COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
78endif
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
152ifeq ($(USE_GUI),1)\r
153__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
154endif\r
155ifeq ($(USE_GUI),1)\r
156__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
157endif\r
f82b7036
KO
158ifeq ($(BUILD),debug)\r
159__OPTIMIZEFLAG = -O0\r
160endif\r
161ifeq ($(BUILD),release)\r
162__OPTIMIZEFLAG = -O2\r
163endif\r
164ifeq ($(USE_RTTI),0)\r
165__RTTIFLAG = -fno-rtti\r
166endif\r
167ifeq ($(USE_RTTI),1)\r
168__RTTIFLAG = \r
169endif\r
170ifeq ($(USE_EXCEPTIONS),0)\r
171__EXCEPTIONSFLAG = -fno-exceptions\r
172endif\r
173ifeq ($(USE_EXCEPTIONS),1)\r
174__EXCEPTIONSFLAG = \r
175endif\r
176ifeq ($(WXUNIV),1)\r
177__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
178endif\r
179ifeq ($(DEBUG_FLAG),0)\r
180__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
181endif\r
00fb97de
KO
182ifeq ($(BUILD),release)\r
183__NDEBUG_DEFINE_p = -DNDEBUG\r
184endif\r
f82b7036
KO
185ifeq ($(USE_EXCEPTIONS),0)\r
186__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
187endif\r
188ifeq ($(USE_RTTI),0)\r
189__RTTI_DEFINE_p = -DwxNO_RTTI\r
190endif\r
191ifeq ($(USE_THREADS),0)\r
192__THREAD_DEFINE_p = -DwxNO_THREADS\r
193endif\r
194ifeq ($(UNICODE),0)\r
195__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
196endif\r
197ifeq ($(UNICODE),1)\r
198__UNICODE_DEFINE_p = -D_UNICODE\r
199endif\r
200ifeq ($(MSLU),1)\r
201__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
202endif\r
f82b7036
KO
203ifeq ($(USE_CAIRO),1)\r
204____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
205endif\r
206ifeq ($(SHARED),1)\r
207__DLLFLAG_p = -DWXUSINGDLL\r
208endif\r
209ifeq ($(MONOLITHIC),0)\r
210__WXLIB_NET_p = \\r
211 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net\r
212endif\r
213ifeq ($(MONOLITHIC),0)\r
214__WXLIB_BASE_p = \\r
215 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
216endif\r
217ifeq ($(MONOLITHIC),1)\r
218__WXLIB_MONO_p = \\r
219 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
220endif\r
57c74474
VZ
221ifeq ($(USE_GUI),1)\r
222__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
223endif\r
f82b7036
KO
224ifeq ($(MSLU),1)\r
225__UNICOWS_LIB_p = -lunicows\r
226endif\r
f82b7036
KO
227ifeq ($(USE_CAIRO),1)\r
228__CAIRO_LIB_p = -lcairo\r
229endif\r
230ifeq ($(USE_CAIRO),1)\r
231____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
232endif\r
233ifeq ($(BUILD),debug)\r
234ifeq ($(DEBUG_INFO),default)\r
235__DEBUGINFO = -g\r
236endif\r
237endif\r
238ifeq ($(BUILD),release)\r
239ifeq ($(DEBUG_INFO),default)\r
240__DEBUGINFO = \r
241endif\r
242endif\r
243ifeq ($(DEBUG_INFO),0)\r
244__DEBUGINFO = \r
245endif\r
246ifeq ($(DEBUG_INFO),1)\r
247__DEBUGINFO = -g\r
248endif\r
249ifeq ($(USE_THREADS),0)\r
250__THREADSFLAG = \r
251endif\r
252ifeq ($(USE_THREADS),1)\r
253__THREADSFLAG = -mthreads\r
254endif\r
255\r
256\r
257all: $(OBJS)\r
258$(OBJS):\r
259 -if not exist $(OBJS) mkdir $(OBJS)\r
260\r
261### Targets: ###\r
262\r
263all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe\r
264\r
265clean: \r
266 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
267 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
268 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe\r
269 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe\r
270 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe\r
271 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe\r
272\r
273ifeq ($(USE_GUI),1)\r
00eef16d 274$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o\r
b796194b 275 $(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
f82b7036
KO
276endif\r
277\r
278ifeq ($(USE_GUI),1)\r
00eef16d 279$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o\r
b796194b 280 $(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
f82b7036
KO
281endif\r
282\r
283$(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)\r
57c74474 284 $(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
285\r
286$(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)\r
57c74474 287 $(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 288\r
00eef16d
VZ
289$(OBJS)\client_sample_rc.o: ./../../samples/sample.rc\r
290 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
291\r
f82b7036
KO
292$(OBJS)\client_client.o: ./client.cpp\r
293 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<\r
294\r
00eef16d 295$(OBJS)\server_sample_rc.o: ./../../samples/sample.rc\r
b796194b 296 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
297\r
298$(OBJS)\server_server.o: ./server.cpp\r
299 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<\r
300\r
f82b7036
KO
301$(OBJS)\baseclient_baseclient.o: ./baseclient.cpp\r
302 $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<\r
303\r
304$(OBJS)\baseserver_baseserver.o: ./baseserver.cpp\r
305 $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<\r
306\r
307.PHONY: all clean\r
308\r
309\r
310SHELL := $(COMSPEC)\r
311\r
312# Dependencies tracking:\r
313-include $(OBJS)/*.d\r