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