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