]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/net/makefile.gcc
fixed LastRead() after Read(wxOutputStream&) (patch 1658301)
[wxWidgets.git] / contrib / build / net / makefile.gcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
25bb1412 3# Bakefile 0.2.1 (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
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
ae4ccf12
RD
16WX_RELEASE_NODOT = 29
17WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
b17c1746
DE
18OBJS = \
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 20LIBDIRNAME = ..\..\src\net\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
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) \
2113bc77 26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\net\..\..\..\include -W \
28 -Wall -I..\..\src\net\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_NETUTILS \
8c9f8f91
JS
29 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
30 $(CXXFLAGS)
15e8daec
VS
31NETUTILSDLL_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
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) \
2113bc77 40 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
41 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\net\..\..\..\include -W \
42 -Wall -I..\..\src\net\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
8c9f8f91 43 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
44NETUTILSLIB_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
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
15e8daec
VS
75ifeq ($(UNICODE),1)
76WXUNICODEFLAG = u
77endif
78ifeq ($(WXUNIV),1)
79WXUNIVNAME = univ
80endif
b17c1746
DE
81ifeq ($(SHARED),1)
82WXDLLFLAG = dll
83endif
b14abf14
JS
84ifeq ($(SHARED),0)
85LIBTYPE_SUFFIX = lib
86endif
87ifeq ($(SHARED),1)
88LIBTYPE_SUFFIX = dll
89endif
dd65d8c8
RN
90ifeq ($(MONOLITHIC),0)
91EXTRALIBS_FOR_BASE =
92endif
93ifeq ($(MONOLITHIC),1)
94EXTRALIBS_FOR_BASE =
95endif
b17c1746
DE
96ifeq ($(SHARED),1)
97__netutilsdll___depname = \
ae4ccf12 98 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll
b17c1746 99endif
8c9f8f91
JS
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
2113bc77
MW
123ifeq ($(MSLU),1)
124__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
125endif
3abcf424
RD
126ifeq ($(USE_GDIPLUS),1)
127__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
128endif
b17c1746
DE
129ifeq ($(MONOLITHIC),1)
130__WXLIB_MONO_p = \
c33fae85 131 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
132endif
133ifeq ($(USE_GUI),1)
9c2d002b 134__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
135endif
136ifeq ($(USE_GUI),1)
9c2d002b 137__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
138endif
139ifeq ($(USE_GUI),1)
9c2d002b 140__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
141endif
142ifeq ($(MSLU),1)
143__UNICOWS_LIB_p = -lunicows
144endif
3abcf424
RD
145ifeq ($(USE_GDIPLUS),1)
146__GDIPLUS_LIB_p = -lgdiplus
147endif
b17c1746
DE
148ifeq ($(MONOLITHIC),0)
149__WXLIB_CORE_p = \
c33fae85 150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
151endif
152ifeq ($(MONOLITHIC),0)
c33fae85
RN
153__WXLIB_BASE_p = \
154 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
155endif
156ifeq ($(SHARED),0)
157__netutilslib___depname = \
c33fae85 158 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a
b17c1746 159endif
15e8daec
VS
160ifeq ($(BUILD),debug)
161ifeq ($(DEBUG_INFO),default)
162__DEBUGINFO = -g
163endif
164endif
165ifeq ($(BUILD),release)
166ifeq ($(DEBUG_INFO),default)
167__DEBUGINFO =
168endif
169endif
170ifeq ($(DEBUG_INFO),0)
171__DEBUGINFO =
172endif
173ifeq ($(DEBUG_INFO),1)
174__DEBUGINFO = -g
175endif
176ifeq ($(BUILD),debug)
b17c1746 177__OPTIMIZEFLAG = -O0
15e8daec 178endif
b17c1746
DE
179ifeq ($(BUILD),release)
180__OPTIMIZEFLAG = -O2
15e8daec 181endif
8c9f8f91
JS
182ifeq ($(USE_THREADS),0)
183__THREADSFLAG =
a4ad36cd 184endif
8c9f8f91
JS
185ifeq ($(USE_THREADS),1)
186__THREADSFLAG = -mthreads
187endif
188ifeq ($(USE_RTTI),0)
189__RTTIFLAG = -fno-rtti
190endif
191ifeq ($(USE_RTTI),1)
192__RTTIFLAG =
a4ad36cd
VS
193endif
194ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 195__EXCEPTIONSFLAG = -fno-exceptions
a4ad36cd
VS
196endif
197ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 198__EXCEPTIONSFLAG =
a4ad36cd 199endif
b17c1746
DE
200ifeq ($(WXUNIV),1)
201__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
15e8daec
VS
202endif
203ifeq ($(BUILD),debug)
b17c1746
DE
204ifeq ($(DEBUG_FLAG),default)
205__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 206endif
b17c1746
DE
207endif
208ifeq ($(DEBUG_FLAG),1)
209__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 210endif
8c9f8f91
JS
211ifeq ($(USE_EXCEPTIONS),0)
212__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
213endif
214ifeq ($(USE_RTTI),0)
215__RTTI_DEFINE_p = -DwxNO_RTTI
216endif
217ifeq ($(USE_THREADS),0)
218__THREAD_DEFINE_p = -DwxNO_THREADS
219endif
15e8daec 220ifeq ($(UNICODE),1)
ec08d395 221__UNICODE_DEFINE_p = -D_UNICODE
15e8daec 222endif
2113bc77
MW
223ifeq ($(MSLU),1)
224__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
225endif
3abcf424
RD
226ifeq ($(USE_GDIPLUS),1)
227__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
228endif
15e8daec
VS
229
230
231all: $(OBJS)
232$(OBJS):
233 -if not exist $(OBJS) mkdir $(OBJS)
234
235### Targets: ###
236
237all: $(__netutilsdll___depname) $(__netutilslib___depname)
238
b17c1746
DE
239clean:
240 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 241 -if exist $(OBJS)\*.d del $(OBJS)\*.d
ae4ccf12 242 -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
243 -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
244 -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
245
246ifeq ($(SHARED),1)
ae4ccf12
RD
247$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll: $(NETUTILSDLL_OBJECTS) $(OBJS)\netutilsdll_version_rc.o
248 $(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) $(__GDIPLUS_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
249endif
250
251ifeq ($(SHARED),0)
c33fae85 252$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a: $(NETUTILSLIB_OBJECTS)
b17c1746
DE
253 if exist $@ del $@
254 ar rcu $@ $(NETUTILSLIB_OBJECTS)
255 ranlib $@
256endif
257
66b9f7f7 258$(OBJS)\netutilsdll_dummy.o: ../../src/net/../../../src/common/dummy.cpp
0d90d6ea 259 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 260
102d46f3 261$(OBJS)\netutilsdll_version_rc.o: ../../src/net/../../../src/msw/version.rc
ae4ccf12 262 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) $(__GFXCTX_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 263
1c3a6972 264$(OBJS)\netutilsdll_email.o: ../../src/net/email.cpp
0d90d6ea 265 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 266
1c3a6972 267$(OBJS)\netutilsdll_smapi.o: ../../src/net/smapi.cpp
0d90d6ea 268 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 269
1c3a6972 270$(OBJS)\netutilsdll_web.o: ../../src/net/web.cpp
0d90d6ea 271 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $(CPPDEPS) $<
15e8daec 272
66b9f7f7 273$(OBJS)\netutilslib_dummy.o: ../../src/net/../../../src/common/dummy.cpp
0d90d6ea 274 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 275
1c3a6972 276$(OBJS)\netutilslib_email.o: ../../src/net/email.cpp
0d90d6ea 277 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 278
1c3a6972 279$(OBJS)\netutilslib_smapi.o: ../../src/net/smapi.cpp
0d90d6ea 280 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 281
1c3a6972 282$(OBJS)\netutilslib_web.o: ../../src/net/web.cpp
0d90d6ea 283 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $(CPPDEPS) $<
15e8daec 284
15e8daec 285.PHONY: all clean
b14abf14 286
8c9f8f91 287
0d90d6ea
JS
288# Dependencies tracking:
289-include $(OBJS)/*.d