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