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