]> git.saurik.com Git - wxWidgets.git/blame - utils/configtool/src/makefile.gcc
Clipboard usage fixes inspired by Tinderbox logs.
[wxWidgets.git] / utils / configtool / src / makefile.gcc
CommitLineData
4b20974a
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (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
4818141b 15WX_RELEASE_NODOT = 26
4b20974a
VS
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
162a956b 18LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
4b20974a
VS
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
21WXCONFIGTOOL_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)
4b20974a
VS
28WXCONFIGTOOL_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
47ifeq ($(GCC_VERSION),2.95)
48GCCFLAGS = -fvtable-thunks
49endif
4b20974a
VS
50ifeq ($(USE_GUI),0)
51PORTNAME = base
52endif
53ifeq ($(USE_GUI),1)
54PORTNAME = msw
55endif
56ifeq ($(BUILD),debug)
57ifeq ($(DEBUG_FLAG),default)
58WXDEBUGFLAG = d
59endif
60endif
61ifeq ($(DEBUG_FLAG),1)
62WXDEBUGFLAG = d
63endif
4b20974a
VS
64ifeq ($(UNICODE),1)
65WXUNICODEFLAG = u
66endif
67ifeq ($(WXUNIV),1)
68WXUNIVNAME = univ
69endif
b17c1746
DE
70ifeq ($(SHARED),1)
71WXDLLFLAG = dll
4b20974a 72endif
162a956b
JS
73ifeq ($(SHARED),0)
74LIBTYPE_SUFFIX = lib
75endif
76ifeq ($(SHARED),1)
77LIBTYPE_SUFFIX = dll
78endif
dd65d8c8
RN
79ifeq ($(MONOLITHIC),0)
80EXTRALIBS_FOR_BASE =
81endif
82ifeq ($(MONOLITHIC),1)
83EXTRALIBS_FOR_BASE =
84endif
b17c1746
DE
85ifeq ($(BUILD),debug)
86__OPTIMIZEFLAG_2 = -O0
4b20974a
VS
87endif
88ifeq ($(BUILD),release)
b17c1746 89__OPTIMIZEFLAG_2 = -O2
4b20974a 90endif
8c9f8f91
JS
91ifeq ($(USE_RTTI),0)
92__RTTIFLAG_5 = -fno-rtti
4b20974a 93endif
8c9f8f91
JS
94ifeq ($(USE_RTTI),1)
95__RTTIFLAG_5 =
4b20974a 96endif
b17c1746 97ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 98__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
99endif
100ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 101__EXCEPTIONSFLAG_6 =
b17c1746
DE
102endif
103ifeq ($(WXUNIV),1)
104__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
105endif
106ifeq ($(WXUNIV),1)
107__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
4b20974a
VS
108endif
109ifeq ($(BUILD),debug)
110ifeq ($(DEBUG_FLAG),default)
111__DEBUG_DEFINE_p = -D__WXDEBUG__
112endif
113endif
114ifeq ($(DEBUG_FLAG),1)
115__DEBUG_DEFINE_p = -D__WXDEBUG__
116endif
117ifeq ($(BUILD),debug)
118ifeq ($(DEBUG_FLAG),default)
119__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
120endif
121endif
122ifeq ($(DEBUG_FLAG),1)
123__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
124endif
8c9f8f91
JS
125ifeq ($(USE_EXCEPTIONS),0)
126__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
127endif
128ifeq ($(USE_EXCEPTIONS),0)
129__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
130endif
131ifeq ($(USE_RTTI),0)
132__RTTI_DEFINE_p = -DwxNO_RTTI
133endif
134ifeq ($(USE_RTTI),0)
135__RTTI_DEFINE_p_1 = --define wxNO_RTTI
136endif
137ifeq ($(USE_THREADS),0)
138__THREAD_DEFINE_p = -DwxNO_THREADS
139endif
140ifeq ($(USE_THREADS),0)
141__THREAD_DEFINE_p_1 = --define wxNO_THREADS
142endif
b17c1746
DE
143ifeq ($(UNICODE),1)
144__UNICODE_DEFINE_p = -D_UNICODE
145endif
146ifeq ($(UNICODE),1)
147__UNICODE_DEFINE_p_1 = --define _UNICODE
148endif
4b20974a
VS
149ifeq ($(SHARED),1)
150__DLLFLAG_p = -DWXUSINGDLL
151endif
152ifeq ($(SHARED),1)
153__DLLFLAG_p_1 = --define WXUSINGDLL
154endif
b17c1746
DE
155ifeq ($(MONOLITHIC),0)
156__WXLIB_ADV_p = \
c33fae85 157 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 158endif
b17c1746
DE
159ifeq ($(MONOLITHIC),0)
160__WXLIB_HTML_p = \
c33fae85 161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 162endif
b17c1746
DE
163ifeq ($(MONOLITHIC),0)
164__WXLIB_CORE_p = \
c33fae85 165 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 166endif
b17c1746 167ifeq ($(MONOLITHIC),0)
c33fae85
RN
168__WXLIB_XML_p = \
169 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
a4ad36cd 170endif
b17c1746 171ifeq ($(MONOLITHIC),0)
c33fae85
RN
172__WXLIB_BASE_p = \
173 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
4b20974a 174endif
b17c1746
DE
175ifeq ($(MONOLITHIC),1)
176__WXLIB_MONO_p = \
c33fae85 177 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
4b20974a
VS
178endif
179ifeq ($(USE_GUI),1)
9c2d002b 180__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
4b20974a 181endif
b17c1746 182ifeq ($(USE_GUI),1)
9c2d002b 183__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
4b20974a 184endif
b17c1746 185ifeq ($(USE_GUI),1)
9c2d002b 186__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
4b20974a
VS
187endif
188ifeq ($(MSLU),1)
189__UNICOWS_LIB_p = -lunicows
190endif
b17c1746
DE
191ifeq ($(BUILD),debug)
192ifeq ($(DEBUG_INFO),default)
193__DEBUGINFO = -g
4b20974a 194endif
4b20974a 195endif
b17c1746
DE
196ifeq ($(BUILD),release)
197ifeq ($(DEBUG_INFO),default)
198__DEBUGINFO =
4b20974a 199endif
4b20974a 200endif
b17c1746
DE
201ifeq ($(DEBUG_INFO),0)
202__DEBUGINFO =
4b20974a 203endif
b17c1746
DE
204ifeq ($(DEBUG_INFO),1)
205__DEBUGINFO = -g
4b20974a 206endif
8c9f8f91
JS
207ifeq ($(USE_THREADS),0)
208__THREADSFLAG =
209endif
210ifeq ($(USE_THREADS),1)
211__THREADSFLAG = -mthreads
212endif
4b20974a
VS
213
214
215all: $(OBJS)
216$(OBJS):
217 -if not exist $(OBJS) mkdir $(OBJS)
218
219### Targets: ###
220
221all: $(OBJS)\wxconfigtool.exe data
222
b17c1746
DE
223clean:
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
8c9f8f91 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
b17c1746
DE
229
230data:
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
8c9f8f91 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
b17c1746
DE
236
237$(OBJS)\wxconfigtool_wxconfigtool.o: ./wxconfigtool.cpp
238 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
239
1c3a6972 240$(OBJS)\wxconfigtool_appsettings.o: ./appsettings.cpp
4b20974a
VS
241 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
242
1c3a6972 243$(OBJS)\wxconfigtool_configitem.o: ./configitem.cpp
4b20974a
VS
244 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
245
1c3a6972 246$(OBJS)\wxconfigtool_configitemselector.o: ./configitemselector.cpp
4b20974a
VS
247 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
248
1c3a6972 249$(OBJS)\wxconfigtool_configtooldoc.o: ./configtooldoc.cpp
4b20974a
VS
250 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
251
1c3a6972 252$(OBJS)\wxconfigtool_configtoolview.o: ./configtoolview.cpp
4b20974a
VS
253 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
254
1c3a6972 255$(OBJS)\wxconfigtool_configtree.o: ./configtree.cpp
4b20974a
VS
256 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
257
1c3a6972 258$(OBJS)\wxconfigtool_custompropertydialog.o: ./custompropertydialog.cpp
4b20974a
VS
259 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
260
1c3a6972 261$(OBJS)\wxconfigtool_htmlparser.o: ./htmlparser.cpp
4b20974a
VS
262 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
263
1c3a6972 264$(OBJS)\wxconfigtool_mainframe.o: ./mainframe.cpp
4b20974a
VS
265 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
266
1c3a6972 267$(OBJS)\wxconfigtool_propeditor.o: ./propeditor.cpp
4b20974a
VS
268 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
269
1c3a6972 270$(OBJS)\wxconfigtool_property.o: ./property.cpp
4b20974a
VS
271 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
272
1c3a6972 273$(OBJS)\wxconfigtool_settingsdialog.o: ./settingsdialog.cpp
4b20974a
VS
274 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
275
1c3a6972 276$(OBJS)\wxconfigtool_utils.o: ./utils.cpp
4b20974a
VS
277 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
278
4b20974a 279.PHONY: all clean data
162a956b 280
8c9f8f91 281