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