]>
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 |
b17c1746 DE |
70 | ifeq ($(BUILD),debug) |
71 | __OPTIMIZEFLAG_2 = -O0 | |
4b20974a VS |
72 | endif |
73 | ifeq ($(BUILD),release) | |
b17c1746 | 74 | __OPTIMIZEFLAG_2 = -O2 |
4b20974a | 75 | endif |
b17c1746 DE |
76 | ifeq ($(USE_EXCEPTIONS),0) |
77 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
4b20974a | 78 | endif |
b17c1746 DE |
79 | ifeq ($(USE_EXCEPTIONS),1) |
80 | __EXCEPTIONSFLAG_4 = | |
4b20974a | 81 | endif |
b17c1746 DE |
82 | ifeq ($(USE_EXCEPTIONS),0) |
83 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
84 | endif | |
85 | ifeq ($(USE_EXCEPTIONS),1) | |
86 | __EXCEPTIONSFLAG_5 = | |
87 | endif | |
88 | ifeq ($(WXUNIV),1) | |
89 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
90 | endif | |
91 | ifeq ($(WXUNIV),1) | |
92 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
4b20974a VS |
93 | endif |
94 | ifeq ($(BUILD),debug) | |
95 | ifeq ($(DEBUG_FLAG),default) | |
96 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
97 | endif | |
98 | endif | |
99 | ifeq ($(DEBUG_FLAG),1) | |
100 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
101 | endif | |
102 | ifeq ($(BUILD),debug) | |
103 | ifeq ($(DEBUG_FLAG),default) | |
104 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
105 | endif | |
106 | endif | |
107 | ifeq ($(DEBUG_FLAG),1) | |
108 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
109 | endif | |
b17c1746 DE |
110 | ifeq ($(UNICODE),1) |
111 | __UNICODE_DEFINE_p = -D_UNICODE | |
112 | endif | |
113 | ifeq ($(UNICODE),1) | |
114 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
115 | endif | |
4b20974a VS |
116 | ifeq ($(SHARED),1) |
117 | __DLLFLAG_p = -DWXUSINGDLL | |
118 | endif | |
119 | ifeq ($(SHARED),1) | |
120 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
121 | endif | |
b17c1746 DE |
122 | ifeq ($(MONOLITHIC),0) |
123 | __WXLIB_ADV_p = \ | |
c33fae85 | 124 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
a4ad36cd | 125 | endif |
b17c1746 DE |
126 | ifeq ($(MONOLITHIC),0) |
127 | __WXLIB_HTML_p = \ | |
c33fae85 | 128 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
a4ad36cd | 129 | endif |
b17c1746 DE |
130 | ifeq ($(MONOLITHIC),0) |
131 | __WXLIB_CORE_p = \ | |
c33fae85 | 132 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
a4ad36cd | 133 | endif |
b17c1746 | 134 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
135 | __WXLIB_XML_p = \ |
136 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
a4ad36cd | 137 | endif |
b17c1746 | 138 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
139 | __WXLIB_BASE_p = \ |
140 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
4b20974a | 141 | endif |
b17c1746 DE |
142 | ifeq ($(MONOLITHIC),1) |
143 | __WXLIB_MONO_p = \ | |
c33fae85 | 144 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
4b20974a VS |
145 | endif |
146 | ifeq ($(USE_GUI),1) | |
9c2d002b | 147 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
4b20974a | 148 | endif |
b17c1746 | 149 | ifeq ($(USE_GUI),1) |
9c2d002b | 150 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
4b20974a | 151 | endif |
b17c1746 | 152 | ifeq ($(USE_GUI),1) |
9c2d002b | 153 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
4b20974a VS |
154 | endif |
155 | ifeq ($(MSLU),1) | |
156 | __UNICOWS_LIB_p = -lunicows | |
157 | endif | |
b17c1746 DE |
158 | ifeq ($(SHARED),0) |
159 | LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG) | |
4b20974a | 160 | endif |
b17c1746 DE |
161 | ifeq ($(SHARED),1) |
162 | LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG) | |
4b20974a | 163 | endif |
b17c1746 DE |
164 | ifeq ($(BUILD),debug) |
165 | ifeq ($(DEBUG_INFO),default) | |
166 | __DEBUGINFO = -g | |
4b20974a | 167 | endif |
4b20974a | 168 | endif |
b17c1746 DE |
169 | ifeq ($(BUILD),release) |
170 | ifeq ($(DEBUG_INFO),default) | |
171 | __DEBUGINFO = | |
4b20974a | 172 | endif |
4b20974a | 173 | endif |
b17c1746 DE |
174 | ifeq ($(DEBUG_INFO),0) |
175 | __DEBUGINFO = | |
4b20974a | 176 | endif |
b17c1746 DE |
177 | ifeq ($(DEBUG_INFO),1) |
178 | __DEBUGINFO = -g | |
4b20974a VS |
179 | endif |
180 | ||
181 | ||
182 | all: $(OBJS) | |
183 | $(OBJS): | |
184 | -if not exist $(OBJS) mkdir $(OBJS) | |
185 | ||
186 | ### Targets: ### | |
187 | ||
188 | all: $(OBJS)\wxconfigtool.exe data | |
189 | ||
b17c1746 DE |
190 | clean: |
191 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
192 | -if exist $(OBJS)\wxconfigtool.exe del $(OBJS)\wxconfigtool.exe | |
193 | ||
194 | $(OBJS)\wxconfigtool.exe: $(WXCONFIGTOOL_OBJECTS) $(OBJS)\wxconfigtool_sample_rc.o | |
9c2d002b | 195 | $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 DE |
196 | |
197 | data: | |
198 | if not exist $(OBJS) mkdir $(OBJS) | |
199 | for %%f in (wxwin250.wxs) do if not exist $(OBJS)\%%f copy .\..\configs\%%f $(OBJS) | |
200 | ||
201 | $(OBJS)\wxconfigtool_sample_rc.o: ./../../../samples/sample.rc | |
202 | 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 | |
203 | ||
204 | $(OBJS)\wxconfigtool_wxconfigtool.o: ./wxconfigtool.cpp | |
205 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< | |
206 | ||
1c3a6972 | 207 | $(OBJS)\wxconfigtool_appsettings.o: ./appsettings.cpp |
4b20974a VS |
208 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
209 | ||
1c3a6972 | 210 | $(OBJS)\wxconfigtool_configitem.o: ./configitem.cpp |
4b20974a VS |
211 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
212 | ||
1c3a6972 | 213 | $(OBJS)\wxconfigtool_configitemselector.o: ./configitemselector.cpp |
4b20974a VS |
214 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
215 | ||
1c3a6972 | 216 | $(OBJS)\wxconfigtool_configtooldoc.o: ./configtooldoc.cpp |
4b20974a VS |
217 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
218 | ||
1c3a6972 | 219 | $(OBJS)\wxconfigtool_configtoolview.o: ./configtoolview.cpp |
4b20974a VS |
220 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
221 | ||
1c3a6972 | 222 | $(OBJS)\wxconfigtool_configtree.o: ./configtree.cpp |
4b20974a VS |
223 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
224 | ||
1c3a6972 | 225 | $(OBJS)\wxconfigtool_custompropertydialog.o: ./custompropertydialog.cpp |
4b20974a VS |
226 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
227 | ||
1c3a6972 | 228 | $(OBJS)\wxconfigtool_htmlparser.o: ./htmlparser.cpp |
4b20974a VS |
229 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
230 | ||
1c3a6972 | 231 | $(OBJS)\wxconfigtool_mainframe.o: ./mainframe.cpp |
4b20974a VS |
232 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
233 | ||
1c3a6972 | 234 | $(OBJS)\wxconfigtool_propeditor.o: ./propeditor.cpp |
4b20974a VS |
235 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
236 | ||
1c3a6972 | 237 | $(OBJS)\wxconfigtool_property.o: ./property.cpp |
4b20974a VS |
238 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
239 | ||
1c3a6972 | 240 | $(OBJS)\wxconfigtool_settingsdialog.o: ./settingsdialog.cpp |
4b20974a VS |
241 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
242 | ||
1c3a6972 | 243 | $(OBJS)\wxconfigtool_utils.o: ./utils.cpp |
4b20974a VS |
244 | $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $< |
245 | ||
4b20974a | 246 | .PHONY: all clean data |