]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.gcc
added a note about XRCID() and EVT_*_RANGE macros (see bug #11431)
[wxWidgets.git] / samples / sockets / makefile.gcc
CommitLineData
78808897
VZ
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.7 (http://www.bakefile.org)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD -MP
16WX_RELEASE_NODOT = 29
17COMPILER_PREFIX = gcc
18OBJS = \
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
27 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
28 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
29 $(CXXFLAGS)
30CLIENT_OBJECTS = \
31 $(OBJS)\client_client.o \
32 $(OBJS)\client_client_rc.o
33SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
35 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
37 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
38 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
39 $(CXXFLAGS)
40SERVER_OBJECTS = \
41 $(OBJS)\server_server.o \
42 $(OBJS)\server_server_rc.o
43BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
44 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
45 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
46 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
47 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
48 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
49 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
50BASECLIENT_OBJECTS = \
51 $(OBJS)\baseclient_baseclient.o
52BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
53 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
54 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
55 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
56 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
57 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
58 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
59BASESERVER_OBJECTS = \
60 $(OBJS)\baseserver_baseserver.o
61
62### Conditionally set variables: ###
63
64ifeq ($(GCC_VERSION),2.95)
65GCCFLAGS = -fvtable-thunks
66endif
67ifeq ($(USE_GUI),0)
68PORTNAME = base
69endif
70ifeq ($(USE_GUI),1)
71PORTNAME = msw
72endif
73ifeq ($(BUILD),debug)
74WXDEBUGFLAG = d
75endif
76ifeq ($(UNICODE),1)
77WXUNICODEFLAG = u
78endif
79ifeq ($(WXUNIV),1)
80WXUNIVNAME = univ
81endif
82ifeq ($(SHARED),1)
83WXDLLFLAG = dll
84endif
85ifeq ($(SHARED),0)
86LIBTYPE_SUFFIX = lib
87endif
88ifeq ($(SHARED),1)
89LIBTYPE_SUFFIX = dll
90endif
91ifeq ($(MONOLITHIC),0)
92EXTRALIBS_FOR_BASE =
93endif
94ifeq ($(MONOLITHIC),1)
95EXTRALIBS_FOR_BASE =
96endif
97ifeq ($(USE_GUI),1)
98__client___depname = $(OBJS)\client.exe
99endif
100ifeq ($(USE_GUI),1)
101__server___depname = $(OBJS)\server.exe
102endif
103ifeq ($(WXUNIV),1)
104__WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
105endif
106ifeq ($(DEBUG_FLAG),0)
107__DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
108endif
109ifeq ($(USE_EXCEPTIONS),0)
110__EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
111endif
112ifeq ($(USE_RTTI),0)
113__RTTI_DEFINE_p_0 = --define wxNO_RTTI
114endif
115ifeq ($(USE_THREADS),0)
116__THREAD_DEFINE_p_0 = --define wxNO_THREADS
117endif
118ifeq ($(UNICODE),0)
119__UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
120endif
121ifeq ($(UNICODE),1)
122__UNICODE_DEFINE_p_0 = --define _UNICODE
123endif
124ifeq ($(MSLU),1)
125__MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
126endif
127ifeq ($(USE_GDIPLUS),1)
128__GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=1
129endif
130ifeq ($(SHARED),1)
131__DLLFLAG_p_0 = --define WXUSINGDLL
132endif
133ifeq ($(MONOLITHIC),0)
134__WXLIB_CORE_p = \
135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
136endif
137ifeq ($(USE_GUI),1)
138__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
139endif
140ifeq ($(USE_GUI),1)
141__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
142endif
143ifeq ($(USE_GUI),1)
144__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
145endif
146ifeq ($(BUILD),debug)
147__OPTIMIZEFLAG = -O0
148endif
149ifeq ($(BUILD),release)
150__OPTIMIZEFLAG = -O2
151endif
152ifeq ($(USE_RTTI),0)
153__RTTIFLAG = -fno-rtti
154endif
155ifeq ($(USE_RTTI),1)
156__RTTIFLAG =
157endif
158ifeq ($(USE_EXCEPTIONS),0)
159__EXCEPTIONSFLAG = -fno-exceptions
160endif
161ifeq ($(USE_EXCEPTIONS),1)
162__EXCEPTIONSFLAG =
163endif
164ifeq ($(WXUNIV),1)
165__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
166endif
167ifeq ($(DEBUG_FLAG),0)
168__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
169endif
170ifeq ($(USE_EXCEPTIONS),0)
171__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
172endif
173ifeq ($(USE_RTTI),0)
174__RTTI_DEFINE_p = -DwxNO_RTTI
175endif
176ifeq ($(USE_THREADS),0)
177__THREAD_DEFINE_p = -DwxNO_THREADS
178endif
179ifeq ($(UNICODE),0)
180__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
181endif
182ifeq ($(UNICODE),1)
183__UNICODE_DEFINE_p = -D_UNICODE
184endif
185ifeq ($(MSLU),1)
186__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
187endif
188ifeq ($(USE_GDIPLUS),1)
189__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
190endif
191ifeq ($(SHARED),1)
192__DLLFLAG_p = -DWXUSINGDLL
193endif
194ifeq ($(MONOLITHIC),0)
195__WXLIB_NET_p = \
196 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
197endif
198ifeq ($(MONOLITHIC),0)
199__WXLIB_BASE_p = \
200 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
201endif
202ifeq ($(MONOLITHIC),1)
203__WXLIB_MONO_p = \
204 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
205endif
206ifeq ($(MSLU),1)
207__UNICOWS_LIB_p = -lunicows
208endif
209ifeq ($(USE_GDIPLUS),1)
210__GDIPLUS_LIB_p = -lgdiplus
211endif
212ifeq ($(BUILD),debug)
213ifeq ($(DEBUG_INFO),default)
214__DEBUGINFO = -g
215endif
216endif
217ifeq ($(BUILD),release)
218ifeq ($(DEBUG_INFO),default)
219__DEBUGINFO =
220endif
221endif
222ifeq ($(DEBUG_INFO),0)
223__DEBUGINFO =
224endif
225ifeq ($(DEBUG_INFO),1)
226__DEBUGINFO = -g
227endif
228ifeq ($(USE_THREADS),0)
229__THREADSFLAG =
230endif
231ifeq ($(USE_THREADS),1)
232__THREADSFLAG = -mthreads
233endif
234
235
236all: $(OBJS)
237$(OBJS):
238 -if not exist $(OBJS) mkdir $(OBJS)
239
240### Targets: ###
241
242all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
243
244clean:
245 -if exist $(OBJS)\*.o del $(OBJS)\*.o
246 -if exist $(OBJS)\*.d del $(OBJS)\*.d
247 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
248 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
249 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
250 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
251
252ifeq ($(USE_GUI),1)
253$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client_rc.o
254 $(CXX) -o $@ $(CLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
255endif
256
257ifeq ($(USE_GUI),1)
258$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server_rc.o
259 $(CXX) -o $@ $(SERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
260endif
261
262$(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
263 $(CXX) -o $@ $(BASECLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
264
265$(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
266 $(CXX) -o $@ $(BASESERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
267
268$(OBJS)\client_client.o: ./client.cpp
269 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
270
271$(OBJS)\client_client_rc.o: ./client.rc
272 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 --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
273
274$(OBJS)\server_server.o: ./server.cpp
275 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
276
277$(OBJS)\server_server_rc.o: ./server.rc
278 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 --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
279
280$(OBJS)\baseclient_baseclient.o: ./baseclient.cpp
281 $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<
282
283$(OBJS)\baseserver_baseserver.o: ./baseserver.cpp
284 $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<
285
286.PHONY: all clean
287
288
289SHELL := $(COMSPEC)
290
291# Dependencies tracking:
292-include $(OBJS)/*.d