]> git.saurik.com Git - wxWidgets.git/blob - contrib/utils/wxrcedit/makefile.gcc
Updated version to 2.5.5
[wxWidgets.git] / contrib / utils / wxrcedit / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 WXRCEDIT_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 -I.\..\..\include $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
27 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 WXRCEDIT_OBJECTS = \
29 $(OBJS)\wxrcedit_edapp.o \
30 $(OBJS)\wxrcedit_editor.o \
31 $(OBJS)\wxrcedit_nodehnd.o \
32 $(OBJS)\wxrcedit_nodesdb.o \
33 $(OBJS)\wxrcedit_pe_adv.o \
34 $(OBJS)\wxrcedit_pe_basic.o \
35 $(OBJS)\wxrcedit_preview.o \
36 $(OBJS)\wxrcedit_propedit.o \
37 $(OBJS)\wxrcedit_propframe.o \
38 $(OBJS)\wxrcedit_splittree.o \
39 $(OBJS)\wxrcedit_xmlhelpr.o \
40 $(OBJS)\wxrcedit_wxrcedit_rc.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 ($(SHARED),0)
71 LIBTYPE_SUFFIX = lib
72 endif
73 ifeq ($(SHARED),1)
74 LIBTYPE_SUFFIX = dll
75 endif
76 ifeq ($(MONOLITHIC),0)
77 EXTRALIBS_FOR_BASE =
78 endif
79 ifeq ($(MONOLITHIC),1)
80 EXTRALIBS_FOR_BASE =
81 endif
82 ifeq ($(BUILD),debug)
83 __OPTIMIZEFLAG_2 = -O0
84 endif
85 ifeq ($(BUILD),release)
86 __OPTIMIZEFLAG_2 = -O2
87 endif
88 ifeq ($(USE_RTTI),0)
89 __RTTIFLAG_5 = -fno-rtti
90 endif
91 ifeq ($(USE_RTTI),1)
92 __RTTIFLAG_5 =
93 endif
94 ifeq ($(USE_EXCEPTIONS),0)
95 __EXCEPTIONSFLAG_6 = -fno-exceptions
96 endif
97 ifeq ($(USE_EXCEPTIONS),1)
98 __EXCEPTIONSFLAG_6 =
99 endif
100 ifeq ($(WXUNIV),1)
101 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
102 endif
103 ifeq ($(WXUNIV),1)
104 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
105 endif
106 ifeq ($(BUILD),debug)
107 ifeq ($(DEBUG_FLAG),default)
108 __DEBUG_DEFINE_p = -D__WXDEBUG__
109 endif
110 endif
111 ifeq ($(DEBUG_FLAG),1)
112 __DEBUG_DEFINE_p = -D__WXDEBUG__
113 endif
114 ifeq ($(BUILD),debug)
115 ifeq ($(DEBUG_FLAG),default)
116 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
117 endif
118 endif
119 ifeq ($(DEBUG_FLAG),1)
120 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
121 endif
122 ifeq ($(USE_EXCEPTIONS),0)
123 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
124 endif
125 ifeq ($(USE_EXCEPTIONS),0)
126 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
127 endif
128 ifeq ($(USE_RTTI),0)
129 __RTTI_DEFINE_p = -DwxNO_RTTI
130 endif
131 ifeq ($(USE_RTTI),0)
132 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
133 endif
134 ifeq ($(USE_THREADS),0)
135 __THREAD_DEFINE_p = -DwxNO_THREADS
136 endif
137 ifeq ($(USE_THREADS),0)
138 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
139 endif
140 ifeq ($(UNICODE),1)
141 __UNICODE_DEFINE_p = -D_UNICODE
142 endif
143 ifeq ($(UNICODE),1)
144 __UNICODE_DEFINE_p_1 = --define _UNICODE
145 endif
146 ifeq ($(SHARED),1)
147 __DLLFLAG_p = -DWXUSINGDLL
148 endif
149 ifeq ($(SHARED),1)
150 __DLLFLAG_p_1 = --define WXUSINGDLL
151 endif
152 ifeq ($(MONOLITHIC),0)
153 __WXLIB_XRC_p = \
154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xrc
155 endif
156 ifeq ($(MONOLITHIC),0)
157 __WXLIB_ADV_p = \
158 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
159 endif
160 ifeq ($(MONOLITHIC),0)
161 __WXLIB_HTML_p = \
162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
163 endif
164 ifeq ($(MONOLITHIC),0)
165 __WXLIB_CORE_p = \
166 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
167 endif
168 ifeq ($(MONOLITHIC),0)
169 __WXLIB_XML_p = \
170 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
171 endif
172 ifeq ($(MONOLITHIC),0)
173 __WXLIB_BASE_p = \
174 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
175 endif
176 ifeq ($(MONOLITHIC),1)
177 __WXLIB_MONO_p = \
178 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
179 endif
180 ifeq ($(USE_GUI),1)
181 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
182 endif
183 ifeq ($(USE_GUI),1)
184 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
185 endif
186 ifeq ($(USE_GUI),1)
187 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
188 endif
189 ifeq ($(MSLU),1)
190 __UNICOWS_LIB_p = -lunicows
191 endif
192 ifeq ($(BUILD),debug)
193 ifeq ($(DEBUG_INFO),default)
194 __DEBUGINFO = -g
195 endif
196 endif
197 ifeq ($(BUILD),release)
198 ifeq ($(DEBUG_INFO),default)
199 __DEBUGINFO =
200 endif
201 endif
202 ifeq ($(DEBUG_INFO),0)
203 __DEBUGINFO =
204 endif
205 ifeq ($(DEBUG_INFO),1)
206 __DEBUGINFO = -g
207 endif
208 ifeq ($(USE_THREADS),0)
209 __THREADSFLAG =
210 endif
211 ifeq ($(USE_THREADS),1)
212 __THREADSFLAG = -mthreads
213 endif
214
215
216 all: $(OBJS)
217 $(OBJS):
218 -if not exist $(OBJS) mkdir $(OBJS)
219
220 ### Targets: ###
221
222 all: $(OBJS)\wxrcedit.exe
223
224 clean:
225 -if exist $(OBJS)\*.o del $(OBJS)\*.o
226 -if exist $(OBJS)\wxrcedit.exe del $(OBJS)\wxrcedit.exe
227
228 $(OBJS)\wxrcedit.exe: $(WXRCEDIT_OBJECTS) $(OBJS)\wxrcedit_wxrcedit_rc.o
229 $(CXX) -o $@ $(WXRCEDIT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_XRC_p) $(__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
230
231 $(OBJS)\wxrcedit_edapp.o: ./edapp.cpp
232 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
233
234 $(OBJS)\wxrcedit_editor.o: ./editor.cpp
235 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
236
237 $(OBJS)\wxrcedit_nodehnd.o: ./nodehnd.cpp
238 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
239
240 $(OBJS)\wxrcedit_nodesdb.o: ./nodesdb.cpp
241 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
242
243 $(OBJS)\wxrcedit_pe_adv.o: ./pe_adv.cpp
244 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
245
246 $(OBJS)\wxrcedit_pe_basic.o: ./pe_basic.cpp
247 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
248
249 $(OBJS)\wxrcedit_preview.o: ./preview.cpp
250 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
251
252 $(OBJS)\wxrcedit_propedit.o: ./propedit.cpp
253 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
254
255 $(OBJS)\wxrcedit_propframe.o: ./propframe.cpp
256 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
257
258 $(OBJS)\wxrcedit_splittree.o: ./splittree.cpp
259 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
260
261 $(OBJS)\wxrcedit_xmlhelpr.o: ./xmlhelpr.cpp
262 $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
263
264 $(OBJS)\wxrcedit_wxrcedit_rc.o: ./wxrcedit.rc
265 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 --define NOPCH --include-dir ./../../include
266
267 .PHONY: all clean
268
269