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