]> git.saurik.com Git - wxWidgets.git/blame - utils/configtool/src/makefile.gcc
blind compilation fix for daily builds error
[wxWidgets.git] / utils / configtool / src / makefile.gcc
CommitLineData
4b20974a
VS
1# =========================================================================
2# This makefile was generated by
cf9b63b3 3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4b20974a
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4cbcfb73 16WX_RELEASE_NODOT = 27
4b20974a
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
162a956b 19LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
4b20974a
VS
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22WXCONFIGTOOL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
cf9b63b3 26 -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. $(__DLLFLAG_p) \
2113bc77
MW
27 -I.\..\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
28 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
4b20974a
VS
29WXCONFIGTOOL_OBJECTS = \
30 $(OBJS)\wxconfigtool_sample_rc.o \
31 $(OBJS)\wxconfigtool_wxconfigtool.o \
32 $(OBJS)\wxconfigtool_appsettings.o \
33 $(OBJS)\wxconfigtool_configitem.o \
34 $(OBJS)\wxconfigtool_configitemselector.o \
35 $(OBJS)\wxconfigtool_configtooldoc.o \
36 $(OBJS)\wxconfigtool_configtoolview.o \
37 $(OBJS)\wxconfigtool_configtree.o \
38 $(OBJS)\wxconfigtool_custompropertydialog.o \
39 $(OBJS)\wxconfigtool_htmlparser.o \
40 $(OBJS)\wxconfigtool_mainframe.o \
41 $(OBJS)\wxconfigtool_propeditor.o \
42 $(OBJS)\wxconfigtool_property.o \
43 $(OBJS)\wxconfigtool_settingsdialog.o \
44 $(OBJS)\wxconfigtool_utils.o
45
46### Conditionally set variables: ###
47
48ifeq ($(GCC_VERSION),2.95)
49GCCFLAGS = -fvtable-thunks
50endif
4b20974a
VS
51ifeq ($(USE_GUI),0)
52PORTNAME = base
53endif
54ifeq ($(USE_GUI),1)
55PORTNAME = msw
56endif
57ifeq ($(BUILD),debug)
58ifeq ($(DEBUG_FLAG),default)
59WXDEBUGFLAG = d
60endif
61endif
62ifeq ($(DEBUG_FLAG),1)
63WXDEBUGFLAG = d
64endif
4b20974a
VS
65ifeq ($(UNICODE),1)
66WXUNICODEFLAG = u
67endif
68ifeq ($(WXUNIV),1)
69WXUNIVNAME = univ
70endif
b17c1746
DE
71ifeq ($(SHARED),1)
72WXDLLFLAG = dll
4b20974a 73endif
162a956b
JS
74ifeq ($(SHARED),0)
75LIBTYPE_SUFFIX = lib
76endif
77ifeq ($(SHARED),1)
78LIBTYPE_SUFFIX = dll
79endif
dd65d8c8
RN
80ifeq ($(MONOLITHIC),0)
81EXTRALIBS_FOR_BASE =
82endif
83ifeq ($(MONOLITHIC),1)
84EXTRALIBS_FOR_BASE =
85endif
b17c1746
DE
86ifeq ($(BUILD),debug)
87__OPTIMIZEFLAG_2 = -O0
4b20974a
VS
88endif
89ifeq ($(BUILD),release)
b17c1746 90__OPTIMIZEFLAG_2 = -O2
4b20974a 91endif
8c9f8f91
JS
92ifeq ($(USE_RTTI),0)
93__RTTIFLAG_5 = -fno-rtti
4b20974a 94endif
8c9f8f91
JS
95ifeq ($(USE_RTTI),1)
96__RTTIFLAG_5 =
4b20974a 97endif
b17c1746 98ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 99__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
100endif
101ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 102__EXCEPTIONSFLAG_6 =
b17c1746
DE
103endif
104ifeq ($(WXUNIV),1)
105__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
106endif
107ifeq ($(WXUNIV),1)
108__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
4b20974a
VS
109endif
110ifeq ($(BUILD),debug)
111ifeq ($(DEBUG_FLAG),default)
112__DEBUG_DEFINE_p = -D__WXDEBUG__
113endif
114endif
115ifeq ($(DEBUG_FLAG),1)
116__DEBUG_DEFINE_p = -D__WXDEBUG__
117endif
118ifeq ($(BUILD),debug)
119ifeq ($(DEBUG_FLAG),default)
120__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
121endif
122endif
123ifeq ($(DEBUG_FLAG),1)
124__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
125endif
8c9f8f91
JS
126ifeq ($(USE_EXCEPTIONS),0)
127__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
128endif
129ifeq ($(USE_EXCEPTIONS),0)
130__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
131endif
132ifeq ($(USE_RTTI),0)
133__RTTI_DEFINE_p = -DwxNO_RTTI
134endif
135ifeq ($(USE_RTTI),0)
136__RTTI_DEFINE_p_1 = --define wxNO_RTTI
137endif
138ifeq ($(USE_THREADS),0)
139__THREAD_DEFINE_p = -DwxNO_THREADS
140endif
141ifeq ($(USE_THREADS),0)
142__THREAD_DEFINE_p_1 = --define wxNO_THREADS
143endif
b17c1746
DE
144ifeq ($(UNICODE),1)
145__UNICODE_DEFINE_p = -D_UNICODE
146endif
147ifeq ($(UNICODE),1)
148__UNICODE_DEFINE_p_1 = --define _UNICODE
149endif
2113bc77
MW
150ifeq ($(MSLU),1)
151__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
152endif
153ifeq ($(MSLU),1)
154__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
155endif
4b20974a
VS
156ifeq ($(SHARED),1)
157__DLLFLAG_p = -DWXUSINGDLL
158endif
159ifeq ($(SHARED),1)
160__DLLFLAG_p_1 = --define WXUSINGDLL
161endif
b17c1746
DE
162ifeq ($(MONOLITHIC),0)
163__WXLIB_ADV_p = \
c33fae85 164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 165endif
b17c1746
DE
166ifeq ($(MONOLITHIC),0)
167__WXLIB_HTML_p = \
c33fae85 168 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 169endif
b17c1746
DE
170ifeq ($(MONOLITHIC),0)
171__WXLIB_CORE_p = \
c33fae85 172 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 173endif
b17c1746 174ifeq ($(MONOLITHIC),0)
c33fae85
RN
175__WXLIB_XML_p = \
176 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
a4ad36cd 177endif
b17c1746 178ifeq ($(MONOLITHIC),0)
c33fae85
RN
179__WXLIB_BASE_p = \
180 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
4b20974a 181endif
b17c1746
DE
182ifeq ($(MONOLITHIC),1)
183__WXLIB_MONO_p = \
c33fae85 184 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
4b20974a
VS
185endif
186ifeq ($(USE_GUI),1)
9c2d002b 187__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
4b20974a 188endif
b17c1746 189ifeq ($(USE_GUI),1)
9c2d002b 190__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
4b20974a 191endif
b17c1746 192ifeq ($(USE_GUI),1)
9c2d002b 193__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
4b20974a
VS
194endif
195ifeq ($(MSLU),1)
196__UNICOWS_LIB_p = -lunicows
197endif
b17c1746
DE
198ifeq ($(BUILD),debug)
199ifeq ($(DEBUG_INFO),default)
200__DEBUGINFO = -g
4b20974a 201endif
4b20974a 202endif
b17c1746
DE
203ifeq ($(BUILD),release)
204ifeq ($(DEBUG_INFO),default)
205__DEBUGINFO =
4b20974a 206endif
4b20974a 207endif
b17c1746
DE
208ifeq ($(DEBUG_INFO),0)
209__DEBUGINFO =
4b20974a 210endif
b17c1746
DE
211ifeq ($(DEBUG_INFO),1)
212__DEBUGINFO = -g
4b20974a 213endif
8c9f8f91
JS
214ifeq ($(USE_THREADS),0)
215__THREADSFLAG =
216endif
217ifeq ($(USE_THREADS),1)
218__THREADSFLAG = -mthreads
219endif
4b20974a
VS
220
221
222all: $(OBJS)
223$(OBJS):
224 -if not exist $(OBJS) mkdir $(OBJS)
225
226### Targets: ###
227
228all: $(OBJS)\wxconfigtool.exe data
229
b17c1746
DE
230clean:
231 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 232 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
233 -if exist $(OBJS)\wxconfigtool.exe del $(OBJS)\wxconfigtool.exe
234
235$(OBJS)\wxconfigtool.exe: $(WXCONFIGTOOL_OBJECTS) $(OBJS)\wxconfigtool_sample_rc.o
3b2cb431 236 $(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
b17c1746
DE
237
238data:
239 if not exist $(OBJS) mkdir $(OBJS)
240 for %%f in (wxwin250.wxs) do if not exist $(OBJS)\%%f copy .\..\configs\%%f $(OBJS)
241
242$(OBJS)\wxconfigtool_sample_rc.o: ./../../../samples/sample.rc
cf9b63b3 243 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) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../samples
b17c1746
DE
244
245$(OBJS)\wxconfigtool_wxconfigtool.o: ./wxconfigtool.cpp
0d90d6ea 246 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
b17c1746 247
1c3a6972 248$(OBJS)\wxconfigtool_appsettings.o: ./appsettings.cpp
0d90d6ea 249 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 250
1c3a6972 251$(OBJS)\wxconfigtool_configitem.o: ./configitem.cpp
0d90d6ea 252 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 253
1c3a6972 254$(OBJS)\wxconfigtool_configitemselector.o: ./configitemselector.cpp
0d90d6ea 255 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 256
1c3a6972 257$(OBJS)\wxconfigtool_configtooldoc.o: ./configtooldoc.cpp
0d90d6ea 258 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 259
1c3a6972 260$(OBJS)\wxconfigtool_configtoolview.o: ./configtoolview.cpp
0d90d6ea 261 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 262
1c3a6972 263$(OBJS)\wxconfigtool_configtree.o: ./configtree.cpp
0d90d6ea 264 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 265
1c3a6972 266$(OBJS)\wxconfigtool_custompropertydialog.o: ./custompropertydialog.cpp
0d90d6ea 267 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 268
1c3a6972 269$(OBJS)\wxconfigtool_htmlparser.o: ./htmlparser.cpp
0d90d6ea 270 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 271
1c3a6972 272$(OBJS)\wxconfigtool_mainframe.o: ./mainframe.cpp
0d90d6ea 273 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 274
1c3a6972 275$(OBJS)\wxconfigtool_propeditor.o: ./propeditor.cpp
0d90d6ea 276 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 277
1c3a6972 278$(OBJS)\wxconfigtool_property.o: ./property.cpp
0d90d6ea 279 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 280
1c3a6972 281$(OBJS)\wxconfigtool_settingsdialog.o: ./settingsdialog.cpp
0d90d6ea 282 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 283
1c3a6972 284$(OBJS)\wxconfigtool_utils.o: ./utils.cpp
0d90d6ea 285 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $(CPPDEPS) $<
4b20974a 286
4b20974a 287.PHONY: all clean data
162a956b 288
8c9f8f91 289
0d90d6ea
JS
290# Dependencies tracking:
291-include $(OBJS)/*.d