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