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