]> git.saurik.com Git - wxWidgets.git/blob - samples/ipc/makefile.gcc
Fix position carried in wxSpin{Button,Ctrl} events for 32 bit values in wxMSW.
[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
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 ($(USE_GUI),1)
155 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
156 endif
157 ifeq ($(USE_GUI),1)
158 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
159 endif
160 ifeq ($(BUILD),debug)
161 __OPTIMIZEFLAG = -O0
162 endif
163 ifeq ($(BUILD),release)
164 __OPTIMIZEFLAG = -O2
165 endif
166 ifeq ($(USE_RTTI),0)
167 __RTTIFLAG = -fno-rtti
168 endif
169 ifeq ($(USE_RTTI),1)
170 __RTTIFLAG =
171 endif
172 ifeq ($(USE_EXCEPTIONS),0)
173 __EXCEPTIONSFLAG = -fno-exceptions
174 endif
175 ifeq ($(USE_EXCEPTIONS),1)
176 __EXCEPTIONSFLAG =
177 endif
178 ifeq ($(WXUNIV),1)
179 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
180 endif
181 ifeq ($(DEBUG_FLAG),0)
182 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
183 endif
184 ifeq ($(BUILD),release)
185 __NDEBUG_DEFINE_p = -DNDEBUG
186 endif
187 ifeq ($(USE_EXCEPTIONS),0)
188 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
189 endif
190 ifeq ($(USE_RTTI),0)
191 __RTTI_DEFINE_p = -DwxNO_RTTI
192 endif
193 ifeq ($(USE_THREADS),0)
194 __THREAD_DEFINE_p = -DwxNO_THREADS
195 endif
196 ifeq ($(UNICODE),0)
197 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
198 endif
199 ifeq ($(UNICODE),1)
200 __UNICODE_DEFINE_p = -D_UNICODE
201 endif
202 ifeq ($(MSLU),1)
203 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
204 endif
205 ifeq ($(USE_CAIRO),1)
206 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
207 endif
208 ifeq ($(SHARED),1)
209 __DLLFLAG_p = -DWXUSINGDLL
210 endif
211 ifeq ($(MONOLITHIC),0)
212 __WXLIB_NET_p = \
213 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
214 endif
215 ifeq ($(MONOLITHIC),0)
216 __WXLIB_BASE_p = \
217 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
218 endif
219 ifeq ($(MONOLITHIC),1)
220 __WXLIB_MONO_p = \
221 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
222 endif
223 ifeq ($(USE_GUI),1)
224 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
225 endif
226 ifeq ($(MSLU),1)
227 __UNICOWS_LIB_p = -lunicows
228 endif
229 ifeq ($(USE_CAIRO),1)
230 __CAIRO_LIB_p = -lcairo
231 endif
232 ifeq ($(USE_CAIRO),1)
233 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
234 endif
235 ifeq ($(BUILD),debug)
236 ifeq ($(DEBUG_INFO),default)
237 __DEBUGINFO = -g
238 endif
239 endif
240 ifeq ($(BUILD),release)
241 ifeq ($(DEBUG_INFO),default)
242 __DEBUGINFO =
243 endif
244 endif
245 ifeq ($(DEBUG_INFO),0)
246 __DEBUGINFO =
247 endif
248 ifeq ($(DEBUG_INFO),1)
249 __DEBUGINFO = -g
250 endif
251 ifeq ($(USE_THREADS),0)
252 __THREADSFLAG =
253 endif
254 ifeq ($(USE_THREADS),1)
255 __THREADSFLAG = -mthreads
256 endif
257
258
259 all: $(OBJS)
260 $(OBJS):
261 -if not exist $(OBJS) mkdir $(OBJS)
262
263 ### Targets: ###
264
265 all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
266
267 clean:
268 -if exist $(OBJS)\*.o del $(OBJS)\*.o
269 -if exist $(OBJS)\*.d del $(OBJS)\*.d
270 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
271 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
272 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
273 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
274
275 ifeq ($(USE_GUI),1)
276 $(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample_rc.o
277 $(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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
278 endif
279
280 ifeq ($(USE_GUI),1)
281 $(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample_rc.o
282 $(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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
283 endif
284
285 $(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)
286 $(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
287
288 $(OBJS)\baseipcserver.exe: $(BASEIPCSERVER_OBJECTS)
289 $(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
290
291 $(OBJS)\ipcclient_sample_rc.o: ./../../samples/sample.rc
292 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
293
294 $(OBJS)\ipcclient_client.o: ./client.cpp
295 $(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
296
297 $(OBJS)\ipcserver_sample_rc.o: ./../../samples/sample.rc
298 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
299
300 $(OBJS)\ipcserver_server.o: ./server.cpp
301 $(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<
302
303 $(OBJS)\baseipcclient_baseclient.o: ./baseclient.cpp
304 $(CXX) -c -o $@ $(BASEIPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
305
306 $(OBJS)\baseipcserver_baseserver.o: ./baseserver.cpp
307 $(CXX) -c -o $@ $(BASEIPCSERVER_CXXFLAGS) $(CPPDEPS) $<
308
309 .PHONY: all clean
310
311
312 SHELL := $(COMSPEC)
313
314 # Dependencies tracking:
315 -include $(OBJS)/*.d