]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/net/makefile.gcc
Removed ambiguity between deprecated and new constructor.
[wxWidgets.git] / contrib / build / net / makefile.gcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
b14abf14 3# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
15e8daec
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
15e8daec
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
b14abf14 16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4
b17c1746
DE
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = ..\..\src\net\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 22NETUTILSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
15e8daec 23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
b14abf14
JS
24 $(__UNICODE_DEFINE_p) -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) -W \
25 -Wall -I..\..\src\net\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_NETUTILS \
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
27 $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
28NETUTILSDLL_OBJECTS = \
29 $(OBJS)\netutilsdll_dummy.o \
30 $(OBJS)\netutilsdll_email.o \
31 $(OBJS)\netutilsdll_smapi.o \
32 $(OBJS)\netutilsdll_web.o
9bfe7ad9 33NETUTILSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
15e8daec 34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
b14abf14
JS
35 $(__UNICODE_DEFINE_p) -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) -W \
36 -Wall -I..\..\src\net\..\..\include $(__EXCEPTIONSFLAG) \
37 $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
38NETUTILSLIB_OBJECTS = \
39 $(OBJS)\netutilslib_dummy.o \
40 $(OBJS)\netutilslib_email.o \
41 $(OBJS)\netutilslib_smapi.o \
42 $(OBJS)\netutilslib_web.o
15e8daec
VS
43
44### Conditionally set variables: ###
45
46ifeq ($(GCC_VERSION),2.95)
47GCCFLAGS = -fvtable-thunks
48endif
49ifeq ($(USE_GUI),0)
50PORTNAME = base
51endif
52ifeq ($(USE_GUI),1)
53PORTNAME = msw
54endif
55ifeq ($(OFFICIAL_BUILD),0)
56VENDORTAG = _$(VENDOR)
57endif
58ifeq ($(OFFICIAL_BUILD),1)
59VENDORTAG =
60endif
61ifeq ($(BUILD),debug)
62ifeq ($(DEBUG_FLAG),default)
63WXDEBUGFLAG = d
64endif
65endif
66ifeq ($(DEBUG_FLAG),1)
67WXDEBUGFLAG = d
68endif
15e8daec
VS
69ifeq ($(UNICODE),1)
70WXUNICODEFLAG = u
71endif
72ifeq ($(WXUNIV),1)
73WXUNIVNAME = univ
74endif
b17c1746
DE
75ifeq ($(SHARED),1)
76WXDLLFLAG = dll
77endif
b14abf14
JS
78ifeq ($(SHARED),0)
79LIBTYPE_SUFFIX = lib
80endif
81ifeq ($(SHARED),1)
82LIBTYPE_SUFFIX = dll
83endif
dd65d8c8
RN
84ifeq ($(MONOLITHIC),0)
85EXTRALIBS_FOR_BASE =
86endif
87ifeq ($(MONOLITHIC),1)
88EXTRALIBS_FOR_BASE =
89endif
b17c1746
DE
90ifeq ($(SHARED),1)
91__netutilsdll___depname = \
c33fae85 92 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll
b17c1746
DE
93endif
94ifeq ($(MONOLITHIC),1)
95__WXLIB_MONO_p = \
c33fae85 96 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
97endif
98ifeq ($(USE_GUI),1)
9c2d002b 99__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
100endif
101ifeq ($(USE_GUI),1)
9c2d002b 102__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
103endif
104ifeq ($(USE_GUI),1)
9c2d002b 105__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
106endif
107ifeq ($(MSLU),1)
108__UNICOWS_LIB_p = -lunicows
109endif
110ifeq ($(MONOLITHIC),0)
111__WXLIB_CORE_p = \
c33fae85 112 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
113endif
114ifeq ($(MONOLITHIC),0)
c33fae85
RN
115__WXLIB_BASE_p = \
116 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
117endif
118ifeq ($(SHARED),0)
119__netutilslib___depname = \
c33fae85 120 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a
b17c1746 121endif
15e8daec
VS
122ifeq ($(BUILD),debug)
123ifeq ($(DEBUG_INFO),default)
124__DEBUGINFO = -g
125endif
126endif
127ifeq ($(BUILD),release)
128ifeq ($(DEBUG_INFO),default)
129__DEBUGINFO =
130endif
131endif
132ifeq ($(DEBUG_INFO),0)
133__DEBUGINFO =
134endif
135ifeq ($(DEBUG_INFO),1)
136__DEBUGINFO = -g
137endif
138ifeq ($(BUILD),debug)
b17c1746 139__OPTIMIZEFLAG = -O0
15e8daec 140endif
b17c1746
DE
141ifeq ($(BUILD),release)
142__OPTIMIZEFLAG = -O2
15e8daec 143endif
a4ad36cd
VS
144ifeq ($(USE_EXCEPTIONS),0)
145__EXCEPTIONSFLAG = -fno-rtti
146endif
147ifeq ($(USE_EXCEPTIONS),1)
148__EXCEPTIONSFLAG =
149endif
150ifeq ($(USE_EXCEPTIONS),0)
151__EXCEPTIONSFLAG_0 = -fno-exceptions
152endif
153ifeq ($(USE_EXCEPTIONS),1)
154__EXCEPTIONSFLAG_0 =
155endif
b17c1746
DE
156ifeq ($(WXUNIV),1)
157__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
15e8daec
VS
158endif
159ifeq ($(BUILD),debug)
b17c1746
DE
160ifeq ($(DEBUG_FLAG),default)
161__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 162endif
b17c1746
DE
163endif
164ifeq ($(DEBUG_FLAG),1)
165__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec
VS
166endif
167ifeq ($(UNICODE),1)
ec08d395 168__UNICODE_DEFINE_p = -D_UNICODE
15e8daec 169endif
15e8daec
VS
170
171
172all: $(OBJS)
173$(OBJS):
174 -if not exist $(OBJS) mkdir $(OBJS)
175
176### Targets: ###
177
178all: $(__netutilsdll___depname) $(__netutilslib___depname)
179
b17c1746
DE
180clean:
181 -if exist $(OBJS)\*.o del $(OBJS)\*.o
c33fae85
RN
182 -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
183 -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
184 -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
185
186ifeq ($(SHARED),1)
c33fae85 187$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll: $(NETUTILSDLL_OBJECTS)
b14abf14 188 $(CXX) -shared -fPIC -o $@ $(NETUTILSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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
189endif
190
191ifeq ($(SHARED),0)
c33fae85 192$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a: $(NETUTILSLIB_OBJECTS)
b17c1746
DE
193 if exist $@ del $@
194 ar rcu $@ $(NETUTILSLIB_OBJECTS)
195 ranlib $@
196endif
197
1c3a6972 198$(OBJS)\netutilsdll_dummy.o: ../../src/net/../../../src/msw/dummy.cpp
15e8daec
VS
199 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $<
200
1c3a6972 201$(OBJS)\netutilsdll_email.o: ../../src/net/email.cpp
15e8daec
VS
202 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $<
203
1c3a6972 204$(OBJS)\netutilsdll_smapi.o: ../../src/net/smapi.cpp
15e8daec
VS
205 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $<
206
1c3a6972 207$(OBJS)\netutilsdll_web.o: ../../src/net/web.cpp
15e8daec
VS
208 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $<
209
1c3a6972 210$(OBJS)\netutilslib_dummy.o: ../../src/net/../../../src/msw/dummy.cpp
15e8daec
VS
211 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $<
212
1c3a6972 213$(OBJS)\netutilslib_email.o: ../../src/net/email.cpp
15e8daec
VS
214 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $<
215
1c3a6972 216$(OBJS)\netutilslib_smapi.o: ../../src/net/smapi.cpp
15e8daec
VS
217 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $<
218
1c3a6972 219$(OBJS)\netutilslib_web.o: ../../src/net/web.cpp
15e8daec
VS
220 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $<
221
15e8daec 222.PHONY: all clean
b14abf14 223