]> git.saurik.com Git - wxWidgets.git/blame - utils/configtool/src/makefile.gcc
Fixed compile error (seen on OS/2).
[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 \
22 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples $(CXXFLAGS)
23WXCONFIGTOOL_OBJECTS = \
24 $(OBJS)\wxconfigtool_sample_rc.o \
25 $(OBJS)\wxconfigtool_wxconfigtool.o \
26 $(OBJS)\wxconfigtool_appsettings.o \
27 $(OBJS)\wxconfigtool_configitem.o \
28 $(OBJS)\wxconfigtool_configitemselector.o \
29 $(OBJS)\wxconfigtool_configtooldoc.o \
30 $(OBJS)\wxconfigtool_configtoolview.o \
31 $(OBJS)\wxconfigtool_configtree.o \
32 $(OBJS)\wxconfigtool_custompropertydialog.o \
33 $(OBJS)\wxconfigtool_htmlparser.o \
34 $(OBJS)\wxconfigtool_mainframe.o \
35 $(OBJS)\wxconfigtool_propeditor.o \
36 $(OBJS)\wxconfigtool_property.o \
37 $(OBJS)\wxconfigtool_settingsdialog.o \
38 $(OBJS)\wxconfigtool_utils.o
39
40### Conditionally set variables: ###
41
42ifeq ($(GCC_VERSION),2.95)
43GCCFLAGS = -fvtable-thunks
44endif
45ifeq ($(SHARED),0)
46LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
47endif
48ifeq ($(SHARED),1)
49LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
50endif
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
65ifeq ($(SHARED),1)
66WXDLLFLAG = dll
67endif
68ifeq ($(UNICODE),1)
69WXUNICODEFLAG = u
70endif
71ifeq ($(WXUNIV),1)
72WXUNIVNAME = univ
73endif
74ifeq ($(BUILD),debug)
75ifeq ($(DEBUG_INFO),default)
76__DEBUGINFO = -g
77endif
78endif
79ifeq ($(BUILD),release)
80ifeq ($(DEBUG_INFO),default)
81__DEBUGINFO =
82endif
83endif
84ifeq ($(DEBUG_INFO),0)
85__DEBUGINFO =
86endif
87ifeq ($(DEBUG_INFO),1)
88__DEBUGINFO = -g
89endif
90ifeq ($(BUILD),debug)
91ifeq ($(DEBUG_FLAG),default)
92__DEBUG_DEFINE_p = -D__WXDEBUG__
93endif
94endif
95ifeq ($(DEBUG_FLAG),1)
96__DEBUG_DEFINE_p = -D__WXDEBUG__
97endif
98ifeq ($(BUILD),debug)
99ifeq ($(DEBUG_FLAG),default)
100__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
101endif
102endif
103ifeq ($(DEBUG_FLAG),1)
104__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
105endif
106ifeq ($(SHARED),1)
107__DLLFLAG_p = -DWXUSINGDLL
108endif
109ifeq ($(SHARED),1)
110__DLLFLAG_p_1 = --define WXUSINGDLL
111endif
112ifeq ($(USE_GUI),1)
113__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
114endif
115ifeq ($(USE_GUI),1)
116__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
117endif
118ifeq ($(USE_GUI),1)
119__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
120endif
121ifeq ($(BUILD),debug)
122__OPTIMIZEFLAG_2 = -O0
123endif
124ifeq ($(BUILD),release)
125__OPTIMIZEFLAG_2 = -O2
126endif
127ifeq ($(UNICODE),1)
128__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
129endif
130ifeq ($(UNICODE),1)
131__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1
132endif
133ifeq ($(MSLU),1)
134__UNICOWS_LIB_p = -lunicows
135endif
136ifeq ($(MONOLITHIC),0)
137__WXLIB_ADV_p = \
138 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv
139endif
140ifeq ($(MONOLITHIC),0)
141__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
142endif
143ifeq ($(MONOLITHIC),0)
144__WXLIB_CORE_p = \
145 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
146endif
147ifeq ($(MONOLITHIC),0)
148__WXLIB_HTML_p = \
149 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
150endif
151ifeq ($(MONOLITHIC),1)
152__WXLIB_MONO_p = \
153 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
154endif
155ifeq ($(MONOLITHIC),0)
156__WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml
157endif
158ifeq ($(WXUNIV),1)
159__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160endif
161ifeq ($(WXUNIV),1)
162__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
163endif
164
165
166all: $(OBJS)
167$(OBJS):
168 -if not exist $(OBJS) mkdir $(OBJS)
169
170### Targets: ###
171
172all: $(OBJS)\wxconfigtool.exe data
173
174$(OBJS)\wxconfigtool_appsettings.o: .\appsettings.cpp
175 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
176
177$(OBJS)\wxconfigtool_configitem.o: .\configitem.cpp
178 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
179
180$(OBJS)\wxconfigtool_configitemselector.o: .\configitemselector.cpp
181 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
182
183$(OBJS)\wxconfigtool_configtooldoc.o: .\configtooldoc.cpp
184 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
185
186$(OBJS)\wxconfigtool_configtoolview.o: .\configtoolview.cpp
187 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
188
189$(OBJS)\wxconfigtool_configtree.o: .\configtree.cpp
190 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
191
192$(OBJS)\wxconfigtool_custompropertydialog.o: .\custompropertydialog.cpp
193 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
194
195$(OBJS)\wxconfigtool_htmlparser.o: .\htmlparser.cpp
196 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
197
198$(OBJS)\wxconfigtool_mainframe.o: .\mainframe.cpp
199 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
200
201$(OBJS)\wxconfigtool_propeditor.o: .\propeditor.cpp
202 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
203
204$(OBJS)\wxconfigtool_property.o: .\property.cpp
205 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
206
207$(OBJS)\wxconfigtool_sample_rc.o: .\..\..\..\samples\sample.rc
208 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
209
210$(OBJS)\wxconfigtool_settingsdialog.o: .\settingsdialog.cpp
211 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
212
213$(OBJS)\wxconfigtool_utils.o: .\utils.cpp
214 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
215
216$(OBJS)\wxconfigtool_wxconfigtool.o: .\wxconfigtool.cpp
217 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
218
219clean:
220 -if exist $(OBJS)\*.o del $(OBJS)\*.o
221 -if exist $(OBJS)\wxconfigtool.exe del $(OBJS)\wxconfigtool.exe
222
223data:
224 if not exist $(OBJS) mkdir $(OBJS)
225 for %%f in (wxconfigtool.pjd ../configs/wxwin250.wxs) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
226
227$(OBJS)\wxconfigtool.exe: $(WXCONFIGTOOL_OBJECTS) $(OBJS)\wxconfigtool_sample_rc.o
228 $(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
229
230.PHONY: all clean data