]> git.saurik.com Git - wxWidgets.git/blob - samples/ipc/makefile.gcc
Fix previous change in case somebody is still using
[wxWidgets.git] / samples / ipc / makefile.gcc
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
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 26
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 CLIENT_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)
27 CLIENT_OBJECTS = \
28 $(OBJS)\client_sample_rc.o \
29 $(OBJS)\client_client.o
30 SERVER_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)
36 SERVER_OBJECTS = \
37 $(OBJS)\server_sample_rc.o \
38 $(OBJS)\server_server.o
39
40 ### Conditionally set variables: ###
41
42 ifeq ($(GCC_VERSION),2.95)
43 GCCFLAGS = -fvtable-thunks
44 endif
45 ifeq ($(USE_GUI),0)
46 PORTNAME = base
47 endif
48 ifeq ($(USE_GUI),1)
49 PORTNAME = msw
50 endif
51 ifeq ($(BUILD),debug)
52 ifeq ($(DEBUG_FLAG),default)
53 WXDEBUGFLAG = d
54 endif
55 endif
56 ifeq ($(DEBUG_FLAG),1)
57 WXDEBUGFLAG = d
58 endif
59 ifeq ($(UNICODE),1)
60 WXUNICODEFLAG = u
61 endif
62 ifeq ($(WXUNIV),1)
63 WXUNIVNAME = univ
64 endif
65 ifeq ($(SHARED),1)
66 WXDLLFLAG = dll
67 endif
68 ifeq ($(SHARED),0)
69 LIBTYPE_SUFFIX = lib
70 endif
71 ifeq ($(SHARED),1)
72 LIBTYPE_SUFFIX = dll
73 endif
74 ifeq ($(MONOLITHIC),0)
75 EXTRALIBS_FOR_BASE =
76 endif
77 ifeq ($(MONOLITHIC),1)
78 EXTRALIBS_FOR_BASE =
79 endif
80 ifeq ($(BUILD),debug)
81 __OPTIMIZEFLAG = -O0
82 endif
83 ifeq ($(BUILD),release)
84 __OPTIMIZEFLAG = -O2
85 endif
86 ifeq ($(USE_RTTI),0)
87 __RTTIFLAG = -fno-rtti
88 endif
89 ifeq ($(USE_RTTI),1)
90 __RTTIFLAG =
91 endif
92 ifeq ($(USE_EXCEPTIONS),0)
93 __EXCEPTIONSFLAG = -fno-exceptions
94 endif
95 ifeq ($(USE_EXCEPTIONS),1)
96 __EXCEPTIONSFLAG =
97 endif
98 ifeq ($(WXUNIV),1)
99 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100 endif
101 ifeq ($(WXUNIV),1)
102 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
103 endif
104 ifeq ($(BUILD),debug)
105 ifeq ($(DEBUG_FLAG),default)
106 __DEBUG_DEFINE_p = -D__WXDEBUG__
107 endif
108 endif
109 ifeq ($(DEBUG_FLAG),1)
110 __DEBUG_DEFINE_p = -D__WXDEBUG__
111 endif
112 ifeq ($(BUILD),debug)
113 ifeq ($(DEBUG_FLAG),default)
114 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
115 endif
116 endif
117 ifeq ($(DEBUG_FLAG),1)
118 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
119 endif
120 ifeq ($(USE_EXCEPTIONS),0)
121 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
122 endif
123 ifeq ($(USE_EXCEPTIONS),0)
124 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
125 endif
126 ifeq ($(USE_RTTI),0)
127 __RTTI_DEFINE_p = -DwxNO_RTTI
128 endif
129 ifeq ($(USE_RTTI),0)
130 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
131 endif
132 ifeq ($(USE_THREADS),0)
133 __THREAD_DEFINE_p = -DwxNO_THREADS
134 endif
135 ifeq ($(USE_THREADS),0)
136 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
137 endif
138 ifeq ($(UNICODE),1)
139 __UNICODE_DEFINE_p = -D_UNICODE
140 endif
141 ifeq ($(UNICODE),1)
142 __UNICODE_DEFINE_p_0 = --define _UNICODE
143 endif
144 ifeq ($(SHARED),1)
145 __DLLFLAG_p = -DWXUSINGDLL
146 endif
147 ifeq ($(SHARED),1)
148 __DLLFLAG_p_0 = --define WXUSINGDLL
149 endif
150 ifeq ($(MONOLITHIC),0)
151 __WXLIB_CORE_p = \
152 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
153 endif
154 ifeq ($(MONOLITHIC),0)
155 __WXLIB_NET_p = \
156 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
157 endif
158 ifeq ($(MONOLITHIC),0)
159 __WXLIB_BASE_p = \
160 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
161 endif
162 ifeq ($(MONOLITHIC),1)
163 __WXLIB_MONO_p = \
164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
165 endif
166 ifeq ($(USE_GUI),1)
167 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
168 endif
169 ifeq ($(USE_GUI),1)
170 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
171 endif
172 ifeq ($(USE_GUI),1)
173 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
174 endif
175 ifeq ($(MSLU),1)
176 __UNICOWS_LIB_p = -lunicows
177 endif
178 ifeq ($(BUILD),debug)
179 ifeq ($(DEBUG_INFO),default)
180 __DEBUGINFO = -g
181 endif
182 endif
183 ifeq ($(BUILD),release)
184 ifeq ($(DEBUG_INFO),default)
185 __DEBUGINFO =
186 endif
187 endif
188 ifeq ($(DEBUG_INFO),0)
189 __DEBUGINFO =
190 endif
191 ifeq ($(DEBUG_INFO),1)
192 __DEBUGINFO = -g
193 endif
194 ifeq ($(USE_THREADS),0)
195 __THREADSFLAG =
196 endif
197 ifeq ($(USE_THREADS),1)
198 __THREADSFLAG = -mthreads
199 endif
200
201
202 all: $(OBJS)
203 $(OBJS):
204 -if not exist $(OBJS) mkdir $(OBJS)
205
206 ### Targets: ###
207
208 all: $(OBJS)\client.exe $(OBJS)\server.exe
209
210 clean:
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