]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/ipc/makefile.gcc
aui documentation updates
[wxWidgets.git] / samples / ipc / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD
16WX_RELEASE_NODOT = 28
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
27 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
28 $(CXXFLAGS)
29CLIENT_OBJECTS = \
30 $(OBJS)\client_sample_rc.o \
31 $(OBJS)\client_client.o
32SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
33 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
35 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
36 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
37 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
38 $(CXXFLAGS)
39SERVER_OBJECTS = \
40 $(OBJS)\server_sample_rc.o \
41 $(OBJS)\server_server.o
42
43### Conditionally set variables: ###
44
45ifeq ($(GCC_VERSION),2.95)
46GCCFLAGS = -fvtable-thunks
47endif
48ifeq ($(USE_GUI),0)
49PORTNAME = base
50endif
51ifeq ($(USE_GUI),1)
52PORTNAME = msw
53endif
54ifeq ($(BUILD),debug)
55ifeq ($(DEBUG_FLAG),default)
56WXDEBUGFLAG = d
57endif
58endif
59ifeq ($(DEBUG_FLAG),1)
60WXDEBUGFLAG = d
61endif
62ifeq ($(UNICODE),1)
63WXUNICODEFLAG = u
64endif
65ifeq ($(WXUNIV),1)
66WXUNIVNAME = univ
67endif
68ifeq ($(SHARED),1)
69WXDLLFLAG = dll
70endif
71ifeq ($(SHARED),0)
72LIBTYPE_SUFFIX = lib
73endif
74ifeq ($(SHARED),1)
75LIBTYPE_SUFFIX = dll
76endif
77ifeq ($(MONOLITHIC),0)
78EXTRALIBS_FOR_BASE =
79endif
80ifeq ($(MONOLITHIC),1)
81EXTRALIBS_FOR_BASE =
82endif
83ifeq ($(BUILD),debug)
84__OPTIMIZEFLAG = -O0
85endif
86ifeq ($(BUILD),release)
87__OPTIMIZEFLAG = -O2
88endif
89ifeq ($(USE_RTTI),0)
90__RTTIFLAG = -fno-rtti
91endif
92ifeq ($(USE_RTTI),1)
93__RTTIFLAG =
94endif
95ifeq ($(USE_EXCEPTIONS),0)
96__EXCEPTIONSFLAG = -fno-exceptions
97endif
98ifeq ($(USE_EXCEPTIONS),1)
99__EXCEPTIONSFLAG =
100endif
101ifeq ($(WXUNIV),1)
102__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103endif
104ifeq ($(WXUNIV),1)
105__WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
106endif
107ifeq ($(BUILD),debug)
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p = -D__WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
113__DEBUG_DEFINE_p = -D__WXDEBUG__
114endif
115ifeq ($(BUILD),debug)
116ifeq ($(DEBUG_FLAG),default)
117__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
118endif
119endif
120ifeq ($(DEBUG_FLAG),1)
121__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
122endif
123ifeq ($(USE_EXCEPTIONS),0)
124__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
125endif
126ifeq ($(USE_EXCEPTIONS),0)
127__EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
128endif
129ifeq ($(USE_RTTI),0)
130__RTTI_DEFINE_p = -DwxNO_RTTI
131endif
132ifeq ($(USE_RTTI),0)
133__RTTI_DEFINE_p_0 = --define wxNO_RTTI
134endif
135ifeq ($(USE_THREADS),0)
136__THREAD_DEFINE_p = -DwxNO_THREADS
137endif
138ifeq ($(USE_THREADS),0)
139__THREAD_DEFINE_p_0 = --define wxNO_THREADS
140endif
141ifeq ($(UNICODE),1)
142__UNICODE_DEFINE_p = -D_UNICODE
143endif
144ifeq ($(UNICODE),1)
145__UNICODE_DEFINE_p_0 = --define _UNICODE
146endif
147ifeq ($(MSLU),1)
148__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
149endif
150ifeq ($(MSLU),1)
151__MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
152endif
153ifeq ($(USE_GDIPLUS),1)
154__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
155endif
156ifeq ($(USE_GDIPLUS),1)
157__GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=1
158endif
159ifeq ($(SHARED),1)
160__DLLFLAG_p = -DWXUSINGDLL
161endif
162ifeq ($(SHARED),1)
163__DLLFLAG_p_0 = --define WXUSINGDLL
164endif
165ifeq ($(MONOLITHIC),0)
166__WXLIB_CORE_p = \
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
168endif
169ifeq ($(MONOLITHIC),0)
170__WXLIB_NET_p = \
171 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
172endif
173ifeq ($(MONOLITHIC),0)
174__WXLIB_BASE_p = \
175 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
176endif
177ifeq ($(MONOLITHIC),1)
178__WXLIB_MONO_p = \
179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
180endif
181ifeq ($(USE_GUI),1)
182__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
183endif
184ifeq ($(USE_GUI),1)
185__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
186endif
187ifeq ($(USE_GUI),1)
188__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
189endif
190ifeq ($(MSLU),1)
191__UNICOWS_LIB_p = -lunicows
192endif
193ifeq ($(USE_GDIPLUS),1)
194__GDIPLUS_LIB_p = -lgdiplus
195endif
196ifeq ($(BUILD),debug)
197ifeq ($(DEBUG_INFO),default)
198__DEBUGINFO = -g
199endif
200endif
201ifeq ($(BUILD),release)
202ifeq ($(DEBUG_INFO),default)
203__DEBUGINFO =
204endif
205endif
206ifeq ($(DEBUG_INFO),0)
207__DEBUGINFO =
208endif
209ifeq ($(DEBUG_INFO),1)
210__DEBUGINFO = -g
211endif
212ifeq ($(USE_THREADS),0)
213__THREADSFLAG =
214endif
215ifeq ($(USE_THREADS),1)
216__THREADSFLAG = -mthreads
217endif
218
219
220all: $(OBJS)
221$(OBJS):
222 -if not exist $(OBJS) mkdir $(OBJS)
223
224### Targets: ###
225
226all: $(OBJS)\client.exe $(OBJS)\server.exe
227
228clean:
229 -if exist $(OBJS)\*.o del $(OBJS)\*.o
230 -if exist $(OBJS)\*.d del $(OBJS)\*.d
231 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
232 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
233
234$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o
235 $(CXX) -o $@ $(CLIENT_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 -lodbc32
236
237$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o
238 $(CXX) -o $@ $(SERVER_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 -lodbc32
239
240$(OBJS)\client_sample_rc.o: ./../../samples/sample.rc
241 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
242
243$(OBJS)\client_client.o: ./client.cpp
244 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
245
246$(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
247 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
248
249$(OBJS)\server_server.o: ./server.cpp
250 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
251
252.PHONY: all clean
253
254
255# Dependencies tracking:
256-include $(OBJS)/*.d