]> git.saurik.com Git - wxWidgets.git/blob - utils/configtool/src/makefile.gcc
Baked bakefiles
[wxWidgets.git] / utils / configtool / src / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.2 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 WXCONFIGTOOL_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)
24 WXCONFIGTOOL_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
43 ifeq ($(GCC_VERSION),2.95)
44 GCCFLAGS = -fvtable-thunks
45 endif
46 ifeq ($(USE_GUI),0)
47 PORTNAME = base
48 endif
49 ifeq ($(USE_GUI),1)
50 PORTNAME = msw
51 endif
52 ifeq ($(BUILD),debug)
53 ifeq ($(DEBUG_FLAG),default)
54 WXDEBUGFLAG = d
55 endif
56 endif
57 ifeq ($(DEBUG_FLAG),1)
58 WXDEBUGFLAG = d
59 endif
60 ifeq ($(UNICODE),1)
61 WXUNICODEFLAG = u
62 endif
63 ifeq ($(WXUNIV),1)
64 WXUNIVNAME = univ
65 endif
66 ifeq ($(SHARED),1)
67 WXDLLFLAG = dll
68 endif
69 ifeq ($(BUILD),debug)
70 __OPTIMIZEFLAG_2 = -O0
71 endif
72 ifeq ($(BUILD),release)
73 __OPTIMIZEFLAG_2 = -O2
74 endif
75 ifeq ($(USE_EXCEPTIONS),0)
76 __EXCEPTIONSFLAG_4 = -fno-rtti
77 endif
78 ifeq ($(USE_EXCEPTIONS),1)
79 __EXCEPTIONSFLAG_4 =
80 endif
81 ifeq ($(USE_EXCEPTIONS),0)
82 __EXCEPTIONSFLAG_5 = -fno-exceptions
83 endif
84 ifeq ($(USE_EXCEPTIONS),1)
85 __EXCEPTIONSFLAG_5 =
86 endif
87 ifeq ($(WXUNIV),1)
88 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
89 endif
90 ifeq ($(WXUNIV),1)
91 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
92 endif
93 ifeq ($(BUILD),debug)
94 ifeq ($(DEBUG_FLAG),default)
95 __DEBUG_DEFINE_p = -D__WXDEBUG__
96 endif
97 endif
98 ifeq ($(DEBUG_FLAG),1)
99 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 endif
101 ifeq ($(BUILD),debug)
102 ifeq ($(DEBUG_FLAG),default)
103 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
104 endif
105 endif
106 ifeq ($(DEBUG_FLAG),1)
107 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108 endif
109 ifeq ($(UNICODE),1)
110 __UNICODE_DEFINE_p = -D_UNICODE
111 endif
112 ifeq ($(UNICODE),1)
113 __UNICODE_DEFINE_p_1 = --define _UNICODE
114 endif
115 ifeq ($(SHARED),1)
116 __DLLFLAG_p = -DWXUSINGDLL
117 endif
118 ifeq ($(SHARED),1)
119 __DLLFLAG_p_1 = --define WXUSINGDLL
120 endif
121 ifeq ($(MONOLITHIC),0)
122 __WXLIB_ADV_p = \
123 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv
124 endif
125 ifeq ($(MONOLITHIC),0)
126 __WXLIB_HTML_p = \
127 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
128 endif
129 ifeq ($(MONOLITHIC),0)
130 __WXLIB_CORE_p = \
131 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
132 endif
133 ifeq ($(MONOLITHIC),0)
134 __WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml
135 endif
136 ifeq ($(MONOLITHIC),0)
137 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
138 endif
139 ifeq ($(MONOLITHIC),1)
140 __WXLIB_MONO_p = \
141 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
142 endif
143 ifeq ($(USE_GUI),1)
144 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
145 endif
146 ifeq ($(USE_GUI),1)
147 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
148 endif
149 ifeq ($(USE_GUI),1)
150 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
151 endif
152 ifeq ($(MSLU),1)
153 __UNICOWS_LIB_p = -lunicows
154 endif
155 ifeq ($(SHARED),0)
156 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
157 endif
158 ifeq ($(SHARED),1)
159 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
160 endif
161 ifeq ($(BUILD),debug)
162 ifeq ($(DEBUG_INFO),default)
163 __DEBUGINFO = -g
164 endif
165 endif
166 ifeq ($(BUILD),release)
167 ifeq ($(DEBUG_INFO),default)
168 __DEBUGINFO =
169 endif
170 endif
171 ifeq ($(DEBUG_INFO),0)
172 __DEBUGINFO =
173 endif
174 ifeq ($(DEBUG_INFO),1)
175 __DEBUGINFO = -g
176 endif
177
178
179 all: $(OBJS)
180 $(OBJS):
181 -if not exist $(OBJS) mkdir $(OBJS)
182
183 ### Targets: ###
184
185 all: $(OBJS)\wxconfigtool.exe data
186
187 clean:
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 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
193
194 data:
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
204 $(OBJS)\wxconfigtool_appsettings.o: ./appsettings.cpp
205 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
206
207 $(OBJS)\wxconfigtool_configitem.o: ./configitem.cpp
208 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
209
210 $(OBJS)\wxconfigtool_configitemselector.o: ./configitemselector.cpp
211 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
212
213 $(OBJS)\wxconfigtool_configtooldoc.o: ./configtooldoc.cpp
214 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
215
216 $(OBJS)\wxconfigtool_configtoolview.o: ./configtoolview.cpp
217 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
218
219 $(OBJS)\wxconfigtool_configtree.o: ./configtree.cpp
220 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
221
222 $(OBJS)\wxconfigtool_custompropertydialog.o: ./custompropertydialog.cpp
223 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
224
225 $(OBJS)\wxconfigtool_htmlparser.o: ./htmlparser.cpp
226 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
227
228 $(OBJS)\wxconfigtool_mainframe.o: ./mainframe.cpp
229 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
230
231 $(OBJS)\wxconfigtool_propeditor.o: ./propeditor.cpp
232 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
233
234 $(OBJS)\wxconfigtool_property.o: ./property.cpp
235 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
236
237 $(OBJS)\wxconfigtool_settingsdialog.o: ./settingsdialog.cpp
238 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
239
240 $(OBJS)\wxconfigtool_utils.o: ./utils.cpp
241 $(CXX) -c -o $@ $(WXCONFIGTOOL_CXXFLAGS) $<
242
243 .PHONY: all clean data