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