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