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