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