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