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