]>
Commit | Line | Data |
---|---|---|
15e8daec VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b17c1746 | 3 | # Bakefile 0.1.2 (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 | ||
b17c1746 DE |
15 | OBJS = \ |
16 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
17 | SETUPHDIR = \ | |
18 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 19 | NETUTILSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
15e8daec | 20 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
ec08d395 | 21 | $(__UNICODE_DEFINE_p) -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) -Wall \ |
15e8daec | 22 | -I..\..\src\net\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_NETUTILS \ |
9bfe7ad9 | 23 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) |
15e8daec VS |
24 | NETUTILSDLL_OBJECTS = \ |
25 | $(OBJS)\netutilsdll_dummy.o \ | |
26 | $(OBJS)\netutilsdll_email.o \ | |
27 | $(OBJS)\netutilsdll_smapi.o \ | |
28 | $(OBJS)\netutilsdll_web.o | |
9bfe7ad9 | 29 | NETUTILSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
15e8daec | 30 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
ec08d395 | 31 | $(__UNICODE_DEFINE_p) -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) -Wall \ |
9bfe7ad9 VS |
32 | -I..\..\src\net\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \ |
33 | $(CPPFLAGS) $(CXXFLAGS) | |
15e8daec VS |
34 | NETUTILSLIB_OBJECTS = \ |
35 | $(OBJS)\netutilslib_dummy.o \ | |
36 | $(OBJS)\netutilslib_email.o \ | |
37 | $(OBJS)\netutilslib_smapi.o \ | |
38 | $(OBJS)\netutilslib_web.o | |
15e8daec VS |
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 | |
15e8daec VS |
65 | ifeq ($(UNICODE),1) |
66 | WXUNICODEFLAG = u | |
67 | endif | |
68 | ifeq ($(WXUNIV),1) | |
69 | WXUNIVNAME = univ | |
70 | endif | |
b17c1746 DE |
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 | |
15e8daec VS |
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) | |
b17c1746 | 122 | __OPTIMIZEFLAG = -O0 |
15e8daec | 123 | endif |
b17c1746 DE |
124 | ifeq ($(BUILD),release) |
125 | __OPTIMIZEFLAG = -O2 | |
15e8daec | 126 | endif |
a4ad36cd VS |
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 | |
b17c1746 DE |
139 | ifeq ($(WXUNIV),1) |
140 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
15e8daec VS |
141 | endif |
142 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
143 | ifeq ($(DEBUG_FLAG),default) |
144 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec | 145 | endif |
b17c1746 DE |
146 | endif |
147 | ifeq ($(DEBUG_FLAG),1) | |
148 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec VS |
149 | endif |
150 | ifeq ($(UNICODE),1) | |
ec08d395 | 151 | __UNICODE_DEFINE_p = -D_UNICODE |
15e8daec | 152 | endif |
b17c1746 DE |
153 | ifeq ($(SHARED),0) |
154 | LIBDIRNAME = ..\..\src\net\..\..\..\lib\gcc_lib$(CFG) | |
15e8daec VS |
155 | endif |
156 | ifeq ($(SHARED),1) | |
b17c1746 | 157 | LIBDIRNAME = ..\..\src\net\..\..\..\lib\gcc_dll$(CFG) |
15e8daec VS |
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 | ||
b17c1746 DE |
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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__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 | ||
1c3a6972 | 187 | $(OBJS)\netutilsdll_dummy.o: ../../src/net/../../../src/msw/dummy.cpp |
15e8daec VS |
188 | $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $< |
189 | ||
1c3a6972 | 190 | $(OBJS)\netutilsdll_email.o: ../../src/net/email.cpp |
15e8daec VS |
191 | $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $< |
192 | ||
1c3a6972 | 193 | $(OBJS)\netutilsdll_smapi.o: ../../src/net/smapi.cpp |
15e8daec VS |
194 | $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $< |
195 | ||
1c3a6972 | 196 | $(OBJS)\netutilsdll_web.o: ../../src/net/web.cpp |
15e8daec VS |
197 | $(CXX) -c -o $@ $(NETUTILSDLL_CXXFLAGS) $< |
198 | ||
1c3a6972 | 199 | $(OBJS)\netutilslib_dummy.o: ../../src/net/../../../src/msw/dummy.cpp |
15e8daec VS |
200 | $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $< |
201 | ||
1c3a6972 | 202 | $(OBJS)\netutilslib_email.o: ../../src/net/email.cpp |
15e8daec VS |
203 | $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $< |
204 | ||
1c3a6972 | 205 | $(OBJS)\netutilslib_smapi.o: ../../src/net/smapi.cpp |
15e8daec VS |
206 | $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $< |
207 | ||
1c3a6972 | 208 | $(OBJS)\netutilslib_web.o: ../../src/net/web.cpp |
15e8daec VS |
209 | $(CXX) -c -o $@ $(NETUTILSLIB_CXXFLAGS) $< |
210 | ||
15e8daec | 211 | .PHONY: all clean |