]>
Commit | Line | Data |
---|---|---|
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 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
4818141b | 15 | WX_RELEASE_NODOT = 26 |
b17c1746 DE |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
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) | |
d179e30b VS |
27 | CLIENT_OBJECTS = \ |
28 | $(OBJS)\client_sample_rc.o \ | |
29 | $(OBJS)\client_client.o | |
8c9f8f91 JS |
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) | |
d179e30b VS |
36 | SERVER_OBJECTS = \ |
37 | $(OBJS)\server_sample_rc.o \ | |
38 | $(OBJS)\server_server.o | |
3b20263d VS |
39 | |
40 | ### Conditionally set variables: ### | |
41 | ||
250700e4 RD |
42 | ifeq ($(GCC_VERSION),2.95) |
43 | GCCFLAGS = -fvtable-thunks | |
44 | endif | |
3b20263d VS |
45 | ifeq ($(USE_GUI),0) |
46 | PORTNAME = base | |
47 | endif | |
48 | ifeq ($(USE_GUI),1) | |
49 | PORTNAME = msw | |
50 | endif | |
51 | ifeq ($(BUILD),debug) | |
076f10e0 VS |
52 | ifeq ($(DEBUG_FLAG),default) |
53 | WXDEBUGFLAG = d | |
54 | endif | |
55 | endif | |
56 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
57 | WXDEBUGFLAG = d |
58 | endif | |
3b20263d VS |
59 | ifeq ($(UNICODE),1) |
60 | WXUNICODEFLAG = u | |
61 | endif | |
62 | ifeq ($(WXUNIV),1) | |
63 | WXUNIVNAME = univ | |
64 | endif | |
b17c1746 DE |
65 | ifeq ($(SHARED),1) |
66 | WXDLLFLAG = dll | |
076f10e0 | 67 | endif |
b14abf14 JS |
68 | ifeq ($(SHARED),0) |
69 | LIBTYPE_SUFFIX = lib | |
70 | endif | |
71 | ifeq ($(SHARED),1) | |
72 | LIBTYPE_SUFFIX = dll | |
73 | endif | |
dd65d8c8 RN |
74 | ifeq ($(MONOLITHIC),0) |
75 | EXTRALIBS_FOR_BASE = | |
76 | endif | |
77 | ifeq ($(MONOLITHIC),1) | |
78 | EXTRALIBS_FOR_BASE = | |
79 | endif | |
b17c1746 DE |
80 | ifeq ($(BUILD),debug) |
81 | __OPTIMIZEFLAG = -O0 | |
250700e4 RD |
82 | endif |
83 | ifeq ($(BUILD),release) | |
b17c1746 | 84 | __OPTIMIZEFLAG = -O2 |
076f10e0 | 85 | endif |
8c9f8f91 JS |
86 | ifeq ($(USE_RTTI),0) |
87 | __RTTIFLAG = -fno-rtti | |
076f10e0 | 88 | endif |
8c9f8f91 JS |
89 | ifeq ($(USE_RTTI),1) |
90 | __RTTIFLAG = | |
076f10e0 | 91 | endif |
b17c1746 | 92 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 93 | __EXCEPTIONSFLAG = -fno-exceptions |
b17c1746 DE |
94 | endif |
95 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 96 | __EXCEPTIONSFLAG = |
b17c1746 DE |
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__ | |
250700e4 RD |
103 | endif |
104 | ifeq ($(BUILD),debug) | |
076f10e0 VS |
105 | ifeq ($(DEBUG_FLAG),default) |
106 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
107 | endif | |
108 | endif | |
109 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
110 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
111 | endif | |
112 | ifeq ($(BUILD),debug) | |
076f10e0 | 113 | ifeq ($(DEBUG_FLAG),default) |
d179e30b | 114 | __DEBUG_DEFINE_p_0 = --define __WXDEBUG__ |
076f10e0 VS |
115 | endif |
116 | endif | |
117 | ifeq ($(DEBUG_FLAG),1) | |
d179e30b | 118 | __DEBUG_DEFINE_p_0 = --define __WXDEBUG__ |
3b20263d | 119 | endif |
8c9f8f91 JS |
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 | |
b17c1746 DE |
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 | |
3b20263d VS |
144 | ifeq ($(SHARED),1) |
145 | __DLLFLAG_p = -DWXUSINGDLL | |
146 | endif | |
147 | ifeq ($(SHARED),1) | |
d179e30b | 148 | __DLLFLAG_p_0 = --define WXUSINGDLL |
3b20263d | 149 | endif |
b17c1746 DE |
150 | ifeq ($(MONOLITHIC),0) |
151 | __WXLIB_CORE_p = \ | |
c33fae85 | 152 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 153 | endif |
b17c1746 | 154 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
155 | __WXLIB_NET_p = \ |
156 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
b71531ad | 157 | endif |
b17c1746 | 158 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
159 | __WXLIB_BASE_p = \ |
160 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 161 | endif |
b17c1746 DE |
162 | ifeq ($(MONOLITHIC),1) |
163 | __WXLIB_MONO_p = \ | |
c33fae85 | 164 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 165 | endif |
076f10e0 | 166 | ifeq ($(USE_GUI),1) |
9c2d002b | 167 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
076f10e0 VS |
168 | endif |
169 | ifeq ($(USE_GUI),1) | |
9c2d002b | 170 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
076f10e0 VS |
171 | endif |
172 | ifeq ($(USE_GUI),1) | |
9c2d002b | 173 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
3b20263d | 174 | endif |
4e209a20 VS |
175 | ifeq ($(MSLU),1) |
176 | __UNICOWS_LIB_p = -lunicows | |
177 | endif | |
b17c1746 DE |
178 | ifeq ($(BUILD),debug) |
179 | ifeq ($(DEBUG_INFO),default) | |
180 | __DEBUGINFO = -g | |
3b20263d | 181 | endif |
3b20263d | 182 | endif |
b17c1746 DE |
183 | ifeq ($(BUILD),release) |
184 | ifeq ($(DEBUG_INFO),default) | |
185 | __DEBUGINFO = | |
3b20263d | 186 | endif |
d179e30b | 187 | endif |
b17c1746 DE |
188 | ifeq ($(DEBUG_INFO),0) |
189 | __DEBUGINFO = | |
3b20263d | 190 | endif |
b17c1746 DE |
191 | ifeq ($(DEBUG_INFO),1) |
192 | __DEBUGINFO = -g | |
3b20263d | 193 | endif |
8c9f8f91 JS |
194 | ifeq ($(USE_THREADS),0) |
195 | __THREADSFLAG = | |
196 | endif | |
197 | ifeq ($(USE_THREADS),1) | |
198 | __THREADSFLAG = -mthreads | |
199 | endif | |
3b20263d VS |
200 | |
201 | ||
202 | all: $(OBJS) | |
203 | $(OBJS): | |
204 | -if not exist $(OBJS) mkdir $(OBJS) | |
205 | ||
206 | ### Targets: ### | |
207 | ||
d179e30b VS |
208 | all: $(OBJS)\client.exe $(OBJS)\server.exe |
209 | ||
3b20263d VS |
210 | clean: |
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 |