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