]> git.saurik.com Git - wxWidgets.git/blob - utils/configtool/src/makefile.gcc
Clipboard usage fixes inspired by Tinderbox logs.
[wxWidgets.git] / utils / configtool / src / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 WX_RELEASE_NODOT = 26
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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)
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
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
64 ifeq ($(UNICODE),1)
65 WXUNICODEFLAG = u
66 endif
67 ifeq ($(WXUNIV),1)
68 WXUNIVNAME = univ
69 endif
70 ifeq ($(SHARED),1)
71 WXDLLFLAG = dll
72 endif
73 ifeq ($(SHARED),0)
74 LIBTYPE_SUFFIX = lib
75 endif
76 ifeq ($(SHARED),1)
77 LIBTYPE_SUFFIX = dll
78 endif
79 ifeq ($(MONOLITHIC),0)
80 EXTRALIBS_FOR_BASE =
81 endif
82 ifeq ($(MONOLITHIC),1)
83 EXTRALIBS_FOR_BASE =
84 endif
85 ifeq ($(BUILD),debug)
86 __OPTIMIZEFLAG_2 = -O0
87 endif
88 ifeq ($(BUILD),release)
89 __OPTIMIZEFLAG_2 = -O2
90 endif
91 ifeq ($(USE_RTTI),0)
92 __RTTIFLAG_5 = -fno-rtti
93 endif
94 ifeq ($(USE_RTTI),1)
95 __RTTIFLAG_5 =
96 endif
97 ifeq ($(USE_EXCEPTIONS),0)
98 __EXCEPTIONSFLAG_6 = -fno-exceptions
99 endif
100 ifeq ($(USE_EXCEPTIONS),1)
101 __EXCEPTIONSFLAG_6 =
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__
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
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
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
149 ifeq ($(SHARED),1)
150 __DLLFLAG_p = -DWXUSINGDLL
151 endif
152 ifeq ($(SHARED),1)
153 __DLLFLAG_p_1 = --define WXUSINGDLL
154 endif
155 ifeq ($(MONOLITHIC),0)
156 __WXLIB_ADV_p = \
157 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
158 endif
159 ifeq ($(MONOLITHIC),0)
160 __WXLIB_HTML_p = \
161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
162 endif
163 ifeq ($(MONOLITHIC),0)
164 __WXLIB_CORE_p = \
165 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
166 endif
167 ifeq ($(MONOLITHIC),0)
168 __WXLIB_XML_p = \
169 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
170 endif
171 ifeq ($(MONOLITHIC),0)
172 __WXLIB_BASE_p = \
173 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
174 endif
175 ifeq ($(MONOLITHIC),1)
176 __WXLIB_MONO_p = \
177 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
178 endif
179 ifeq ($(USE_GUI),1)
180 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
181 endif
182 ifeq ($(USE_GUI),1)
183 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
184 endif
185 ifeq ($(USE_GUI),1)
186 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
187 endif
188 ifeq ($(MSLU),1)
189 __UNICOWS_LIB_p = -lunicows
190 endif
191 ifeq ($(BUILD),debug)
192 ifeq ($(DEBUG_INFO),default)
193 __DEBUGINFO = -g
194 endif
195 endif
196 ifeq ($(BUILD),release)
197 ifeq ($(DEBUG_INFO),default)
198 __DEBUGINFO =
199 endif
200 endif
201 ifeq ($(DEBUG_INFO),0)
202 __DEBUGINFO =
203 endif
204 ifeq ($(DEBUG_INFO),1)
205 __DEBUGINFO = -g
206 endif
207 ifeq ($(USE_THREADS),0)
208 __THREADSFLAG =
209 endif
210 ifeq ($(USE_THREADS),1)
211 __THREADSFLAG = -mthreads
212 endif
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
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
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
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
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
236
237 $(OBJS)\wxconfigtool_wxconfigtool.o: ./wxconfigtool.cpp
238 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
239
240 $(OBJS)\wxconfigtool_appsettings.o: ./appsettings.cpp
241 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
242
243 $(OBJS)\wxconfigtool_configitem.o: ./configitem.cpp
244 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
245
246 $(OBJS)\wxconfigtool_configitemselector.o: ./configitemselector.cpp
247 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
248
249 $(OBJS)\wxconfigtool_configtooldoc.o: ./configtooldoc.cpp
250 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
251
252 $(OBJS)\wxconfigtool_configtoolview.o: ./configtoolview.cpp
253 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
254
255 $(OBJS)\wxconfigtool_configtree.o: ./configtree.cpp
256 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
257
258 $(OBJS)\wxconfigtool_custompropertydialog.o: ./custompropertydialog.cpp
259 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
260
261 $(OBJS)\wxconfigtool_htmlparser.o: ./htmlparser.cpp
262 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
263
264 $(OBJS)\wxconfigtool_mainframe.o: ./mainframe.cpp
265 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
266
267 $(OBJS)\wxconfigtool_propeditor.o: ./propeditor.cpp
268 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
269
270 $(OBJS)\wxconfigtool_property.o: ./property.cpp
271 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
272
273 $(OBJS)\wxconfigtool_settingsdialog.o: ./settingsdialog.cpp
274 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
275
276 $(OBJS)\wxconfigtool_utils.o: ./utils.cpp
277 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
278
279 .PHONY: all clean data
280
281