]>
Commit | Line | Data |
---|---|---|
40ff4100 JS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c3255f5f | 3 | # Bakefile 0.1.3 (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 | ||
15 | OBJS = \ | |
16 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
17 | SETUPHDIR = \ | |
18 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 19 | WXRCEDIT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ |
40ff4100 JS |
20 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
21 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \ | |
9bfe7ad9 VS |
22 | $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include $(__EXCEPTIONSFLAG_4) \ |
23 | $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS) | |
40ff4100 JS |
24 | WXRCEDIT_OBJECTS = \ |
25 | $(OBJS)\wxrcedit_edapp.o \ | |
26 | $(OBJS)\wxrcedit_editor.o \ | |
27 | $(OBJS)\wxrcedit_nodehnd.o \ | |
28 | $(OBJS)\wxrcedit_nodesdb.o \ | |
29 | $(OBJS)\wxrcedit_pe_adv.o \ | |
30 | $(OBJS)\wxrcedit_pe_basic.o \ | |
31 | $(OBJS)\wxrcedit_preview.o \ | |
32 | $(OBJS)\wxrcedit_propedit.o \ | |
33 | $(OBJS)\wxrcedit_propframe.o \ | |
34 | $(OBJS)\wxrcedit_splittree.o \ | |
35 | $(OBJS)\wxrcedit_xmlhelpr.o \ | |
36 | $(OBJS)\wxrcedit_wxrcedit_rc.o | |
37 | ||
38 | ### Conditionally set variables: ### | |
39 | ||
40 | ifeq ($(GCC_VERSION),2.95) | |
41 | GCCFLAGS = -fvtable-thunks | |
42 | endif | |
40ff4100 JS |
43 | ifeq ($(USE_GUI),0) |
44 | PORTNAME = base | |
45 | endif | |
46 | ifeq ($(USE_GUI),1) | |
47 | PORTNAME = msw | |
48 | endif | |
49 | ifeq ($(BUILD),debug) | |
50 | ifeq ($(DEBUG_FLAG),default) | |
51 | WXDEBUGFLAG = d | |
52 | endif | |
53 | endif | |
54 | ifeq ($(DEBUG_FLAG),1) | |
55 | WXDEBUGFLAG = d | |
56 | endif | |
40ff4100 JS |
57 | ifeq ($(UNICODE),1) |
58 | WXUNICODEFLAG = u | |
59 | endif | |
60 | ifeq ($(WXUNIV),1) | |
61 | WXUNIVNAME = univ | |
62 | endif | |
b17c1746 DE |
63 | ifeq ($(SHARED),1) |
64 | WXDLLFLAG = dll | |
40ff4100 | 65 | endif |
b17c1746 DE |
66 | ifeq ($(BUILD),debug) |
67 | __OPTIMIZEFLAG_2 = -O0 | |
40ff4100 JS |
68 | endif |
69 | ifeq ($(BUILD),release) | |
b17c1746 | 70 | __OPTIMIZEFLAG_2 = -O2 |
40ff4100 | 71 | endif |
b17c1746 DE |
72 | ifeq ($(USE_EXCEPTIONS),0) |
73 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
40ff4100 | 74 | endif |
b17c1746 DE |
75 | ifeq ($(USE_EXCEPTIONS),1) |
76 | __EXCEPTIONSFLAG_4 = | |
40ff4100 | 77 | endif |
b17c1746 DE |
78 | ifeq ($(USE_EXCEPTIONS),0) |
79 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
80 | endif | |
81 | ifeq ($(USE_EXCEPTIONS),1) | |
82 | __EXCEPTIONSFLAG_5 = | |
83 | endif | |
84 | ifeq ($(WXUNIV),1) | |
85 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
86 | endif | |
87 | ifeq ($(WXUNIV),1) | |
88 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
40ff4100 JS |
89 | endif |
90 | ifeq ($(BUILD),debug) | |
91 | ifeq ($(DEBUG_FLAG),default) | |
92 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
93 | endif | |
94 | endif | |
95 | ifeq ($(DEBUG_FLAG),1) | |
96 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
97 | endif | |
98 | ifeq ($(BUILD),debug) | |
99 | ifeq ($(DEBUG_FLAG),default) | |
100 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
101 | endif | |
102 | endif | |
103 | ifeq ($(DEBUG_FLAG),1) | |
104 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
105 | endif | |
b17c1746 DE |
106 | ifeq ($(UNICODE),1) |
107 | __UNICODE_DEFINE_p = -D_UNICODE | |
108 | endif | |
109 | ifeq ($(UNICODE),1) | |
110 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
111 | endif | |
40ff4100 JS |
112 | ifeq ($(SHARED),1) |
113 | __DLLFLAG_p = -DWXUSINGDLL | |
114 | endif | |
115 | ifeq ($(SHARED),1) | |
116 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
117 | endif | |
b17c1746 DE |
118 | ifeq ($(MONOLITHIC),0) |
119 | __WXLIB_ADV_p = \ | |
120 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv | |
a4ad36cd | 121 | endif |
b17c1746 DE |
122 | ifeq ($(MONOLITHIC),0) |
123 | __WXLIB_HTML_p = \ | |
124 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html | |
a4ad36cd | 125 | endif |
b17c1746 DE |
126 | ifeq ($(MONOLITHIC),0) |
127 | __WXLIB_CORE_p = \ | |
128 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
a4ad36cd | 129 | endif |
b17c1746 DE |
130 | ifeq ($(MONOLITHIC),0) |
131 | __WXLIB_XML_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml | |
a4ad36cd | 132 | endif |
b17c1746 DE |
133 | ifeq ($(MONOLITHIC),0) |
134 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
40ff4100 | 135 | endif |
b17c1746 DE |
136 | ifeq ($(MONOLITHIC),1) |
137 | __WXLIB_MONO_p = \ | |
138 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
40ff4100 JS |
139 | endif |
140 | ifeq ($(USE_GUI),1) | |
141 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
142 | endif | |
b17c1746 DE |
143 | ifeq ($(USE_GUI),1) |
144 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
40ff4100 | 145 | endif |
b17c1746 DE |
146 | ifeq ($(USE_GUI),1) |
147 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
40ff4100 JS |
148 | endif |
149 | ifeq ($(MSLU),1) | |
150 | __UNICOWS_LIB_p = -lunicows | |
151 | endif | |
b17c1746 DE |
152 | ifeq ($(SHARED),0) |
153 | LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG) | |
40ff4100 | 154 | endif |
b17c1746 DE |
155 | ifeq ($(SHARED),1) |
156 | LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG) | |
40ff4100 | 157 | endif |
b17c1746 DE |
158 | ifeq ($(BUILD),debug) |
159 | ifeq ($(DEBUG_INFO),default) | |
160 | __DEBUGINFO = -g | |
40ff4100 | 161 | endif |
40ff4100 | 162 | endif |
b17c1746 DE |
163 | ifeq ($(BUILD),release) |
164 | ifeq ($(DEBUG_INFO),default) | |
165 | __DEBUGINFO = | |
40ff4100 | 166 | endif |
40ff4100 | 167 | endif |
b17c1746 DE |
168 | ifeq ($(DEBUG_INFO),0) |
169 | __DEBUGINFO = | |
40ff4100 | 170 | endif |
b17c1746 DE |
171 | ifeq ($(DEBUG_INFO),1) |
172 | __DEBUGINFO = -g | |
40ff4100 JS |
173 | endif |
174 | ||
175 | ||
176 | all: $(OBJS) | |
177 | $(OBJS): | |
178 | -if not exist $(OBJS) mkdir $(OBJS) | |
179 | ||
180 | ### Targets: ### | |
181 | ||
182 | all: $(OBJS)\wxrcedit.exe | |
183 | ||
b17c1746 DE |
184 | clean: |
185 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
186 | -if exist $(OBJS)\wxrcedit.exe del $(OBJS)\wxrcedit.exe | |
187 | ||
188 | $(OBJS)\wxrcedit.exe: $(WXRCEDIT_OBJECTS) $(OBJS)\wxrcedit_wxrcedit_rc.o | |
b92ca05a | 189 | $(CXX) -o $@ $(WXRCEDIT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xrc $(__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 |
b17c1746 | 190 | |
40ff4100 JS |
191 | $(OBJS)\wxrcedit_edapp.o: ./edapp.cpp |
192 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
193 | ||
194 | $(OBJS)\wxrcedit_editor.o: ./editor.cpp | |
195 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
196 | ||
197 | $(OBJS)\wxrcedit_nodehnd.o: ./nodehnd.cpp | |
198 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
199 | ||
200 | $(OBJS)\wxrcedit_nodesdb.o: ./nodesdb.cpp | |
201 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
202 | ||
203 | $(OBJS)\wxrcedit_pe_adv.o: ./pe_adv.cpp | |
204 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
205 | ||
206 | $(OBJS)\wxrcedit_pe_basic.o: ./pe_basic.cpp | |
207 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
208 | ||
209 | $(OBJS)\wxrcedit_preview.o: ./preview.cpp | |
210 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
211 | ||
212 | $(OBJS)\wxrcedit_propedit.o: ./propedit.cpp | |
213 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
214 | ||
215 | $(OBJS)\wxrcedit_propframe.o: ./propframe.cpp | |
216 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
217 | ||
218 | $(OBJS)\wxrcedit_splittree.o: ./splittree.cpp | |
219 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
220 | ||
40ff4100 JS |
221 | $(OBJS)\wxrcedit_xmlhelpr.o: ./xmlhelpr.cpp |
222 | $(CXX) -c -o $@ $(WXRCEDIT_CXXFLAGS) $< | |
223 | ||
b17c1746 DE |
224 | $(OBJS)\wxrcedit_wxrcedit_rc.o: ./wxrcedit.rc |
225 | 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 --include-dir ./../../include | |
40ff4100 JS |
226 | |
227 | .PHONY: all clean |