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