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