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