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