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