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