]>
Commit | Line | Data |
---|---|---|
40ff4100 JS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
8c9f8f91 | 3 | # Bakefile 0.1.8 (http://bakefile.sourceforge.net) |
40ff4100 JS |
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 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
40ff4100 JS |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
40ff4100 JS |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
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) | |
40ff4100 JS |
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 | |
40ff4100 JS |
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 | |
40ff4100 JS |
61 | ifeq ($(UNICODE),1) |
62 | WXUNICODEFLAG = u | |
63 | endif | |
64 | ifeq ($(WXUNIV),1) | |
65 | WXUNIVNAME = univ | |
66 | endif | |
b17c1746 DE |
67 | ifeq ($(SHARED),1) |
68 | WXDLLFLAG = dll | |
40ff4100 | 69 | endif |
b14abf14 JS |
70 | ifeq ($(SHARED),0) |
71 | LIBTYPE_SUFFIX = lib | |
72 | endif | |
73 | ifeq ($(SHARED),1) | |
74 | LIBTYPE_SUFFIX = dll | |
75 | endif | |
dd65d8c8 RN |
76 | ifeq ($(MONOLITHIC),0) |
77 | EXTRALIBS_FOR_BASE = | |
78 | endif | |
79 | ifeq ($(MONOLITHIC),1) | |
80 | EXTRALIBS_FOR_BASE = | |
81 | endif | |
b17c1746 DE |
82 | ifeq ($(BUILD),debug) |
83 | __OPTIMIZEFLAG_2 = -O0 | |
40ff4100 JS |
84 | endif |
85 | ifeq ($(BUILD),release) | |
b17c1746 | 86 | __OPTIMIZEFLAG_2 = -O2 |
40ff4100 | 87 | endif |
8c9f8f91 JS |
88 | ifeq ($(USE_RTTI),0) |
89 | __RTTIFLAG_5 = -fno-rtti | |
40ff4100 | 90 | endif |
8c9f8f91 JS |
91 | ifeq ($(USE_RTTI),1) |
92 | __RTTIFLAG_5 = | |
40ff4100 | 93 | endif |
b17c1746 | 94 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 95 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
96 | endif |
97 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 98 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
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__ | |
40ff4100 JS |
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 | |
8c9f8f91 JS |
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 | |
b17c1746 DE |
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 | |
40ff4100 JS |
146 | ifeq ($(SHARED),1) |
147 | __DLLFLAG_p = -DWXUSINGDLL | |
148 | endif | |
149 | ifeq ($(SHARED),1) | |
150 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
151 | endif | |
b17c1746 | 152 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
153 | __WXLIB_XRC_p = \ |
154 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xrc | |
155 | endif | |
156 | ifeq ($(MONOLITHIC),0) | |
b17c1746 | 157 | __WXLIB_ADV_p = \ |
c33fae85 | 158 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
a4ad36cd | 159 | endif |
b17c1746 DE |
160 | ifeq ($(MONOLITHIC),0) |
161 | __WXLIB_HTML_p = \ | |
c33fae85 | 162 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
a4ad36cd | 163 | endif |
b17c1746 DE |
164 | ifeq ($(MONOLITHIC),0) |
165 | __WXLIB_CORE_p = \ | |
c33fae85 | 166 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
a4ad36cd | 167 | endif |
b17c1746 | 168 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
169 | __WXLIB_XML_p = \ |
170 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
a4ad36cd | 171 | endif |
b17c1746 | 172 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
173 | __WXLIB_BASE_p = \ |
174 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
40ff4100 | 175 | endif |
b17c1746 DE |
176 | ifeq ($(MONOLITHIC),1) |
177 | __WXLIB_MONO_p = \ | |
c33fae85 | 178 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
40ff4100 JS |
179 | endif |
180 | ifeq ($(USE_GUI),1) | |
9c2d002b | 181 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
40ff4100 | 182 | endif |
b17c1746 | 183 | ifeq ($(USE_GUI),1) |
9c2d002b | 184 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
40ff4100 | 185 | endif |
b17c1746 | 186 | ifeq ($(USE_GUI),1) |
9c2d002b | 187 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
40ff4100 JS |
188 | endif |
189 | ifeq ($(MSLU),1) | |
190 | __UNICOWS_LIB_p = -lunicows | |
191 | endif | |
b17c1746 DE |
192 | ifeq ($(BUILD),debug) |
193 | ifeq ($(DEBUG_INFO),default) | |
194 | __DEBUGINFO = -g | |
40ff4100 | 195 | endif |
40ff4100 | 196 | endif |
b17c1746 DE |
197 | ifeq ($(BUILD),release) |
198 | ifeq ($(DEBUG_INFO),default) | |
199 | __DEBUGINFO = | |
40ff4100 | 200 | endif |
40ff4100 | 201 | endif |
b17c1746 DE |
202 | ifeq ($(DEBUG_INFO),0) |
203 | __DEBUGINFO = | |
40ff4100 | 204 | endif |
b17c1746 DE |
205 | ifeq ($(DEBUG_INFO),1) |
206 | __DEBUGINFO = -g | |
40ff4100 | 207 | endif |
8c9f8f91 JS |
208 | ifeq ($(USE_THREADS),0) |
209 | __THREADSFLAG = | |
210 | endif | |
211 | ifeq ($(USE_THREADS),1) | |
212 | __THREADSFLAG = -mthreads | |
213 | endif | |
40ff4100 JS |
214 | |
215 | ||
216 | all: $(OBJS) | |
217 | $(OBJS): | |
218 | -if not exist $(OBJS) mkdir $(OBJS) | |
219 | ||
220 | ### Targets: ### | |
221 | ||
222 | all: $(OBJS)\wxrcedit.exe | |
223 | ||
b17c1746 DE |
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 | |
8c9f8f91 | 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 |
b17c1746 | 230 | |
40ff4100 JS |
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 | ||
40ff4100 JS |
261 | $(OBJS)\wxrcedit_xmlhelpr.o: ./xmlhelpr.cpp |
262 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
263 | ||
b17c1746 | 264 | $(OBJS)\wxrcedit_wxrcedit_rc.o: ./wxrcedit.rc |
8c9f8f91 | 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 |
40ff4100 JS |
266 | |
267 | .PHONY: all clean | |
b14abf14 | 268 | |
8c9f8f91 | 269 |