]>
Commit | Line | Data |
---|---|---|
4b20974a VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
cf9b63b3 | 3 | # Bakefile 0.2.0 (http://bakefile.sourceforge.net) |
4b20974a VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
7 | include ../../../build/msw/config.gcc | |
8 | ||
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
0d90d6ea | 15 | CPPDEPS = -MT$@ -MF$@.d -MD |
4cbcfb73 | 16 | WX_RELEASE_NODOT = 27 |
4b20974a VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
162a956b | 19 | LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
4b20974a VS |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
22 | WXCONFIGTOOL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \ |
23 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
24 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
2113bc77 | 25 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
cf9b63b3 | 26 | -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. $(__DLLFLAG_p) \ |
2113bc77 MW |
27 | -I.\..\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \ |
28 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
4b20974a VS |
29 | WXCONFIGTOOL_OBJECTS = \ |
30 | $(OBJS)\wxconfigtool_sample_rc.o \ | |
31 | $(OBJS)\wxconfigtool_wxconfigtool.o \ | |
32 | $(OBJS)\wxconfigtool_appsettings.o \ | |
33 | $(OBJS)\wxconfigtool_configitem.o \ | |
34 | $(OBJS)\wxconfigtool_configitemselector.o \ | |
35 | $(OBJS)\wxconfigtool_configtooldoc.o \ | |
36 | $(OBJS)\wxconfigtool_configtoolview.o \ | |
37 | $(OBJS)\wxconfigtool_configtree.o \ | |
38 | $(OBJS)\wxconfigtool_custompropertydialog.o \ | |
39 | $(OBJS)\wxconfigtool_htmlparser.o \ | |
40 | $(OBJS)\wxconfigtool_mainframe.o \ | |
41 | $(OBJS)\wxconfigtool_propeditor.o \ | |
42 | $(OBJS)\wxconfigtool_property.o \ | |
43 | $(OBJS)\wxconfigtool_settingsdialog.o \ | |
44 | $(OBJS)\wxconfigtool_utils.o | |
45 | ||
46 | ### Conditionally set variables: ### | |
47 | ||
48 | ifeq ($(GCC_VERSION),2.95) | |
49 | GCCFLAGS = -fvtable-thunks | |
50 | endif | |
4b20974a VS |
51 | ifeq ($(USE_GUI),0) |
52 | PORTNAME = base | |
53 | endif | |
54 | ifeq ($(USE_GUI),1) | |
55 | PORTNAME = msw | |
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 | |
4b20974a 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 | |
4b20974a | 73 | endif |
162a956b JS |
74 | ifeq ($(SHARED),0) |
75 | LIBTYPE_SUFFIX = lib | |
76 | endif | |
77 | ifeq ($(SHARED),1) | |
78 | LIBTYPE_SUFFIX = dll | |
79 | endif | |
dd65d8c8 RN |
80 | ifeq ($(MONOLITHIC),0) |
81 | EXTRALIBS_FOR_BASE = | |
82 | endif | |
83 | ifeq ($(MONOLITHIC),1) | |
84 | EXTRALIBS_FOR_BASE = | |
85 | endif | |
b17c1746 DE |
86 | ifeq ($(BUILD),debug) |
87 | __OPTIMIZEFLAG_2 = -O0 | |
4b20974a VS |
88 | endif |
89 | ifeq ($(BUILD),release) | |
b17c1746 | 90 | __OPTIMIZEFLAG_2 = -O2 |
4b20974a | 91 | endif |
8c9f8f91 JS |
92 | ifeq ($(USE_RTTI),0) |
93 | __RTTIFLAG_5 = -fno-rtti | |
4b20974a | 94 | endif |
8c9f8f91 JS |
95 | ifeq ($(USE_RTTI),1) |
96 | __RTTIFLAG_5 = | |
4b20974a | 97 | endif |
b17c1746 | 98 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 99 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
100 | endif |
101 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 102 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
103 | endif |
104 | ifeq ($(WXUNIV),1) | |
105 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
106 | endif | |
107 | ifeq ($(WXUNIV),1) | |
108 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
4b20974a VS |
109 | endif |
110 | ifeq ($(BUILD),debug) | |
111 | ifeq ($(DEBUG_FLAG),default) | |
112 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
113 | endif | |
114 | endif | |
115 | ifeq ($(DEBUG_FLAG),1) | |
116 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
117 | endif | |
118 | ifeq ($(BUILD),debug) | |
119 | ifeq ($(DEBUG_FLAG),default) | |
120 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
121 | endif | |
122 | endif | |
123 | ifeq ($(DEBUG_FLAG),1) | |
124 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
125 | endif | |
8c9f8f91 JS |
126 | ifeq ($(USE_EXCEPTIONS),0) |
127 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
128 | endif | |
129 | ifeq ($(USE_EXCEPTIONS),0) | |
130 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
131 | endif | |
132 | ifeq ($(USE_RTTI),0) | |
133 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
134 | endif | |
135 | ifeq ($(USE_RTTI),0) | |
136 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
137 | endif | |
138 | ifeq ($(USE_THREADS),0) | |
139 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
140 | endif | |
141 | ifeq ($(USE_THREADS),0) | |
142 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
143 | endif | |
b17c1746 DE |
144 | ifeq ($(UNICODE),1) |
145 | __UNICODE_DEFINE_p = -D_UNICODE | |
146 | endif | |
147 | ifeq ($(UNICODE),1) | |
148 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
149 | endif | |
2113bc77 MW |
150 | ifeq ($(MSLU),1) |
151 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
152 | endif | |
153 | ifeq ($(MSLU),1) | |
154 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1 | |
155 | endif | |
4b20974a VS |
156 | ifeq ($(SHARED),1) |
157 | __DLLFLAG_p = -DWXUSINGDLL | |
158 | endif | |
159 | ifeq ($(SHARED),1) | |
160 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
161 | endif | |
b17c1746 DE |
162 | ifeq ($(MONOLITHIC),0) |
163 | __WXLIB_ADV_p = \ | |
c33fae85 | 164 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
a4ad36cd | 165 | endif |
b17c1746 DE |
166 | ifeq ($(MONOLITHIC),0) |
167 | __WXLIB_HTML_p = \ | |
c33fae85 | 168 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
a4ad36cd | 169 | endif |
b17c1746 DE |
170 | ifeq ($(MONOLITHIC),0) |
171 | __WXLIB_CORE_p = \ | |
c33fae85 | 172 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
a4ad36cd | 173 | endif |
b17c1746 | 174 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
175 | __WXLIB_XML_p = \ |
176 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
a4ad36cd | 177 | endif |
b17c1746 | 178 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
179 | __WXLIB_BASE_p = \ |
180 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
4b20974a | 181 | endif |
b17c1746 DE |
182 | ifeq ($(MONOLITHIC),1) |
183 | __WXLIB_MONO_p = \ | |
c33fae85 | 184 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
4b20974a VS |
185 | endif |
186 | ifeq ($(USE_GUI),1) | |
9c2d002b | 187 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
4b20974a | 188 | endif |
b17c1746 | 189 | ifeq ($(USE_GUI),1) |
9c2d002b | 190 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
4b20974a | 191 | endif |
b17c1746 | 192 | ifeq ($(USE_GUI),1) |
9c2d002b | 193 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
4b20974a VS |
194 | endif |
195 | ifeq ($(MSLU),1) | |
196 | __UNICOWS_LIB_p = -lunicows | |
197 | endif | |
b17c1746 DE |
198 | ifeq ($(BUILD),debug) |
199 | ifeq ($(DEBUG_INFO),default) | |
200 | __DEBUGINFO = -g | |
4b20974a | 201 | endif |
4b20974a | 202 | endif |
b17c1746 DE |
203 | ifeq ($(BUILD),release) |
204 | ifeq ($(DEBUG_INFO),default) | |
205 | __DEBUGINFO = | |
4b20974a | 206 | endif |
4b20974a | 207 | endif |
b17c1746 DE |
208 | ifeq ($(DEBUG_INFO),0) |
209 | __DEBUGINFO = | |
4b20974a | 210 | endif |
b17c1746 DE |
211 | ifeq ($(DEBUG_INFO),1) |
212 | __DEBUGINFO = -g | |
4b20974a | 213 | endif |
8c9f8f91 JS |
214 | ifeq ($(USE_THREADS),0) |
215 | __THREADSFLAG = | |
216 | endif | |
217 | ifeq ($(USE_THREADS),1) | |
218 | __THREADSFLAG = -mthreads | |
219 | endif | |
4b20974a VS |
220 | |
221 | ||
222 | all: $(OBJS) | |
223 | $(OBJS): | |
224 | -if not exist $(OBJS) mkdir $(OBJS) | |
225 | ||
226 | ### Targets: ### | |
227 | ||
228 | all: $(OBJS)\wxconfigtool.exe data | |
229 | ||
b17c1746 DE |
230 | clean: |
231 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 232 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
b17c1746 DE |
233 | -if exist $(OBJS)\wxconfigtool.exe del $(OBJS)\wxconfigtool.exe |
234 | ||
235 | $(OBJS)\wxconfigtool.exe: $(WXCONFIGTOOL_OBJECTS) $(OBJS)\wxconfigtool_sample_rc.o | |
3b2cb431 | 236 | $(CXX) -o $@ $(WXCONFIGTOOL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 DE |
237 | |
238 | data: | |
239 | if not exist $(OBJS) mkdir $(OBJS) | |
240 | for %%f in (wxwin250.wxs) do if not exist $(OBJS)\%%f copy .\..\configs\%%f $(OBJS) | |
241 | ||
242 | $(OBJS)\wxconfigtool_sample_rc.o: ./../../../samples/sample.rc | |
cf9b63b3 | 243 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../samples |
b17c1746 DE |
244 | |
245 | $(OBJS)\wxconfigtool_wxconfigtool.o: ./wxconfigtool.cpp | |
0d90d6ea | 246 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 | 247 | |
1c3a6972 | 248 | $(OBJS)\wxconfigtool_appsettings.o: ./appsettings.cpp |
0d90d6ea | 249 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 250 | |
1c3a6972 | 251 | $(OBJS)\wxconfigtool_configitem.o: ./configitem.cpp |
0d90d6ea | 252 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 253 | |
1c3a6972 | 254 | $(OBJS)\wxconfigtool_configitemselector.o: ./configitemselector.cpp |
0d90d6ea | 255 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 256 | |
1c3a6972 | 257 | $(OBJS)\wxconfigtool_configtooldoc.o: ./configtooldoc.cpp |
0d90d6ea | 258 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 259 | |
1c3a6972 | 260 | $(OBJS)\wxconfigtool_configtoolview.o: ./configtoolview.cpp |
0d90d6ea | 261 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 262 | |
1c3a6972 | 263 | $(OBJS)\wxconfigtool_configtree.o: ./configtree.cpp |
0d90d6ea | 264 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 265 | |
1c3a6972 | 266 | $(OBJS)\wxconfigtool_custompropertydialog.o: ./custompropertydialog.cpp |
0d90d6ea | 267 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 268 | |
1c3a6972 | 269 | $(OBJS)\wxconfigtool_htmlparser.o: ./htmlparser.cpp |
0d90d6ea | 270 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 271 | |
1c3a6972 | 272 | $(OBJS)\wxconfigtool_mainframe.o: ./mainframe.cpp |
0d90d6ea | 273 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 274 | |
1c3a6972 | 275 | $(OBJS)\wxconfigtool_propeditor.o: ./propeditor.cpp |
0d90d6ea | 276 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 277 | |
1c3a6972 | 278 | $(OBJS)\wxconfigtool_property.o: ./property.cpp |
0d90d6ea | 279 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 280 | |
1c3a6972 | 281 | $(OBJS)\wxconfigtool_settingsdialog.o: ./settingsdialog.cpp |
0d90d6ea | 282 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 283 | |
1c3a6972 | 284 | $(OBJS)\wxconfigtool_utils.o: ./utils.cpp |
0d90d6ea | 285 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $< |
4b20974a | 286 | |
4b20974a | 287 | .PHONY: all clean data |
162a956b | 288 | |
8c9f8f91 | 289 | |
0d90d6ea JS |
290 | # Dependencies tracking: |
291 | -include $(OBJS)/*.d |