]> git.saurik.com Git - wxWidgets.git/blame - utils/configtool/src/makefile.gcc
Script updates
[wxWidgets.git] / utils / configtool / src / makefile.gcc
CommitLineData
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
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
4b20974a
VS
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
20WXCONFIGTOOL_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
25WXCONFIGTOOL_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
44ifeq ($(GCC_VERSION),2.95)
45GCCFLAGS = -fvtable-thunks
46endif
4b20974a
VS
47ifeq ($(USE_GUI),0)
48PORTNAME = base
49endif
50ifeq ($(USE_GUI),1)
51PORTNAME = msw
52endif
53ifeq ($(BUILD),debug)
54ifeq ($(DEBUG_FLAG),default)
55WXDEBUGFLAG = d
56endif
57endif
58ifeq ($(DEBUG_FLAG),1)
59WXDEBUGFLAG = d
60endif
4b20974a
VS
61ifeq ($(UNICODE),1)
62WXUNICODEFLAG = u
63endif
64ifeq ($(WXUNIV),1)
65WXUNIVNAME = univ
66endif
b17c1746
DE
67ifeq ($(SHARED),1)
68WXDLLFLAG = dll
4b20974a 69endif
b17c1746
DE
70ifeq ($(BUILD),debug)
71__OPTIMIZEFLAG_2 = -O0
4b20974a
VS
72endif
73ifeq ($(BUILD),release)
b17c1746 74__OPTIMIZEFLAG_2 = -O2
4b20974a 75endif
b17c1746
DE
76ifeq ($(USE_EXCEPTIONS),0)
77__EXCEPTIONSFLAG_4 = -fno-rtti
4b20974a 78endif
b17c1746
DE
79ifeq ($(USE_EXCEPTIONS),1)
80__EXCEPTIONSFLAG_4 =
4b20974a 81endif
b17c1746
DE
82ifeq ($(USE_EXCEPTIONS),0)
83__EXCEPTIONSFLAG_5 = -fno-exceptions
84endif
85ifeq ($(USE_EXCEPTIONS),1)
86__EXCEPTIONSFLAG_5 =
87endif
88ifeq ($(WXUNIV),1)
89__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
90endif
91ifeq ($(WXUNIV),1)
92__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
4b20974a
VS
93endif
94ifeq ($(BUILD),debug)
95ifeq ($(DEBUG_FLAG),default)
96__DEBUG_DEFINE_p = -D__WXDEBUG__
97endif
98endif
99ifeq ($(DEBUG_FLAG),1)
100__DEBUG_DEFINE_p = -D__WXDEBUG__
101endif
102ifeq ($(BUILD),debug)
103ifeq ($(DEBUG_FLAG),default)
104__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
105endif
106endif
107ifeq ($(DEBUG_FLAG),1)
108__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
109endif
b17c1746
DE
110ifeq ($(UNICODE),1)
111__UNICODE_DEFINE_p = -D_UNICODE
112endif
113ifeq ($(UNICODE),1)
114__UNICODE_DEFINE_p_1 = --define _UNICODE
115endif
4b20974a
VS
116ifeq ($(SHARED),1)
117__DLLFLAG_p = -DWXUSINGDLL
118endif
119ifeq ($(SHARED),1)
120__DLLFLAG_p_1 = --define WXUSINGDLL
121endif
b17c1746
DE
122ifeq ($(MONOLITHIC),0)
123__WXLIB_ADV_p = \
c33fae85 124 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 125endif
b17c1746
DE
126ifeq ($(MONOLITHIC),0)
127__WXLIB_HTML_p = \
c33fae85 128 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 129endif
b17c1746
DE
130ifeq ($(MONOLITHIC),0)
131__WXLIB_CORE_p = \
c33fae85 132 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 133endif
b17c1746 134ifeq ($(MONOLITHIC),0)
c33fae85
RN
135__WXLIB_XML_p = \
136 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
a4ad36cd 137endif
b17c1746 138ifeq ($(MONOLITHIC),0)
c33fae85
RN
139__WXLIB_BASE_p = \
140 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
4b20974a 141endif
b17c1746
DE
142ifeq ($(MONOLITHIC),1)
143__WXLIB_MONO_p = \
c33fae85 144 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
4b20974a
VS
145endif
146ifeq ($(USE_GUI),1)
9c2d002b 147__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
4b20974a 148endif
b17c1746 149ifeq ($(USE_GUI),1)
9c2d002b 150__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
4b20974a 151endif
b17c1746 152ifeq ($(USE_GUI),1)
9c2d002b 153__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
4b20974a
VS
154endif
155ifeq ($(MSLU),1)
156__UNICOWS_LIB_p = -lunicows
157endif
b17c1746
DE
158ifeq ($(SHARED),0)
159LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
4b20974a 160endif
b17c1746
DE
161ifeq ($(SHARED),1)
162LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
4b20974a 163endif
b17c1746
DE
164ifeq ($(BUILD),debug)
165ifeq ($(DEBUG_INFO),default)
166__DEBUGINFO = -g
4b20974a 167endif
4b20974a 168endif
b17c1746
DE
169ifeq ($(BUILD),release)
170ifeq ($(DEBUG_INFO),default)
171__DEBUGINFO =
4b20974a 172endif
4b20974a 173endif
b17c1746
DE
174ifeq ($(DEBUG_INFO),0)
175__DEBUGINFO =
4b20974a 176endif
b17c1746
DE
177ifeq ($(DEBUG_INFO),1)
178__DEBUGINFO = -g
4b20974a
VS
179endif
180
181
182all: $(OBJS)
183$(OBJS):
184 -if not exist $(OBJS) mkdir $(OBJS)
185
186### Targets: ###
187
188all: $(OBJS)\wxconfigtool.exe data
189
b17c1746
DE
190clean:
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
197data:
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