]> git.saurik.com Git - wxWidgets.git/blame - samples/ipc/makefile.gcc
[ 1936700 ] wxCAL_SHOW_WEEK_NUMBERS, slightly modified
[wxWidgets.git] / samples / ipc / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
6e0fbb3d 3# Bakefile 0.2.3 (http://www.bakefile.org)
3b20263d
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
ae4ccf12 16WX_RELEASE_NODOT = 29
444833b3 17COMPILER_PREFIX = gcc
b17c1746 18OBJS = \
444833b3
CE
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
7dc467c5
VZ
23IPCCLIENT_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)
30IPCCLIENT_OBJECTS = \
31 $(OBJS)\ipcclient_sample_rc.o \
32 $(OBJS)\ipcclient_client.o
33IPCSERVER_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)
40IPCSERVER_OBJECTS = \
41 $(OBJS)\ipcserver_sample_rc.o \
42 $(OBJS)\ipcserver_server.o
ebe887ed
VZ
43BASEIPCCLIENT_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)
50BASEIPCCLIENT_OBJECTS = \
51 $(OBJS)\baseipcclient_baseclient.o
52BASEIPCSERVER_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)
59BASEIPCSERVER_OBJECTS = \
60 $(OBJS)\baseipcserver_baseserver.o
3b20263d
VS
61
62### Conditionally set variables: ###
63
250700e4
RD
64ifeq ($(GCC_VERSION),2.95)
65GCCFLAGS = -fvtable-thunks
66endif
3b20263d
VS
67ifeq ($(USE_GUI),0)
68PORTNAME = base
69endif
70ifeq ($(USE_GUI),1)
71PORTNAME = msw
72endif
73ifeq ($(BUILD),debug)
076f10e0
VS
74ifeq ($(DEBUG_FLAG),default)
75WXDEBUGFLAG = d
76endif
77endif
78ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
79WXDEBUGFLAG = d
80endif
3b20263d
VS
81ifeq ($(UNICODE),1)
82WXUNICODEFLAG = u
83endif
84ifeq ($(WXUNIV),1)
85WXUNIVNAME = univ
86endif
b17c1746
DE
87ifeq ($(SHARED),1)
88WXDLLFLAG = dll
076f10e0 89endif
b14abf14
JS
90ifeq ($(SHARED),0)
91LIBTYPE_SUFFIX = lib
92endif
93ifeq ($(SHARED),1)
94LIBTYPE_SUFFIX = dll
95endif
dd65d8c8
RN
96ifeq ($(MONOLITHIC),0)
97EXTRALIBS_FOR_BASE =
98endif
99ifeq ($(MONOLITHIC),1)
100EXTRALIBS_FOR_BASE =
101endif
ebe887ed
VZ
102ifeq ($(USE_GUI),1)
103__ipcclient___depname = $(OBJS)\ipcclient.exe
104endif
105ifeq ($(USE_GUI),1)
106__ipcserver___depname = $(OBJS)\ipcserver.exe
107endif
108ifeq ($(WXUNIV),1)
109__WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
110endif
111ifeq ($(BUILD),debug)
112ifeq ($(DEBUG_FLAG),default)
113__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
114endif
115endif
116ifeq ($(DEBUG_FLAG),1)
117__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
118endif
119ifeq ($(USE_EXCEPTIONS),0)
120__EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
121endif
122ifeq ($(USE_RTTI),0)
123__RTTI_DEFINE_p_0 = --define wxNO_RTTI
124endif
125ifeq ($(USE_THREADS),0)
126__THREAD_DEFINE_p_0 = --define wxNO_THREADS
127endif
128ifeq ($(UNICODE),0)
129__UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
130endif
131ifeq ($(UNICODE),1)
132__UNICODE_DEFINE_p_0 = --define _UNICODE
133endif
134ifeq ($(MSLU),1)
135__MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
136endif
137ifeq ($(USE_GDIPLUS),1)
138__GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=1
139endif
140ifeq ($(SHARED),1)
141__DLLFLAG_p_0 = --define WXUSINGDLL
142endif
143ifeq ($(MONOLITHIC),0)
144__WXLIB_CORE_p = \
145 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
146endif
147ifeq ($(USE_GUI),1)
148__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
149endif
150ifeq ($(USE_GUI),1)
151__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
152endif
153ifeq ($(USE_GUI),1)
154__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
155endif
b17c1746
DE
156ifeq ($(BUILD),debug)
157__OPTIMIZEFLAG = -O0
250700e4
RD
158endif
159ifeq ($(BUILD),release)
b17c1746 160__OPTIMIZEFLAG = -O2
076f10e0 161endif
8c9f8f91
JS
162ifeq ($(USE_RTTI),0)
163__RTTIFLAG = -fno-rtti
076f10e0 164endif
8c9f8f91
JS
165ifeq ($(USE_RTTI),1)
166__RTTIFLAG =
076f10e0 167endif
b17c1746 168ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 169__EXCEPTIONSFLAG = -fno-exceptions
b17c1746
DE
170endif
171ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 172__EXCEPTIONSFLAG =
b17c1746
DE
173endif
174ifeq ($(WXUNIV),1)
175__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
176endif
250700e4 177ifeq ($(BUILD),debug)
076f10e0
VS
178ifeq ($(DEBUG_FLAG),default)
179__DEBUG_DEFINE_p = -D__WXDEBUG__
180endif
181endif
182ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
183__DEBUG_DEFINE_p = -D__WXDEBUG__
184endif
8c9f8f91
JS
185ifeq ($(USE_EXCEPTIONS),0)
186__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
187endif
8c9f8f91
JS
188ifeq ($(USE_RTTI),0)
189__RTTI_DEFINE_p = -DwxNO_RTTI
190endif
8c9f8f91
JS
191ifeq ($(USE_THREADS),0)
192__THREAD_DEFINE_p = -DwxNO_THREADS
193endif
7379e476
VZ
194ifeq ($(UNICODE),0)
195__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
196endif
b17c1746
DE
197ifeq ($(UNICODE),1)
198__UNICODE_DEFINE_p = -D_UNICODE
199endif
2113bc77
MW
200ifeq ($(MSLU),1)
201__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
202endif
3abcf424
RD
203ifeq ($(USE_GDIPLUS),1)
204__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
205endif
3b20263d
VS
206ifeq ($(SHARED),1)
207__DLLFLAG_p = -DWXUSINGDLL
208endif
b17c1746 209ifeq ($(MONOLITHIC),0)
c33fae85
RN
210__WXLIB_NET_p = \
211 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
b71531ad 212endif
b17c1746 213ifeq ($(MONOLITHIC),0)
c33fae85
RN
214__WXLIB_BASE_p = \
215 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 216endif
b17c1746
DE
217ifeq ($(MONOLITHIC),1)
218__WXLIB_MONO_p = \
c33fae85 219 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 220endif
4e209a20
VS
221ifeq ($(MSLU),1)
222__UNICOWS_LIB_p = -lunicows
223endif
3abcf424
RD
224ifeq ($(USE_GDIPLUS),1)
225__GDIPLUS_LIB_p = -lgdiplus
226endif
b17c1746
DE
227ifeq ($(BUILD),debug)
228ifeq ($(DEBUG_INFO),default)
229__DEBUGINFO = -g
3b20263d 230endif
3b20263d 231endif
b17c1746
DE
232ifeq ($(BUILD),release)
233ifeq ($(DEBUG_INFO),default)
234__DEBUGINFO =
3b20263d 235endif
d179e30b 236endif
b17c1746
DE
237ifeq ($(DEBUG_INFO),0)
238__DEBUGINFO =
3b20263d 239endif
b17c1746
DE
240ifeq ($(DEBUG_INFO),1)
241__DEBUGINFO = -g
3b20263d 242endif
8c9f8f91
JS
243ifeq ($(USE_THREADS),0)
244__THREADSFLAG =
245endif
246ifeq ($(USE_THREADS),1)
247__THREADSFLAG = -mthreads
248endif
3b20263d
VS
249
250
251all: $(OBJS)
252$(OBJS):
253 -if not exist $(OBJS) mkdir $(OBJS)
254
255### Targets: ###
256
ebe887ed 257all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
d179e30b 258
3b20263d
VS
259clean:
260 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 261 -if exist $(OBJS)\*.d del $(OBJS)\*.d
7dc467c5
VZ
262 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
263 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
ebe887ed
VZ
264 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
265 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
d179e30b 266
ebe887ed 267ifeq ($(USE_GUI),1)
7dc467c5 268$(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample_rc.o
7379e476 269 $(CXX) -o $@ $(IPCCLIENT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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
ebe887ed 270endif
3b20263d 271
ebe887ed 272ifeq ($(USE_GUI),1)
7dc467c5 273$(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample_rc.o
7379e476 274 $(CXX) -o $@ $(IPCSERVER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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
ebe887ed
VZ
275endif
276
277$(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)
278 $(CXX) -o $@ $(BASEIPCCLIENT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__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) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__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
3b20263d 282
7dc467c5 283$(OBJS)\ipcclient_sample_rc.o: ./../../samples/sample.rc
444833b3 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
b17c1746 285
7dc467c5
VZ
286$(OBJS)\ipcclient_client.o: ./client.cpp
287 $(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
b17c1746 288
7dc467c5 289$(OBJS)\ipcserver_sample_rc.o: ./../../samples/sample.rc
444833b3 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
b17c1746 291
7dc467c5
VZ
292$(OBJS)\ipcserver_server.o: ./server.cpp
293 $(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<
b17c1746 294
ebe887ed
VZ
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
250700e4 301.PHONY: all clean
b14abf14 302
8c9f8f91 303
6e0fbb3d
VS
304SHELL := $(COMSPEC)
305
0d90d6ea
JS
306# Dependencies tracking:
307-include $(OBJS)/*.d