]> git.saurik.com Git - wxWidgets.git/blob - samples/ipc/makefile.gcc
Simplify the status bar sample by removing wxBitmapButton.
[wxWidgets.git] / samples / ipc / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.6 (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 WXDEBUGFLAG = d
75 endif
76 ifeq ($(UNICODE),1)
77 WXUNICODEFLAG = u
78 endif
79 ifeq ($(WXUNIV),1)
80 WXUNIVNAME = univ
81 endif
82 ifeq ($(SHARED),1)
83 WXDLLFLAG = dll
84 endif
85 ifeq ($(SHARED),0)
86 LIBTYPE_SUFFIX = lib
87 endif
88 ifeq ($(SHARED),1)
89 LIBTYPE_SUFFIX = dll
90 endif
91 ifeq ($(MONOLITHIC),0)
92 EXTRALIBS_FOR_BASE =
93 endif
94 ifeq ($(MONOLITHIC),1)
95 EXTRALIBS_FOR_BASE =
96 endif
97 ifeq ($(USE_GUI),1)
98 __ipcclient___depname = $(OBJS)\ipcclient.exe
99 endif
100 ifeq ($(USE_GUI),1)
101 __ipcserver___depname = $(OBJS)\ipcserver.exe
102 endif
103 ifeq ($(WXUNIV),1)
104 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
105 endif
106 ifeq ($(DEBUG_FLAG),0)
107 __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
108 endif
109 ifeq ($(USE_EXCEPTIONS),0)
110 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
111 endif
112 ifeq ($(USE_RTTI),0)
113 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
114 endif
115 ifeq ($(USE_THREADS),0)
116 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
117 endif
118 ifeq ($(UNICODE),0)
119 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
120 endif
121 ifeq ($(UNICODE),1)
122 __UNICODE_DEFINE_p_0 = --define _UNICODE
123 endif
124 ifeq ($(MSLU),1)
125 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
126 endif
127 ifeq ($(USE_GDIPLUS),1)
128 __GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=1
129 endif
130 ifeq ($(SHARED),1)
131 __DLLFLAG_p_0 = --define WXUSINGDLL
132 endif
133 ifeq ($(MONOLITHIC),0)
134 __WXLIB_CORE_p = \
135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
136 endif
137 ifeq ($(USE_GUI),1)
138 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
139 endif
140 ifeq ($(USE_GUI),1)
141 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
142 endif
143 ifeq ($(USE_GUI),1)
144 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
145 endif
146 ifeq ($(BUILD),debug)
147 __OPTIMIZEFLAG = -O0
148 endif
149 ifeq ($(BUILD),release)
150 __OPTIMIZEFLAG = -O2
151 endif
152 ifeq ($(USE_RTTI),0)
153 __RTTIFLAG = -fno-rtti
154 endif
155 ifeq ($(USE_RTTI),1)
156 __RTTIFLAG =
157 endif
158 ifeq ($(USE_EXCEPTIONS),0)
159 __EXCEPTIONSFLAG = -fno-exceptions
160 endif
161 ifeq ($(USE_EXCEPTIONS),1)
162 __EXCEPTIONSFLAG =
163 endif
164 ifeq ($(WXUNIV),1)
165 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
166 endif
167 ifeq ($(DEBUG_FLAG),0)
168 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
169 endif
170 ifeq ($(USE_EXCEPTIONS),0)
171 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
172 endif
173 ifeq ($(USE_RTTI),0)
174 __RTTI_DEFINE_p = -DwxNO_RTTI
175 endif
176 ifeq ($(USE_THREADS),0)
177 __THREAD_DEFINE_p = -DwxNO_THREADS
178 endif
179 ifeq ($(UNICODE),0)
180 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
181 endif
182 ifeq ($(UNICODE),1)
183 __UNICODE_DEFINE_p = -D_UNICODE
184 endif
185 ifeq ($(MSLU),1)
186 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
187 endif
188 ifeq ($(USE_GDIPLUS),1)
189 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
190 endif
191 ifeq ($(SHARED),1)
192 __DLLFLAG_p = -DWXUSINGDLL
193 endif
194 ifeq ($(MONOLITHIC),0)
195 __WXLIB_NET_p = \
196 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
197 endif
198 ifeq ($(MONOLITHIC),0)
199 __WXLIB_BASE_p = \
200 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
201 endif
202 ifeq ($(MONOLITHIC),1)
203 __WXLIB_MONO_p = \
204 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
205 endif
206 ifeq ($(MSLU),1)
207 __UNICOWS_LIB_p = -lunicows
208 endif
209 ifeq ($(USE_GDIPLUS),1)
210 __GDIPLUS_LIB_p = -lgdiplus
211 endif
212 ifeq ($(BUILD),debug)
213 ifeq ($(DEBUG_INFO),default)
214 __DEBUGINFO = -g
215 endif
216 endif
217 ifeq ($(BUILD),release)
218 ifeq ($(DEBUG_INFO),default)
219 __DEBUGINFO =
220 endif
221 endif
222 ifeq ($(DEBUG_INFO),0)
223 __DEBUGINFO =
224 endif
225 ifeq ($(DEBUG_INFO),1)
226 __DEBUGINFO = -g
227 endif
228 ifeq ($(USE_THREADS),0)
229 __THREADSFLAG =
230 endif
231 ifeq ($(USE_THREADS),1)
232 __THREADSFLAG = -mthreads
233 endif
234
235
236 all: $(OBJS)
237 $(OBJS):
238 -if not exist $(OBJS) mkdir $(OBJS)
239
240 ### Targets: ###
241
242 all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
243
244 clean:
245 -if exist $(OBJS)\*.o del $(OBJS)\*.o
246 -if exist $(OBJS)\*.d del $(OBJS)\*.d
247 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
248 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
249 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
250 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
251
252 ifeq ($(USE_GUI),1)
253 $(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample_rc.o
254 $(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 -lwininet
255 endif
256
257 ifeq ($(USE_GUI),1)
258 $(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample_rc.o
259 $(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 -lwininet
260 endif
261
262 $(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)
263 $(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 -lwininet
264
265 $(OBJS)\baseipcserver.exe: $(BASEIPCSERVER_OBJECTS)
266 $(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 -lwininet
267
268 $(OBJS)\ipcclient_sample_rc.o: ./../../samples/sample.rc
269 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
270
271 $(OBJS)\ipcclient_client.o: ./client.cpp
272 $(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
273
274 $(OBJS)\ipcserver_sample_rc.o: ./../../samples/sample.rc
275 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
276
277 $(OBJS)\ipcserver_server.o: ./server.cpp
278 $(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<
279
280 $(OBJS)\baseipcclient_baseclient.o: ./baseclient.cpp
281 $(CXX) -c -o $@ $(BASEIPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
282
283 $(OBJS)\baseipcserver_baseserver.o: ./baseserver.cpp
284 $(CXX) -c -o $@ $(BASEIPCSERVER_CXXFLAGS) $(CPPDEPS) $<
285
286 .PHONY: all clean
287
288
289 SHELL := $(COMSPEC)
290
291 # Dependencies tracking:
292 -include $(OBJS)/*.d