]> git.saurik.com Git - wxWidgets.git/blob - samples/ipc/makefile.gcc
prevent infinite loop if gtk_menu_popup() fails, fixes #15387
[wxWidgets.git] / samples / ipc / 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 IPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
29 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \
30 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
31 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
32 IPCCLIENT_OBJECTS = \
33 $(OBJS)\ipcclient_sample_rc.o \
34 $(OBJS)\ipcclient_client.o
35 IPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
36 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
37 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
38 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
39 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
40 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \
41 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
42 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
43 IPCSERVER_OBJECTS = \
44 $(OBJS)\ipcserver_sample_rc.o \
45 $(OBJS)\ipcserver_server.o
46 BASEIPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
47 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__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 $(CPPFLAGS) \
53 $(CXXFLAGS)
54 BASEIPCCLIENT_OBJECTS = \
55 $(OBJS)\baseipcclient_baseclient.o
56 BASEIPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
57 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__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 $(CPPFLAGS) \
63 $(CXXFLAGS)
64 BASEIPCSERVER_OBJECTS = \
65 $(OBJS)\baseipcserver_baseserver.o
66
67 ### Conditionally set variables: ###
68
69 ifeq ($(GCC_VERSION),2.95)
70 GCCFLAGS = -fvtable-thunks
71 endif
72 ifeq ($(USE_GUI),0)
73 PORTNAME = base
74 endif
75 ifeq ($(USE_GUI),1)
76 PORTNAME = msw$(TOOLKIT_VERSION)
77 endif
78 ifeq ($(OFFICIAL_BUILD),1)
79 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
80 endif
81 ifeq ($(BUILD),debug)
82 WXDEBUGFLAG = d
83 endif
84 ifeq ($(UNICODE),1)
85 WXUNICODEFLAG = u
86 endif
87 ifeq ($(WXUNIV),1)
88 WXUNIVNAME = univ
89 endif
90 ifeq ($(SHARED),1)
91 WXDLLFLAG = dll
92 endif
93 ifeq ($(SHARED),0)
94 LIBTYPE_SUFFIX = lib
95 endif
96 ifeq ($(SHARED),1)
97 LIBTYPE_SUFFIX = dll
98 endif
99 ifeq ($(MONOLITHIC),0)
100 EXTRALIBS_FOR_BASE =
101 endif
102 ifeq ($(MONOLITHIC),1)
103 EXTRALIBS_FOR_BASE =
104 endif
105 ifeq ($(USE_GUI),1)
106 __ipcclient___depname = $(OBJS)\ipcclient.exe
107 endif
108 ifeq ($(USE_GUI),1)
109 __ipcserver___depname = $(OBJS)\ipcserver.exe
110 endif
111 ifeq ($(MONOLITHIC),1)
112 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
113 endif
114 ifeq ($(MONOLITHIC),1)
115 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
116 endif
117 ifeq ($(WXUNIV),1)
118 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
119 endif
120 ifeq ($(DEBUG_FLAG),0)
121 __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
122 endif
123 ifeq ($(BUILD),release)
124 __NDEBUG_DEFINE_p_0 = --define NDEBUG
125 endif
126 ifeq ($(USE_EXCEPTIONS),0)
127 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
128 endif
129 ifeq ($(USE_RTTI),0)
130 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
131 endif
132 ifeq ($(USE_THREADS),0)
133 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
134 endif
135 ifeq ($(UNICODE),0)
136 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
137 endif
138 ifeq ($(UNICODE),1)
139 __UNICODE_DEFINE_p_0 = --define _UNICODE
140 endif
141 ifeq ($(MSLU),1)
142 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
143 endif
144 ifeq ($(USE_CAIRO),1)
145 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
146 endif
147 ifeq ($(SHARED),1)
148 __DLLFLAG_p_0 = --define WXUSINGDLL
149 endif
150 ifeq ($(MONOLITHIC),0)
151 __WXLIB_CORE_p = \
152 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
153 endif
154 ifeq ($(MONOLITHIC),1)
155 ifeq ($(USE_STC),1)
156 __LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)
157 endif
158 endif
159 ifeq ($(USE_GUI),1)
160 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
161 endif
162 ifeq ($(USE_GUI),1)
163 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
164 endif
165 ifeq ($(BUILD),debug)
166 __OPTIMIZEFLAG = -O0
167 endif
168 ifeq ($(BUILD),release)
169 __OPTIMIZEFLAG = -O2
170 endif
171 ifeq ($(USE_RTTI),0)
172 __RTTIFLAG = -fno-rtti
173 endif
174 ifeq ($(USE_RTTI),1)
175 __RTTIFLAG =
176 endif
177 ifeq ($(USE_EXCEPTIONS),0)
178 __EXCEPTIONSFLAG = -fno-exceptions
179 endif
180 ifeq ($(USE_EXCEPTIONS),1)
181 __EXCEPTIONSFLAG =
182 endif
183 ifeq ($(WXUNIV),1)
184 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
185 endif
186 ifeq ($(DEBUG_FLAG),0)
187 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
188 endif
189 ifeq ($(BUILD),release)
190 __NDEBUG_DEFINE_p = -DNDEBUG
191 endif
192 ifeq ($(USE_EXCEPTIONS),0)
193 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
194 endif
195 ifeq ($(USE_RTTI),0)
196 __RTTI_DEFINE_p = -DwxNO_RTTI
197 endif
198 ifeq ($(USE_THREADS),0)
199 __THREAD_DEFINE_p = -DwxNO_THREADS
200 endif
201 ifeq ($(UNICODE),0)
202 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
203 endif
204 ifeq ($(UNICODE),1)
205 __UNICODE_DEFINE_p = -D_UNICODE
206 endif
207 ifeq ($(MSLU),1)
208 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
209 endif
210 ifeq ($(USE_CAIRO),1)
211 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
212 endif
213 ifeq ($(SHARED),1)
214 __DLLFLAG_p = -DWXUSINGDLL
215 endif
216 ifeq ($(MONOLITHIC),0)
217 __WXLIB_NET_p = \
218 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
219 endif
220 ifeq ($(MONOLITHIC),0)
221 __WXLIB_BASE_p = \
222 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
223 endif
224 ifeq ($(MONOLITHIC),1)
225 __WXLIB_MONO_p = \
226 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
227 endif
228 ifeq ($(USE_GUI),1)
229 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
230 endif
231 ifeq ($(MSLU),1)
232 __UNICOWS_LIB_p = -lunicows
233 endif
234 ifeq ($(USE_CAIRO),1)
235 __CAIRO_LIB_p = -lcairo
236 endif
237 ifeq ($(USE_CAIRO),1)
238 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
239 endif
240 ifeq ($(BUILD),debug)
241 ifeq ($(DEBUG_INFO),default)
242 __DEBUGINFO = -g
243 endif
244 endif
245 ifeq ($(BUILD),release)
246 ifeq ($(DEBUG_INFO),default)
247 __DEBUGINFO =
248 endif
249 endif
250 ifeq ($(DEBUG_INFO),0)
251 __DEBUGINFO =
252 endif
253 ifeq ($(DEBUG_INFO),1)
254 __DEBUGINFO = -g
255 endif
256 ifeq ($(USE_THREADS),0)
257 __THREADSFLAG =
258 endif
259 ifeq ($(USE_THREADS),1)
260 __THREADSFLAG = -mthreads
261 endif
262
263
264 all: $(OBJS)
265 $(OBJS):
266 -if not exist $(OBJS) mkdir $(OBJS)
267
268 ### Targets: ###
269
270 all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
271
272 clean:
273 -if exist $(OBJS)\*.o del $(OBJS)\*.o
274 -if exist $(OBJS)\*.d del $(OBJS)\*.d
275 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
276 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
277 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
278 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
279
280 ifeq ($(USE_GUI),1)
281 $(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample_rc.o
282 $(CXX) -o $@ $(IPCCLIENT_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_SCINTILLA_IF_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
283 endif
284
285 ifeq ($(USE_GUI),1)
286 $(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample_rc.o
287 $(CXX) -o $@ $(IPCSERVER_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_SCINTILLA_IF_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
288 endif
289
290 $(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)
291 $(CXX) -o $@ $(BASEIPCCLIENT_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
292
293 $(OBJS)\baseipcserver.exe: $(BASEIPCSERVER_OBJECTS)
294 $(CXX) -o $@ $(BASEIPCSERVER_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
295
296 $(OBJS)\ipcclient_sample_rc.o: ./../../samples/sample.rc
297 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
298
299 $(OBJS)\ipcclient_client.o: ./client.cpp
300 $(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
301
302 $(OBJS)\ipcserver_sample_rc.o: ./../../samples/sample.rc
303 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
304
305 $(OBJS)\ipcserver_server.o: ./server.cpp
306 $(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<
307
308 $(OBJS)\baseipcclient_baseclient.o: ./baseclient.cpp
309 $(CXX) -c -o $@ $(BASEIPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
310
311 $(OBJS)\baseipcserver_baseserver.o: ./baseserver.cpp
312 $(CXX) -c -o $@ $(BASEIPCSERVER_CXXFLAGS) $(CPPDEPS) $<
313
314 .PHONY: all clean
315
316
317 SHELL := $(COMSPEC)
318
319 # Dependencies tracking:
320 -include $(OBJS)/*.d