1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = ..\..\src\net\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 NETUTILSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\net\..\..\..\include -W \
27 -Wall -I..\..\src\net\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_NETUTILS \
28 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
30 NETUTILSDLL_OBJECTS = \
31 $(OBJS)\netutilsdll_dummy.o \
32 $(OBJS)\netutilsdll_version_rc.o \
33 $(OBJS)\netutilsdll_email.o \
34 $(OBJS)\netutilsdll_smapi.o \
35 $(OBJS)\netutilsdll_web.o
36 NETUTILSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
37 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
38 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
39 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
40 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\net\..\..\..\include -W \
41 -Wall -I..\..\src\net\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
42 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
43 NETUTILSLIB_OBJECTS = \
44 $(OBJS)\netutilslib_dummy.o \
45 $(OBJS)\netutilslib_email.o \
46 $(OBJS)\netutilslib_smapi.o \
47 $(OBJS)\netutilslib_web.o
49 ### Conditionally set variables: ###
51 ifeq ($(GCC_VERSION),2.95)
52 GCCFLAGS = -fvtable-thunks
60 ifeq ($(OFFICIAL_BUILD),0)
61 VENDORTAG = _$(VENDOR)
63 ifeq ($(OFFICIAL_BUILD),1)
67 ifeq ($(DEBUG_FLAG),default)
71 ifeq ($(DEBUG_FLAG),1)
89 ifeq ($(MONOLITHIC),0)
92 ifeq ($(MONOLITHIC),1)
96 __netutilsdll___depname = \
97 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll
100 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110 ifeq ($(USE_EXCEPTIONS),0)
111 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
114 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
116 ifeq ($(USE_THREADS),0)
117 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
120 __UNICODE_DEFINE_p_1 = --define _UNICODE
123 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
125 ifeq ($(USE_GDIPLUS),1)
126 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
128 ifeq ($(MONOLITHIC),1)
130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
133 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
136 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
139 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
142 __UNICOWS_LIB_p = -lunicows
144 ifeq ($(USE_GDIPLUS),1)
145 __GDIPLUS_LIB_p = -lgdiplus
147 ifeq ($(MONOLITHIC),0)
149 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
151 ifeq ($(MONOLITHIC),0)
153 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
156 __netutilslib___depname = \
157 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a
159 ifeq ($(BUILD),debug)
160 ifeq ($(DEBUG_INFO),default)
164 ifeq ($(BUILD),release)
165 ifeq ($(DEBUG_INFO),default)
169 ifeq ($(DEBUG_INFO),0)
172 ifeq ($(DEBUG_INFO),1)
175 ifeq ($(BUILD),debug)
178 ifeq ($(BUILD),release)
181 ifeq ($(USE_THREADS),0)
184 ifeq ($(USE_THREADS),1)
185 __THREADSFLAG = -mthreads
188 __RTTIFLAG = -fno-rtti
193 ifeq ($(USE_EXCEPTIONS),0)
194 __EXCEPTIONSFLAG = -fno-exceptions
196 ifeq ($(USE_EXCEPTIONS),1)
200 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
202 ifeq ($(BUILD),debug)
203 ifeq ($(DEBUG_FLAG),default)
204 __DEBUG_DEFINE_p = -D__WXDEBUG__
207 ifeq ($(DEBUG_FLAG),1)
208 __DEBUG_DEFINE_p = -D__WXDEBUG__
210 ifeq ($(USE_EXCEPTIONS),0)
211 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
214 __RTTI_DEFINE_p = -DwxNO_RTTI
216 ifeq ($(USE_THREADS),0)
217 __THREAD_DEFINE_p = -DwxNO_THREADS
220 __UNICODE_DEFINE_p = -D_UNICODE
223 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
225 ifeq ($(USE_GDIPLUS),1)
226 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
232 -if not exist $(OBJS) mkdir $(OBJS)
236 all: $(__netutilsdll___depname) $(__netutilslib___depname)
239 -if exist $(OBJS)\*.o del $(OBJS)\*.o
240 -if exist $(OBJS)\*.d del $(OBJS)\*.d
241 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll
242 -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
243 -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
246 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG).dll: $(NETUTILSDLL_OBJECTS) $(OBJS)\netutilsdll_version_rc.o
247 $(CXX) -shared -fPIC -o $@ $(NETUTILSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
251 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.a: $(NETUTILSLIB_OBJECTS)
253 ar rcu $@ $(NETUTILSLIB_OBJECTS)
257 $(OBJS)\netutilsdll_dummy.o: ../../src/net/../../../src/common/dummy.cpp
258 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $(CPPDEPS) $<
260 $(OBJS)\netutilsdll_version_rc.o: ../../src/net/../../../src/msw/version.rc
261 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ../../src/net/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_gcc$(VENDORTAG)
263 $(OBJS)\netutilsdll_email.o: ../../src/net/email.cpp
264 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $(CPPDEPS) $<
266 $(OBJS)\netutilsdll_smapi.o: ../../src/net/smapi.cpp
267 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $(CPPDEPS) $<
269 $(OBJS)\netutilsdll_web.o: ../../src/net/web.cpp
270 $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $(CPPDEPS) $<
272 $(OBJS)\netutilslib_dummy.o: ../../src/net/../../../src/common/dummy.cpp
273 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $(CPPDEPS) $<
275 $(OBJS)\netutilslib_email.o: ../../src/net/email.cpp
276 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $(CPPDEPS) $<
278 $(OBJS)\netutilslib_smapi.o: ../../src/net/smapi.cpp
279 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $(CPPDEPS) $<
281 $(OBJS)\netutilslib_web.o: ../../src/net/web.cpp
282 $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $(CPPDEPS) $<
287 # Dependencies tracking: