]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/makefile.gcc
Disable Unity global menu while native modal dialogs are shown in wxGTK.
[wxWidgets.git] / samples / sockets / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (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)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
22 SETUPHDIR = \
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
25 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
28 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
29 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
30 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
31 $(CPPFLAGS) $(CXXFLAGS)
32 CLIENT_OBJECTS = \
33 $(OBJS)\client_sample_rc.o \
34 $(OBJS)\client_client.o
35 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
36 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
37 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
38 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
39 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
40 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
41 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
42 $(CPPFLAGS) $(CXXFLAGS)
43 SERVER_OBJECTS = \
44 $(OBJS)\server_sample_rc.o \
45 $(OBJS)\server_server.o
46 BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
47 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
48 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
49 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
50 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
51 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
52 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
53 $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
54 BASECLIENT_OBJECTS = \
55 $(OBJS)\baseclient_baseclient.o
56 BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
57 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
58 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
59 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
60 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
61 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
62 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
63 $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
64 BASESERVER_OBJECTS = \
65 $(OBJS)\baseserver_baseserver.o
66
67 ### Conditionally set variables: ###
68
69 ifeq ($(TOOLKIT),GTK)
70 WIN32_TOOLKIT_LOWERCASE = gtk
71 endif
72 ifeq ($(TOOLKIT),MSW)
73 WIN32_TOOLKIT_LOWERCASE = msw
74 endif
75 ifeq ($(GCC_VERSION),2.95)
76 GCCFLAGS = -fvtable-thunks
77 endif
78 ifeq ($(USE_GUI),0)
79 PORTNAME = base
80 endif
81 ifeq ($(USE_GUI),1)
82 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
83 endif
84 ifeq ($(TOOLKIT),MAC)
85 WXBASEPORT = _carbon
86 endif
87 ifeq ($(OFFICIAL_BUILD),1)
88 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
89 endif
90 ifeq ($(BUILD),debug)
91 WXDEBUGFLAG = d
92 endif
93 ifeq ($(UNICODE),1)
94 WXUNICODEFLAG = u
95 endif
96 ifeq ($(WXUNIV),1)
97 WXUNIVNAME = univ
98 endif
99 ifeq ($(SHARED),1)
100 WXDLLFLAG = dll
101 endif
102 ifeq ($(SHARED),0)
103 LIBTYPE_SUFFIX = lib
104 endif
105 ifeq ($(SHARED),1)
106 LIBTYPE_SUFFIX = dll
107 endif
108 ifeq ($(MONOLITHIC),0)
109 EXTRALIBS_FOR_BASE =
110 endif
111 ifeq ($(MONOLITHIC),1)
112 EXTRALIBS_FOR_BASE =
113 endif
114 ifeq ($(TOOLKIT),GTK)
115 CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
116 endif
117 ifeq ($(TOOLKIT),GTK)
118 ifeq ($(TOOLKIT_VERSION),2)
119 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
120 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
121 glib-2.0.lib
122 endif
123 endif
124 ifeq ($(USE_GUI),1)
125 __client___depname = $(OBJS)\client.exe
126 endif
127 ifeq ($(USE_GUI),1)
128 __server___depname = $(OBJS)\server.exe
129 endif
130 ifeq ($(MONOLITHIC),1)
131 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
132 endif
133 ifeq ($(MONOLITHIC),1)
134 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
135 endif
136 ifeq ($(WXUNIV),1)
137 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
138 endif
139 ifeq ($(DEBUG_FLAG),0)
140 __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
141 endif
142 ifeq ($(BUILD),release)
143 __NDEBUG_DEFINE_p_0 = --define NDEBUG
144 endif
145 ifeq ($(USE_EXCEPTIONS),0)
146 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
147 endif
148 ifeq ($(USE_RTTI),0)
149 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
150 endif
151 ifeq ($(USE_THREADS),0)
152 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
153 endif
154 ifeq ($(UNICODE),0)
155 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
156 endif
157 ifeq ($(UNICODE),1)
158 __UNICODE_DEFINE_p_0 = --define _UNICODE
159 endif
160 ifeq ($(MSLU),1)
161 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
162 endif
163 ifeq ($(USE_CAIRO),1)
164 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
165 endif
166 ifeq ($(SHARED),1)
167 __DLLFLAG_p_0 = --define WXUSINGDLL
168 endif
169 ifeq ($(MONOLITHIC),0)
170 __WXLIB_CORE_p = \
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
172 endif
173 ifeq ($(USE_GUI),1)
174 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
175 endif
176 ifeq ($(USE_GUI),1)
177 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
178 endif
179 ifeq ($(BUILD),debug)
180 __OPTIMIZEFLAG = -O0
181 endif
182 ifeq ($(BUILD),release)
183 __OPTIMIZEFLAG = -O2
184 endif
185 ifeq ($(USE_RTTI),0)
186 __RTTIFLAG = -fno-rtti
187 endif
188 ifeq ($(USE_RTTI),1)
189 __RTTIFLAG =
190 endif
191 ifeq ($(USE_EXCEPTIONS),0)
192 __EXCEPTIONSFLAG = -fno-exceptions
193 endif
194 ifeq ($(USE_EXCEPTIONS),1)
195 __EXCEPTIONSFLAG =
196 endif
197 ifeq ($(WXUNIV),1)
198 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
199 endif
200 ifeq ($(DEBUG_FLAG),0)
201 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
202 endif
203 ifeq ($(BUILD),release)
204 __NDEBUG_DEFINE_p = -DNDEBUG
205 endif
206 ifeq ($(USE_EXCEPTIONS),0)
207 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
208 endif
209 ifeq ($(USE_RTTI),0)
210 __RTTI_DEFINE_p = -DwxNO_RTTI
211 endif
212 ifeq ($(USE_THREADS),0)
213 __THREAD_DEFINE_p = -DwxNO_THREADS
214 endif
215 ifeq ($(UNICODE),0)
216 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
217 endif
218 ifeq ($(UNICODE),1)
219 __UNICODE_DEFINE_p = -D_UNICODE
220 endif
221 ifeq ($(MSLU),1)
222 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
223 endif
224 ifeq ($(USE_CAIRO),1)
225 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
226 endif
227 ifeq ($(SHARED),1)
228 __DLLFLAG_p = -DWXUSINGDLL
229 endif
230 ifeq ($(MONOLITHIC),0)
231 __WXLIB_NET_p = \
232 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
233 endif
234 ifeq ($(MONOLITHIC),0)
235 __WXLIB_BASE_p = \
236 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
237 endif
238 ifeq ($(MONOLITHIC),1)
239 __WXLIB_MONO_p = \
240 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
241 endif
242 ifeq ($(USE_GUI),1)
243 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
244 endif
245 ifeq ($(MSLU),1)
246 __UNICOWS_LIB_p = -lunicows
247 endif
248 ifeq ($(USE_CAIRO),1)
249 __CAIRO_LIB_p = -lcairo
250 endif
251 ifeq ($(USE_CAIRO),1)
252 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
253 endif
254 ifeq ($(BUILD),debug)
255 ifeq ($(DEBUG_INFO),default)
256 __DEBUGINFO = -g
257 endif
258 endif
259 ifeq ($(BUILD),release)
260 ifeq ($(DEBUG_INFO),default)
261 __DEBUGINFO =
262 endif
263 endif
264 ifeq ($(DEBUG_INFO),0)
265 __DEBUGINFO =
266 endif
267 ifeq ($(DEBUG_INFO),1)
268 __DEBUGINFO = -g
269 endif
270 ifeq ($(USE_THREADS),0)
271 __THREADSFLAG =
272 endif
273 ifeq ($(USE_THREADS),1)
274 __THREADSFLAG = -mthreads
275 endif
276
277
278 all: $(OBJS)
279 $(OBJS):
280 -if not exist $(OBJS) mkdir $(OBJS)
281
282 ### Targets: ###
283
284 all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
285
286 clean:
287 -if exist $(OBJS)\*.o del $(OBJS)\*.o
288 -if exist $(OBJS)\*.d del $(OBJS)\*.d
289 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
290 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
291 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
292 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
293
294 ifeq ($(USE_GUI),1)
295 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o
296 $(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) $(LIB_GTK) -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
297 endif
298
299 ifeq ($(USE_GUI),1)
300 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o
301 $(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) $(LIB_GTK) -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
302 endif
303
304 $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
305 $(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
306
307 $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
308 $(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
309
310 $(OBJS)\client_sample_rc.o: ./../../samples/sample.rc
311 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__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
312
313 $(OBJS)\client_client.o: ./client.cpp
314 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
315
316 $(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
317 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__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
318
319 $(OBJS)\server_server.o: ./server.cpp
320 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
321
322 $(OBJS)\baseclient_baseclient.o: ./baseclient.cpp
323 $(CXX) -c -o $@ $(BASECLIENT_CXXFLAGS) $(CPPDEPS) $<
324
325 $(OBJS)\baseserver_baseserver.o: ./baseserver.cpp
326 $(CXX) -c -o $@ $(BASESERVER_CXXFLAGS) $(CPPDEPS) $<
327
328 .PHONY: all clean
329
330
331 SHELL := $(COMSPEC)
332
333 # Dependencies tracking:
334 -include $(OBJS)/*.d