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