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