]>
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 | ||
b17c1746 DE |
15 | OBJS = \ |
16 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
17 | SETUPHDIR = \ | |
18 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 19 | DEPRECATEDDLL_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
15e8daec VS |
20 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
21 | $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \ | |
ec08d395 | 22 | -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include -DWXUSINGDLL \ |
9bfe7ad9 VS |
23 | -DWXMAKINGDLL_DEPRECATED -I..\..\src\deprecated $(CPPFLAGS) $(CFLAGS) |
24 | DEPRECATEDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
25 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
26 | $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \ | |
27 | -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include -DWXUSINGDLL \ | |
28 | -DWXMAKINGDLL_DEPRECATED -I..\..\src\deprecated $(__EXCEPTIONSFLAG) \ | |
29 | $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) | |
15e8daec VS |
30 | DEPRECATEDDLL_OBJECTS = \ |
31 | $(OBJS)\deprecateddll_dummy.o \ | |
32 | $(OBJS)\deprecateddll_prop.o \ | |
33 | $(OBJS)\deprecateddll_propform.o \ | |
34 | $(OBJS)\deprecateddll_proplist.o \ | |
35 | $(OBJS)\deprecateddll_resource.o \ | |
8a82c9ec | 36 | $(OBJS)\deprecateddll_tbarsmpl.o \ |
15e8daec VS |
37 | $(OBJS)\deprecateddll_treelay.o \ |
38 | $(OBJS)\deprecateddll_wxexpr.o \ | |
39 | $(OBJS)\deprecateddll_dosyacc.o | |
9bfe7ad9 VS |
40 | DEPRECATEDLIB_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
41 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
42 | $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \ | |
43 | -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include \ | |
44 | -I..\..\src\deprecated $(CPPFLAGS) $(CFLAGS) | |
45 | DEPRECATEDLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
15e8daec VS |
46 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
47 | $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \ | |
ec08d395 | 48 | -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include \ |
9bfe7ad9 VS |
49 | -I..\..\src\deprecated $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \ |
50 | $(CPPFLAGS) $(CXXFLAGS) | |
15e8daec VS |
51 | DEPRECATEDLIB_OBJECTS = \ |
52 | $(OBJS)\deprecatedlib_dummy.o \ | |
53 | $(OBJS)\deprecatedlib_prop.o \ | |
54 | $(OBJS)\deprecatedlib_propform.o \ | |
55 | $(OBJS)\deprecatedlib_proplist.o \ | |
56 | $(OBJS)\deprecatedlib_resource.o \ | |
8a82c9ec | 57 | $(OBJS)\deprecatedlib_tbarsmpl.o \ |
15e8daec VS |
58 | $(OBJS)\deprecatedlib_treelay.o \ |
59 | $(OBJS)\deprecatedlib_wxexpr.o \ | |
60 | $(OBJS)\deprecatedlib_dosyacc.o | |
15e8daec VS |
61 | |
62 | ### Conditionally set variables: ### | |
63 | ||
64 | ifeq ($(GCC_VERSION),2.95) | |
65 | GCCFLAGS = -fvtable-thunks | |
66 | endif | |
67 | ifeq ($(USE_GUI),0) | |
68 | PORTNAME = base | |
69 | endif | |
70 | ifeq ($(USE_GUI),1) | |
71 | PORTNAME = msw | |
72 | endif | |
73 | ifeq ($(OFFICIAL_BUILD),0) | |
74 | VENDORTAG = _$(VENDOR) | |
75 | endif | |
76 | ifeq ($(OFFICIAL_BUILD),1) | |
77 | VENDORTAG = | |
78 | endif | |
79 | ifeq ($(BUILD),debug) | |
80 | ifeq ($(DEBUG_FLAG),default) | |
81 | WXDEBUGFLAG = d | |
82 | endif | |
83 | endif | |
84 | ifeq ($(DEBUG_FLAG),1) | |
85 | WXDEBUGFLAG = d | |
86 | endif | |
15e8daec VS |
87 | ifeq ($(UNICODE),1) |
88 | WXUNICODEFLAG = u | |
89 | endif | |
90 | ifeq ($(WXUNIV),1) | |
91 | WXUNIVNAME = univ | |
92 | endif | |
b17c1746 DE |
93 | ifeq ($(SHARED),1) |
94 | WXDLLFLAG = dll | |
95 | endif | |
96 | ifeq ($(SHARED),1) | |
97 | __deprecateddll___depname = \ | |
c4839ccf | 98 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll |
b17c1746 DE |
99 | endif |
100 | ifeq ($(MONOLITHIC),1) | |
101 | __WXLIB_MONO_p = \ | |
102 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
103 | endif | |
104 | ifeq ($(USE_GUI),1) | |
105 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
106 | endif | |
107 | ifeq ($(USE_GUI),1) | |
108 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
109 | endif | |
110 | ifeq ($(USE_GUI),1) | |
111 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
112 | endif | |
113 | ifeq ($(MSLU),1) | |
114 | __UNICOWS_LIB_p = -lunicows | |
115 | endif | |
116 | ifeq ($(MONOLITHIC),0) | |
117 | __WXLIB_CORE_p = \ | |
118 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
119 | endif | |
120 | ifeq ($(MONOLITHIC),0) | |
121 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
122 | endif | |
123 | ifeq ($(SHARED),0) | |
124 | __deprecatedlib___depname = \ | |
125 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a | |
126 | endif | |
15e8daec VS |
127 | ifeq ($(BUILD),debug) |
128 | ifeq ($(DEBUG_INFO),default) | |
129 | __DEBUGINFO = -g | |
130 | endif | |
131 | endif | |
132 | ifeq ($(BUILD),release) | |
133 | ifeq ($(DEBUG_INFO),default) | |
134 | __DEBUGINFO = | |
135 | endif | |
136 | endif | |
137 | ifeq ($(DEBUG_INFO),0) | |
138 | __DEBUGINFO = | |
139 | endif | |
140 | ifeq ($(DEBUG_INFO),1) | |
141 | __DEBUGINFO = -g | |
142 | endif | |
143 | ifeq ($(BUILD),debug) | |
b17c1746 | 144 | __OPTIMIZEFLAG = -O0 |
15e8daec | 145 | endif |
b17c1746 DE |
146 | ifeq ($(BUILD),release) |
147 | __OPTIMIZEFLAG = -O2 | |
15e8daec | 148 | endif |
a4ad36cd VS |
149 | ifeq ($(USE_EXCEPTIONS),0) |
150 | __EXCEPTIONSFLAG = -fno-rtti | |
151 | endif | |
152 | ifeq ($(USE_EXCEPTIONS),1) | |
153 | __EXCEPTIONSFLAG = | |
154 | endif | |
155 | ifeq ($(USE_EXCEPTIONS),0) | |
156 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
157 | endif | |
158 | ifeq ($(USE_EXCEPTIONS),1) | |
159 | __EXCEPTIONSFLAG_0 = | |
160 | endif | |
b17c1746 DE |
161 | ifeq ($(WXUNIV),1) |
162 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
15e8daec VS |
163 | endif |
164 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
165 | ifeq ($(DEBUG_FLAG),default) |
166 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec | 167 | endif |
b17c1746 DE |
168 | endif |
169 | ifeq ($(DEBUG_FLAG),1) | |
170 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec VS |
171 | endif |
172 | ifeq ($(UNICODE),1) | |
ec08d395 | 173 | __UNICODE_DEFINE_p = -D_UNICODE |
15e8daec | 174 | endif |
b17c1746 DE |
175 | ifeq ($(SHARED),0) |
176 | LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_lib$(CFG) | |
15e8daec VS |
177 | endif |
178 | ifeq ($(SHARED),1) | |
b17c1746 | 179 | LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_dll$(CFG) |
15e8daec VS |
180 | endif |
181 | ||
182 | ||
183 | all: $(OBJS) | |
184 | $(OBJS): | |
185 | -if not exist $(OBJS) mkdir $(OBJS) | |
186 | ||
187 | ### Targets: ### | |
188 | ||
189 | all: $(__deprecateddll___depname) $(__deprecatedlib___depname) | |
190 | ||
b17c1746 DE |
191 | clean: |
192 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c4839ccf | 193 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll |
b17c1746 DE |
194 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a |
195 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a | |
196 | ||
197 | ifeq ($(SHARED),1) | |
c4839ccf | 198 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS) |
b92ca8cf | 199 | $(CXX) -shared -o $@ $(DEPRECATEDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(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) |
b17c1746 DE |
200 | endif |
201 | ||
202 | ifeq ($(SHARED),0) | |
203 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a: $(DEPRECATEDLIB_OBJECTS) | |
204 | if exist $@ del $@ | |
205 | ar rcu $@ $(DEPRECATEDLIB_OBJECTS) | |
206 | ranlib $@ | |
207 | endif | |
15e8daec | 208 | |
1c3a6972 | 209 | $(OBJS)\deprecateddll_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp |
15e8daec VS |
210 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
211 | ||
1c3a6972 | 212 | $(OBJS)\deprecateddll_prop.o: ../../src/deprecated/prop.cpp |
15e8daec VS |
213 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
214 | ||
1c3a6972 | 215 | $(OBJS)\deprecateddll_propform.o: ../../src/deprecated/propform.cpp |
15e8daec VS |
216 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
217 | ||
1c3a6972 | 218 | $(OBJS)\deprecateddll_proplist.o: ../../src/deprecated/proplist.cpp |
15e8daec VS |
219 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
220 | ||
1c3a6972 | 221 | $(OBJS)\deprecateddll_resource.o: ../../src/deprecated/resource.cpp |
15e8daec VS |
222 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
223 | ||
1c3a6972 | 224 | $(OBJS)\deprecateddll_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp |
8a82c9ec JS |
225 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
226 | ||
1c3a6972 | 227 | $(OBJS)\deprecateddll_treelay.o: ../../src/deprecated/treelay.cpp |
15e8daec VS |
228 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
229 | ||
1c3a6972 | 230 | $(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated/wxexpr.cpp |
15e8daec VS |
231 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
232 | ||
b17c1746 DE |
233 | $(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated/dosyacc.c |
234 | $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $< | |
15e8daec | 235 | |
1c3a6972 | 236 | $(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp |
15e8daec VS |
237 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
238 | ||
1c3a6972 | 239 | $(OBJS)\deprecatedlib_prop.o: ../../src/deprecated/prop.cpp |
15e8daec VS |
240 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
241 | ||
1c3a6972 | 242 | $(OBJS)\deprecatedlib_propform.o: ../../src/deprecated/propform.cpp |
15e8daec VS |
243 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
244 | ||
1c3a6972 | 245 | $(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated/proplist.cpp |
15e8daec VS |
246 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
247 | ||
1c3a6972 | 248 | $(OBJS)\deprecatedlib_resource.o: ../../src/deprecated/resource.cpp |
15e8daec VS |
249 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
250 | ||
1c3a6972 | 251 | $(OBJS)\deprecatedlib_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp |
8a82c9ec JS |
252 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
253 | ||
1c3a6972 | 254 | $(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated/treelay.cpp |
15e8daec VS |
255 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
256 | ||
1c3a6972 | 257 | $(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated/wxexpr.cpp |
15e8daec VS |
258 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
259 | ||
b17c1746 DE |
260 | $(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated/dosyacc.c |
261 | $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $< | |
15e8daec VS |
262 | |
263 | .PHONY: all clean |