]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.gcc
Speed up adding pages during freezing
[wxWidgets.git] / samples / sockets / makefile.gcc
CommitLineData
f82b7036
KO
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 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \\r
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_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_client.o \\r
32 $(OBJS)\client_client_rc.o\r
33SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r
35 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \\r
36 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_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_server.o \\r
42 $(OBJS)\server_server_rc.o\r
43BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r
44 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
45 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
46 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
47 $(__GFXCTX_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) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
56 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
57 $(__GFXCTX_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 ($(USE_EXCEPTIONS),0)\r
112__EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS\r
113endif\r
114ifeq ($(USE_RTTI),0)\r
115__RTTI_DEFINE_p_0 = --define wxNO_RTTI\r
116endif\r
117ifeq ($(USE_THREADS),0)\r
118__THREAD_DEFINE_p_0 = --define wxNO_THREADS\r
119endif\r
120ifeq ($(UNICODE),0)\r
121__UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0\r
122endif\r
123ifeq ($(UNICODE),1)\r
124__UNICODE_DEFINE_p_0 = --define _UNICODE\r
125endif\r
126ifeq ($(MSLU),1)\r
127__MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1\r
128endif\r
129ifeq ($(USE_GDIPLUS),1)\r
130__GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=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 ($(USE_EXCEPTIONS),0)\r
176__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
177endif\r
178ifeq ($(USE_RTTI),0)\r
179__RTTI_DEFINE_p = -DwxNO_RTTI\r
180endif\r
181ifeq ($(USE_THREADS),0)\r
182__THREAD_DEFINE_p = -DwxNO_THREADS\r
183endif\r
184ifeq ($(UNICODE),0)\r
185__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
186endif\r
187ifeq ($(UNICODE),1)\r
188__UNICODE_DEFINE_p = -D_UNICODE\r
189endif\r
190ifeq ($(MSLU),1)\r
191__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
192endif\r
193ifeq ($(USE_GDIPLUS),1)\r
194__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=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_GDIPLUS),1)\r
218__GDIPLUS_LIB_p = -lgdiplus\r
219endif\r
220ifeq ($(USE_CAIRO),1)\r
221__CAIRO_LIB_p = -lcairo\r
222endif\r
223ifeq ($(USE_CAIRO),1)\r
224____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
225endif\r
226ifeq ($(BUILD),debug)\r
227ifeq ($(DEBUG_INFO),default)\r
228__DEBUGINFO = -g\r
229endif\r
230endif\r
231ifeq ($(BUILD),release)\r
232ifeq ($(DEBUG_INFO),default)\r
233__DEBUGINFO = \r
234endif\r
235endif\r
236ifeq ($(DEBUG_INFO),0)\r
237__DEBUGINFO = \r
238endif\r
239ifeq ($(DEBUG_INFO),1)\r
240__DEBUGINFO = -g\r
241endif\r
242ifeq ($(USE_THREADS),0)\r
243__THREADSFLAG = \r
244endif\r
245ifeq ($(USE_THREADS),1)\r
246__THREADSFLAG = -mthreads\r
247endif\r
248\r
249\r
250all: $(OBJS)\r
251$(OBJS):\r
252 -if not exist $(OBJS) mkdir $(OBJS)\r
253\r
254### Targets: ###\r
255\r
256all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe\r
257\r
258clean: \r
259 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
260 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
261 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe\r
262 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe\r
263 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe\r
264 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe\r
265\r
266ifeq ($(USE_GUI),1)\r
267$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client_rc.o\r
268 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
269endif\r
270\r
271ifeq ($(USE_GUI),1)\r
272$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server_rc.o\r
273 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
274endif\r
275\r
276$(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)\r
277 $(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) $(__GDIPLUS_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)\baseserver.exe: $(BASESERVER_OBJECTS)\r
280 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
281\r
282$(OBJS)\client_client.o: ./client.cpp\r
283 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<\r
284\r
285$(OBJS)\client_client_rc.o: ./client.rc\r
286 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) $(__GFXCTX_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)\server_server_rc.o: ./server.rc\r
292 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) $(__GFXCTX_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH\r
293\r
294$(OBJS)\baseclient_baseclient.o: ./baseclient.cpp\r
295 $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<\r
296\r
297$(OBJS)\baseserver_baseserver.o: ./baseserver.cpp\r
298 $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<\r
299\r
300.PHONY: all clean\r
301\r
302\r
303SHELL := $(COMSPEC)\r
304\r
305# Dependencies tracking:\r
306-include $(OBJS)/*.d\r