]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/ipc/makefile.gcc
Support using GetTextExtent() with empty string to get descent in wxOSX.
[wxWidgets.git] / samples / ipc / makefile.gcc
... / ...
CommitLineData
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.9 (http://www.bakefile.org)\r
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
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
20LIBDIRNAME = \\r
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r
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
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
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
37 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
38 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
39 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
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
48 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
49 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
50 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
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
58 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
59 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
60 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
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$(TOOLKIT_VERSION)\r
77endif\r
78ifeq ($(OFFICIAL_BUILD),1)\r
79COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r
80endif\r
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
103EXTRALIBS_FOR_BASE = \r
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
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
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
123ifeq ($(BUILD),release)\r
124__NDEBUG_DEFINE_p_0 = --define NDEBUG\r
125endif\r
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
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 ($(MONOLITHIC),1)\r
155ifeq ($(USE_STC),1)
156__LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)\r
157endif\r
158endif
159ifeq ($(USE_GUI),1)\r
160__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
161endif\r
162ifeq ($(USE_GUI),1)\r
163__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
164endif\r
165ifeq ($(BUILD),debug)\r
166__OPTIMIZEFLAG = -O0\r
167endif\r
168ifeq ($(BUILD),release)\r
169__OPTIMIZEFLAG = -O2\r
170endif\r
171ifeq ($(USE_RTTI),0)\r
172__RTTIFLAG = -fno-rtti\r
173endif\r
174ifeq ($(USE_RTTI),1)\r
175__RTTIFLAG = \r
176endif\r
177ifeq ($(USE_EXCEPTIONS),0)\r
178__EXCEPTIONSFLAG = -fno-exceptions\r
179endif\r
180ifeq ($(USE_EXCEPTIONS),1)\r
181__EXCEPTIONSFLAG = \r
182endif\r
183ifeq ($(WXUNIV),1)\r
184__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
185endif\r
186ifeq ($(DEBUG_FLAG),0)\r
187__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
188endif\r
189ifeq ($(BUILD),release)\r
190__NDEBUG_DEFINE_p = -DNDEBUG\r
191endif\r
192ifeq ($(USE_EXCEPTIONS),0)\r
193__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
194endif\r
195ifeq ($(USE_RTTI),0)\r
196__RTTI_DEFINE_p = -DwxNO_RTTI\r
197endif\r
198ifeq ($(USE_THREADS),0)\r
199__THREAD_DEFINE_p = -DwxNO_THREADS\r
200endif\r
201ifeq ($(UNICODE),0)\r
202__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
203endif\r
204ifeq ($(UNICODE),1)\r
205__UNICODE_DEFINE_p = -D_UNICODE\r
206endif\r
207ifeq ($(MSLU),1)\r
208__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
209endif\r
210ifeq ($(USE_CAIRO),1)\r
211____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
212endif\r
213ifeq ($(SHARED),1)\r
214__DLLFLAG_p = -DWXUSINGDLL\r
215endif\r
216ifeq ($(MONOLITHIC),0)\r
217__WXLIB_NET_p = \\r
218 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net\r
219endif\r
220ifeq ($(MONOLITHIC),0)\r
221__WXLIB_BASE_p = \\r
222 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
223endif\r
224ifeq ($(MONOLITHIC),1)\r
225__WXLIB_MONO_p = \\r
226 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
227endif\r
228ifeq ($(USE_GUI),1)\r
229__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
230endif\r
231ifeq ($(MSLU),1)\r
232__UNICOWS_LIB_p = -lunicows\r
233endif\r
234ifeq ($(USE_CAIRO),1)\r
235__CAIRO_LIB_p = -lcairo\r
236endif\r
237ifeq ($(USE_CAIRO),1)\r
238____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
239endif\r
240ifeq ($(BUILD),debug)\r
241ifeq ($(DEBUG_INFO),default)\r
242__DEBUGINFO = -g\r
243endif\r
244endif\r
245ifeq ($(BUILD),release)\r
246ifeq ($(DEBUG_INFO),default)\r
247__DEBUGINFO = \r
248endif\r
249endif\r
250ifeq ($(DEBUG_INFO),0)\r
251__DEBUGINFO = \r
252endif\r
253ifeq ($(DEBUG_INFO),1)\r
254__DEBUGINFO = -g\r
255endif\r
256ifeq ($(USE_THREADS),0)\r
257__THREADSFLAG = \r
258endif\r
259ifeq ($(USE_THREADS),1)\r
260__THREADSFLAG = -mthreads\r
261endif\r
262\r
263\r
264all: $(OBJS)\r
265$(OBJS):\r
266 -if not exist $(OBJS) mkdir $(OBJS)\r
267\r
268### Targets: ###\r
269\r
270all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe\r
271\r
272clean: \r
273 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
274 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
275 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe\r
276 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe\r
277 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe\r
278 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe\r
279\r
280ifeq ($(USE_GUI),1)\r
281$(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample_rc.o\r
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\r
283endif\r
284\r
285ifeq ($(USE_GUI),1)\r
286$(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample_rc.o\r
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\r
288endif\r
289\r
290$(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)\r
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\r
292\r
293$(OBJS)\baseipcserver.exe: $(BASEIPCSERVER_OBJECTS)\r
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\r
295\r
296$(OBJS)\ipcclient_sample_rc.o: ./../../samples/sample.rc\r
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\r
298\r
299$(OBJS)\ipcclient_client.o: ./client.cpp\r
300 $(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<\r
301\r
302$(OBJS)\ipcserver_sample_rc.o: ./../../samples/sample.rc\r
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\r
304\r
305$(OBJS)\ipcserver_server.o: ./server.cpp\r
306 $(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<\r
307\r
308$(OBJS)\baseipcclient_baseclient.o: ./baseclient.cpp\r
309 $(CXX) -c -o $@ $(BASEIPCCLIENT_CXXFLAGS) $(CPPDEPS) $<\r
310\r
311$(OBJS)\baseipcserver_baseserver.o: ./baseserver.cpp\r
312 $(CXX) -c -o $@ $(BASEIPCSERVER_CXXFLAGS) $(CPPDEPS) $<\r
313\r
314.PHONY: all clean\r
315\r
316\r
317SHELL := $(COMSPEC)\r
318\r
319# Dependencies tracking:\r
320-include $(OBJS)/*.d\r