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