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