]>
Commit | Line | Data |
---|---|---|
15e8daec VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
8c9f8f91 | 3 | # Bakefile 0.1.8 (http://bakefile.sourceforge.net) |
15e8daec VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../../build/msw/config.gcc |
15e8daec VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
8c9f8f91 | 16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5 |
b17c1746 DE |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = ..\..\src\net\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
22 | NETUTILSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ |
23 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
24 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
25 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
26 | -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) -W -Wall \ | |
27 | -I..\..\src\net\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_NETUTILS \ | |
28 | $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \ | |
29 | $(CXXFLAGS) | |
15e8daec VS |
30 | NETUTILSDLL_OBJECTS = \ |
31 | $(OBJS)\netutilsdll_dummy.o \ | |
8c9f8f91 | 32 | $(OBJS)\netutilsdll_version_rc.o \ |
15e8daec VS |
33 | $(OBJS)\netutilsdll_email.o \ |
34 | $(OBJS)\netutilsdll_smapi.o \ | |
35 | $(OBJS)\netutilsdll_web.o | |
8c9f8f91 JS |
36 | NETUTILSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ |
37 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
38 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
39 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
40 | -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) -W -Wall \ | |
41 | -I..\..\src\net\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ | |
42 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
15e8daec VS |
43 | NETUTILSLIB_OBJECTS = \ |
44 | $(OBJS)\netutilslib_dummy.o \ | |
45 | $(OBJS)\netutilslib_email.o \ | |
46 | $(OBJS)\netutilslib_smapi.o \ | |
47 | $(OBJS)\netutilslib_web.o | |
15e8daec VS |
48 | |
49 | ### Conditionally set variables: ### | |
50 | ||
51 | ifeq ($(GCC_VERSION),2.95) | |
52 | GCCFLAGS = -fvtable-thunks | |
53 | endif | |
54 | ifeq ($(USE_GUI),0) | |
55 | PORTNAME = base | |
56 | endif | |
57 | ifeq ($(USE_GUI),1) | |
58 | PORTNAME = msw | |
59 | endif | |
60 | ifeq ($(OFFICIAL_BUILD),0) | |
61 | VENDORTAG = _$(VENDOR) | |
62 | endif | |
63 | ifeq ($(OFFICIAL_BUILD),1) | |
64 | VENDORTAG = | |
65 | endif | |
66 | ifeq ($(BUILD),debug) | |
67 | ifeq ($(DEBUG_FLAG),default) | |
68 | WXDEBUGFLAG = d | |
69 | endif | |
70 | endif | |
71 | ifeq ($(DEBUG_FLAG),1) | |
72 | WXDEBUGFLAG = d | |
73 | endif | |
15e8daec VS |
74 | ifeq ($(UNICODE),1) |
75 | WXUNICODEFLAG = u | |
76 | endif | |
77 | ifeq ($(WXUNIV),1) | |
78 | WXUNIVNAME = univ | |
79 | endif | |
b17c1746 DE |
80 | ifeq ($(SHARED),1) |
81 | WXDLLFLAG = dll | |
82 | endif | |
b14abf14 JS |
83 | ifeq ($(SHARED),0) |
84 | LIBTYPE_SUFFIX = lib | |
85 | endif | |
86 | ifeq ($(SHARED),1) | |
87 | LIBTYPE_SUFFIX = dll | |
88 | endif | |
dd65d8c8 RN |
89 | ifeq ($(MONOLITHIC),0) |
90 | EXTRALIBS_FOR_BASE = | |
91 | endif | |
92 | ifeq ($(MONOLITHIC),1) | |
93 | EXTRALIBS_FOR_BASE = | |
94 | endif | |
b17c1746 DE |
95 | ifeq ($(SHARED),1) |
96 | __netutilsdll___depname = \ | |
c33fae85 | 97 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll |
b17c1746 | 98 | endif |
8c9f8f91 JS |
99 | ifeq ($(WXUNIV),1) |
100 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
101 | endif | |
102 | ifeq ($(BUILD),debug) | |
103 | ifeq ($(DEBUG_FLAG),default) | |
104 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
105 | endif | |
106 | endif | |
107 | ifeq ($(DEBUG_FLAG),1) | |
108 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
109 | endif | |
110 | ifeq ($(USE_EXCEPTIONS),0) | |
111 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
112 | endif | |
113 | ifeq ($(USE_RTTI),0) | |
114 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
115 | endif | |
116 | ifeq ($(USE_THREADS),0) | |
117 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
118 | endif | |
119 | ifeq ($(UNICODE),1) | |
120 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
121 | endif | |
b17c1746 DE |
122 | ifeq ($(MONOLITHIC),1) |
123 | __WXLIB_MONO_p = \ | |
c33fae85 | 124 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
125 | endif |
126 | ifeq ($(USE_GUI),1) | |
9c2d002b | 127 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
128 | endif |
129 | ifeq ($(USE_GUI),1) | |
9c2d002b | 130 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
131 | endif |
132 | ifeq ($(USE_GUI),1) | |
9c2d002b | 133 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
134 | endif |
135 | ifeq ($(MSLU),1) | |
136 | __UNICOWS_LIB_p = -lunicows | |
137 | endif | |
138 | ifeq ($(MONOLITHIC),0) | |
139 | __WXLIB_CORE_p = \ | |
c33fae85 | 140 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
141 | endif |
142 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
143 | __WXLIB_BASE_p = \ |
144 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
145 | endif |
146 | ifeq ($(SHARED),0) | |
147 | __netutilslib___depname = \ | |
c33fae85 | 148 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a |
b17c1746 | 149 | endif |
15e8daec VS |
150 | ifeq ($(BUILD),debug) |
151 | ifeq ($(DEBUG_INFO),default) | |
152 | __DEBUGINFO = -g | |
153 | endif | |
154 | endif | |
155 | ifeq ($(BUILD),release) | |
156 | ifeq ($(DEBUG_INFO),default) | |
157 | __DEBUGINFO = | |
158 | endif | |
159 | endif | |
160 | ifeq ($(DEBUG_INFO),0) | |
161 | __DEBUGINFO = | |
162 | endif | |
163 | ifeq ($(DEBUG_INFO),1) | |
164 | __DEBUGINFO = -g | |
165 | endif | |
166 | ifeq ($(BUILD),debug) | |
b17c1746 | 167 | __OPTIMIZEFLAG = -O0 |
15e8daec | 168 | endif |
b17c1746 DE |
169 | ifeq ($(BUILD),release) |
170 | __OPTIMIZEFLAG = -O2 | |
15e8daec | 171 | endif |
8c9f8f91 JS |
172 | ifeq ($(USE_THREADS),0) |
173 | __THREADSFLAG = | |
a4ad36cd | 174 | endif |
8c9f8f91 JS |
175 | ifeq ($(USE_THREADS),1) |
176 | __THREADSFLAG = -mthreads | |
177 | endif | |
178 | ifeq ($(USE_RTTI),0) | |
179 | __RTTIFLAG = -fno-rtti | |
180 | endif | |
181 | ifeq ($(USE_RTTI),1) | |
182 | __RTTIFLAG = | |
a4ad36cd VS |
183 | endif |
184 | ifeq ($(USE_EXCEPTIONS),0) | |
8c9f8f91 | 185 | __EXCEPTIONSFLAG = -fno-exceptions |
a4ad36cd VS |
186 | endif |
187 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 188 | __EXCEPTIONSFLAG = |
a4ad36cd | 189 | endif |
b17c1746 DE |
190 | ifeq ($(WXUNIV),1) |
191 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
15e8daec VS |
192 | endif |
193 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
194 | ifeq ($(DEBUG_FLAG),default) |
195 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec | 196 | endif |
b17c1746 DE |
197 | endif |
198 | ifeq ($(DEBUG_FLAG),1) | |
199 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec | 200 | endif |
8c9f8f91 JS |
201 | ifeq ($(USE_EXCEPTIONS),0) |
202 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
203 | endif | |
204 | ifeq ($(USE_RTTI),0) | |
205 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
206 | endif | |
207 | ifeq ($(USE_THREADS),0) | |
208 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
209 | endif | |
15e8daec | 210 | ifeq ($(UNICODE),1) |
ec08d395 | 211 | __UNICODE_DEFINE_p = -D_UNICODE |
15e8daec | 212 | endif |
15e8daec VS |
213 | |
214 | ||
215 | all: $(OBJS) | |
216 | $(OBJS): | |
217 | -if not exist $(OBJS) mkdir $(OBJS) | |
218 | ||
219 | ### Targets: ### | |
220 | ||
221 | all: $(__netutilsdll___depname) $(__netutilslib___depname) | |
222 | ||
b17c1746 DE |
223 | clean: |
224 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c33fae85 RN |
225 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll |
226 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a | |
227 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a | |
b17c1746 DE |
228 | |
229 | ifeq ($(SHARED),1) | |
8c9f8f91 JS |
230 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll: $(NETUTILSDLL_OBJECTS) $(OBJS)\netutilsdll_version_rc.o |
231 | $(CXX) -shared -fPIC -o $@ $(NETUTILSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a $(__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 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) | |
b17c1746 DE |
232 | endif |
233 | ||
234 | ifeq ($(SHARED),0) | |
c33fae85 | 235 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a: $(NETUTILSLIB_OBJECTS) |
b17c1746 DE |
236 | if exist $@ del $@ |
237 | ar rcu $@ $(NETUTILSLIB_OBJECTS) | |
238 | ranlib $@ | |
239 | endif | |
240 | ||
1c3a6972 | 241 | $(OBJS)\netutilsdll_dummy.o: ../../src/net/../../../src/msw/dummy.cpp |
15e8daec VS |
242 | $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $< |
243 | ||
102d46f3 | 244 | $(OBJS)\netutilsdll_version_rc.o: ../../src/net/../../../src/msw/version.rc |
8c9f8f91 JS |
245 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ../../src/net/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG) |
246 | ||
1c3a6972 | 247 | $(OBJS)\netutilsdll_email.o: ../../src/net/email.cpp |
15e8daec VS |
248 | $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $< |
249 | ||
1c3a6972 | 250 | $(OBJS)\netutilsdll_smapi.o: ../../src/net/smapi.cpp |
15e8daec VS |
251 | $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $< |
252 | ||
1c3a6972 | 253 | $(OBJS)\netutilsdll_web.o: ../../src/net/web.cpp |
15e8daec VS |
254 | $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $< |
255 | ||
1c3a6972 | 256 | $(OBJS)\netutilslib_dummy.o: ../../src/net/../../../src/msw/dummy.cpp |
15e8daec VS |
257 | $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $< |
258 | ||
1c3a6972 | 259 | $(OBJS)\netutilslib_email.o: ../../src/net/email.cpp |
15e8daec VS |
260 | $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $< |
261 | ||
1c3a6972 | 262 | $(OBJS)\netutilslib_smapi.o: ../../src/net/smapi.cpp |
15e8daec VS |
263 | $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $< |
264 | ||
1c3a6972 | 265 | $(OBJS)\netutilslib_web.o: ../../src/net/web.cpp |
15e8daec VS |
266 | $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $< |
267 | ||
15e8daec | 268 | .PHONY: all clean |
b14abf14 | 269 | |
8c9f8f91 | 270 |