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