]> git.saurik.com Git - wxWidgets.git/blame - samples/ipc/makefile.gcc
Only generate a makefile for the debugrpt sample when wxUSE_ON_FATAL_EXCEPTION=1
[wxWidgets.git] / samples / ipc / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (http://bakefile.sourceforge.net)
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
4818141b 15WX_RELEASE_NODOT = 26
b17c1746
DE
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 18LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
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)
d179e30b
VS
27CLIENT_OBJECTS = \
28 $(OBJS)\client_sample_rc.o \
29 $(OBJS)\client_client.o
8c9f8f91
JS
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)
d179e30b
VS
36SERVER_OBJECTS = \
37 $(OBJS)\server_sample_rc.o \
38 $(OBJS)\server_server.o
3b20263d
VS
39
40### Conditionally set variables: ###
41
250700e4
RD
42ifeq ($(GCC_VERSION),2.95)
43GCCFLAGS = -fvtable-thunks
44endif
3b20263d
VS
45ifeq ($(USE_GUI),0)
46PORTNAME = base
47endif
48ifeq ($(USE_GUI),1)
49PORTNAME = msw
50endif
51ifeq ($(BUILD),debug)
076f10e0
VS
52ifeq ($(DEBUG_FLAG),default)
53WXDEBUGFLAG = d
54endif
55endif
56ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
57WXDEBUGFLAG = d
58endif
3b20263d
VS
59ifeq ($(UNICODE),1)
60WXUNICODEFLAG = u
61endif
62ifeq ($(WXUNIV),1)
63WXUNIVNAME = univ
64endif
b17c1746
DE
65ifeq ($(SHARED),1)
66WXDLLFLAG = dll
076f10e0 67endif
b14abf14
JS
68ifeq ($(SHARED),0)
69LIBTYPE_SUFFIX = lib
70endif
71ifeq ($(SHARED),1)
72LIBTYPE_SUFFIX = dll
73endif
dd65d8c8
RN
74ifeq ($(MONOLITHIC),0)
75EXTRALIBS_FOR_BASE =
76endif
77ifeq ($(MONOLITHIC),1)
78EXTRALIBS_FOR_BASE =
79endif
b17c1746
DE
80ifeq ($(BUILD),debug)
81__OPTIMIZEFLAG = -O0
250700e4
RD
82endif
83ifeq ($(BUILD),release)
b17c1746 84__OPTIMIZEFLAG = -O2
076f10e0 85endif
8c9f8f91
JS
86ifeq ($(USE_RTTI),0)
87__RTTIFLAG = -fno-rtti
076f10e0 88endif
8c9f8f91
JS
89ifeq ($(USE_RTTI),1)
90__RTTIFLAG =
076f10e0 91endif
b17c1746 92ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 93__EXCEPTIONSFLAG = -fno-exceptions
b17c1746
DE
94endif
95ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 96__EXCEPTIONSFLAG =
b17c1746
DE
97endif
98ifeq ($(WXUNIV),1)
99__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100endif
101ifeq ($(WXUNIV),1)
102__WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
250700e4
RD
103endif
104ifeq ($(BUILD),debug)
076f10e0
VS
105ifeq ($(DEBUG_FLAG),default)
106__DEBUG_DEFINE_p = -D__WXDEBUG__
107endif
108endif
109ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
110__DEBUG_DEFINE_p = -D__WXDEBUG__
111endif
112ifeq ($(BUILD),debug)
076f10e0 113ifeq ($(DEBUG_FLAG),default)
d179e30b 114__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
076f10e0
VS
115endif
116endif
117ifeq ($(DEBUG_FLAG),1)
d179e30b 118__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
3b20263d 119endif
8c9f8f91
JS
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
b17c1746
DE
138ifeq ($(UNICODE),1)
139__UNICODE_DEFINE_p = -D_UNICODE
140endif
141ifeq ($(UNICODE),1)
142__UNICODE_DEFINE_p_0 = --define _UNICODE
143endif
3b20263d
VS
144ifeq ($(SHARED),1)
145__DLLFLAG_p = -DWXUSINGDLL
146endif
147ifeq ($(SHARED),1)
d179e30b 148__DLLFLAG_p_0 = --define WXUSINGDLL
3b20263d 149endif
b17c1746
DE
150ifeq ($(MONOLITHIC),0)
151__WXLIB_CORE_p = \
c33fae85 152 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 153endif
b17c1746 154ifeq ($(MONOLITHIC),0)
c33fae85
RN
155__WXLIB_NET_p = \
156 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
b71531ad 157endif
b17c1746 158ifeq ($(MONOLITHIC),0)
c33fae85
RN
159__WXLIB_BASE_p = \
160 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 161endif
b17c1746
DE
162ifeq ($(MONOLITHIC),1)
163__WXLIB_MONO_p = \
c33fae85 164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 165endif
076f10e0 166ifeq ($(USE_GUI),1)
9c2d002b 167__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
076f10e0
VS
168endif
169ifeq ($(USE_GUI),1)
9c2d002b 170__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
076f10e0
VS
171endif
172ifeq ($(USE_GUI),1)
9c2d002b 173__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
3b20263d 174endif
4e209a20
VS
175ifeq ($(MSLU),1)
176__UNICOWS_LIB_p = -lunicows
177endif
b17c1746
DE
178ifeq ($(BUILD),debug)
179ifeq ($(DEBUG_INFO),default)
180__DEBUGINFO = -g
3b20263d 181endif
3b20263d 182endif
b17c1746
DE
183ifeq ($(BUILD),release)
184ifeq ($(DEBUG_INFO),default)
185__DEBUGINFO =
3b20263d 186endif
d179e30b 187endif
b17c1746
DE
188ifeq ($(DEBUG_INFO),0)
189__DEBUGINFO =
3b20263d 190endif
b17c1746
DE
191ifeq ($(DEBUG_INFO),1)
192__DEBUGINFO = -g
3b20263d 193endif
8c9f8f91
JS
194ifeq ($(USE_THREADS),0)
195__THREADSFLAG =
196endif
197ifeq ($(USE_THREADS),1)
198__THREADSFLAG = -mthreads
199endif
3b20263d
VS
200
201
202all: $(OBJS)
203$(OBJS):
204 -if not exist $(OBJS) mkdir $(OBJS)
205
206### Targets: ###
207
d179e30b
VS
208all: $(OBJS)\client.exe $(OBJS)\server.exe
209
3b20263d
VS
210clean:
211 -if exist $(OBJS)\*.o del $(OBJS)\*.o
d179e30b
VS
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
8c9f8f91 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
3b20263d 217
d179e30b 218$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o
8c9f8f91 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
3b20263d 220
b17c1746 221$(OBJS)\client_sample_rc.o: ./../../samples/sample.rc
8c9f8f91 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
b17c1746
DE
223
224$(OBJS)\client_client.o: ./client.cpp
225 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $<
226
227$(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
8c9f8f91 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
b17c1746
DE
229
230$(OBJS)\server_server.o: ./server.cpp
231 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $<
232
250700e4 233.PHONY: all clean
b14abf14 234
8c9f8f91 235