]>
Commit | Line | Data |
---|---|---|
0d5eda9c FM |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
506e9b7e | 3 | # Bakefile 0.2.5 (http://www.bakefile.org) |
0d5eda9c FM |
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 | CPPDEPS = -MT$@ -MF$@.d -MD -MP | |
16 | WX_RELEASE_NODOT = 29 | |
17 | COMPILER_PREFIX = gcc | |
18 | OBJS = \ | |
19 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
20 | LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG) | |
21 | SETUPHDIR = \ | |
22 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
23 | SCREENSHOTGEN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \ | |
24 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
25 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
26 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ | |
27 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. \ | |
28 | $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(__RTTIFLAG_5) \ | |
29 | $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
30 | SCREENSHOTGEN_OBJECTS = \ | |
31 | $(OBJS)\screenshotgen_screenshot_app.o \ | |
32 | $(OBJS)\screenshotgen_screenshot_main.o \ | |
33 | $(OBJS)\screenshotgen_guiframe.o \ | |
34 | $(OBJS)\screenshotgen_ctrlmaskout.o \ | |
35 | $(OBJS)\screenshotgen_customcombo.o \ | |
36 | $(OBJS)\screenshotgen_autocapture.o \ | |
37 | $(OBJS)\screenshotgen_screenshotgen_rc.o | |
38 | ||
39 | ### Conditionally set variables: ### | |
40 | ||
41 | ifeq ($(GCC_VERSION),2.95) | |
42 | GCCFLAGS = -fvtable-thunks | |
43 | endif | |
44 | ifeq ($(USE_GUI),0) | |
45 | PORTNAME = base | |
46 | endif | |
47 | ifeq ($(USE_GUI),1) | |
48 | PORTNAME = msw | |
49 | endif | |
50 | ifeq ($(BUILD),debug) | |
51 | ifeq ($(DEBUG_FLAG),default) | |
52 | WXDEBUGFLAG = d | |
53 | endif | |
54 | endif | |
55 | ifeq ($(DEBUG_FLAG),1) | |
56 | WXDEBUGFLAG = d | |
57 | endif | |
58 | ifeq ($(UNICODE),1) | |
59 | WXUNICODEFLAG = u | |
60 | endif | |
61 | ifeq ($(WXUNIV),1) | |
62 | WXUNIVNAME = univ | |
63 | endif | |
64 | ifeq ($(SHARED),1) | |
65 | WXDLLFLAG = dll | |
66 | endif | |
67 | ifeq ($(SHARED),0) | |
68 | LIBTYPE_SUFFIX = lib | |
69 | endif | |
70 | ifeq ($(SHARED),1) | |
71 | LIBTYPE_SUFFIX = dll | |
72 | endif | |
73 | ifeq ($(MONOLITHIC),0) | |
74 | EXTRALIBS_FOR_BASE = | |
75 | endif | |
76 | ifeq ($(MONOLITHIC),1) | |
77 | EXTRALIBS_FOR_BASE = | |
78 | endif | |
79 | ifeq ($(BUILD),debug) | |
80 | __OPTIMIZEFLAG_2 = -O0 | |
81 | endif | |
82 | ifeq ($(BUILD),release) | |
83 | __OPTIMIZEFLAG_2 = -O2 | |
84 | endif | |
85 | ifeq ($(USE_RTTI),0) | |
86 | __RTTIFLAG_5 = -fno-rtti | |
87 | endif | |
88 | ifeq ($(USE_RTTI),1) | |
89 | __RTTIFLAG_5 = | |
90 | endif | |
91 | ifeq ($(USE_EXCEPTIONS),0) | |
92 | __EXCEPTIONSFLAG_6 = -fno-exceptions | |
93 | endif | |
94 | ifeq ($(USE_EXCEPTIONS),1) | |
95 | __EXCEPTIONSFLAG_6 = | |
96 | endif | |
97 | ifeq ($(WXUNIV),1) | |
98 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
99 | endif | |
100 | ifeq ($(WXUNIV),1) | |
101 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
102 | endif | |
103 | ifeq ($(BUILD),debug) | |
104 | ifeq ($(DEBUG_FLAG),default) | |
105 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
106 | endif | |
107 | endif | |
108 | ifeq ($(DEBUG_FLAG),1) | |
109 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
110 | endif | |
111 | ifeq ($(BUILD),debug) | |
112 | ifeq ($(DEBUG_FLAG),default) | |
113 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
114 | endif | |
115 | endif | |
116 | ifeq ($(DEBUG_FLAG),1) | |
117 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
118 | endif | |
119 | ifeq ($(USE_EXCEPTIONS),0) | |
120 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
121 | endif | |
122 | ifeq ($(USE_EXCEPTIONS),0) | |
123 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
124 | endif | |
125 | ifeq ($(USE_RTTI),0) | |
126 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
127 | endif | |
128 | ifeq ($(USE_RTTI),0) | |
129 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
130 | endif | |
131 | ifeq ($(USE_THREADS),0) | |
132 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
133 | endif | |
134 | ifeq ($(USE_THREADS),0) | |
135 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
136 | endif | |
137 | ifeq ($(UNICODE),0) | |
138 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0 | |
139 | endif | |
140 | ifeq ($(UNICODE),1) | |
141 | __UNICODE_DEFINE_p = -D_UNICODE | |
142 | endif | |
143 | ifeq ($(UNICODE),0) | |
144 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0 | |
145 | endif | |
146 | ifeq ($(UNICODE),1) | |
147 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
148 | endif | |
149 | ifeq ($(MSLU),1) | |
150 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
151 | endif | |
152 | ifeq ($(MSLU),1) | |
153 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1 | |
154 | endif | |
155 | ifeq ($(USE_GDIPLUS),1) | |
156 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
157 | endif | |
158 | ifeq ($(USE_GDIPLUS),1) | |
159 | __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
160 | endif | |
161 | ifeq ($(SHARED),1) | |
162 | __DLLFLAG_p = -DWXUSINGDLL | |
163 | endif | |
164 | ifeq ($(SHARED),1) | |
165 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
166 | endif | |
167 | ifeq ($(MONOLITHIC),0) | |
168 | __WXLIB_AUI_p = \ | |
169 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_aui | |
170 | endif | |
171 | ifeq ($(MONOLITHIC),0) | |
172 | __WXLIB_ADV_p = \ | |
173 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv | |
174 | endif | |
175 | ifeq ($(MONOLITHIC),0) | |
176 | __WXLIB_RICHTEXT_p = \ | |
177 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_richtext | |
178 | endif | |
179 | ifeq ($(MONOLITHIC),0) | |
180 | __WXLIB_HTML_p = \ | |
181 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html | |
182 | endif | |
183 | ifeq ($(MONOLITHIC),0) | |
184 | __WXLIB_XML_p = \ | |
185 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
186 | endif | |
187 | ifeq ($(MONOLITHIC),0) | |
188 | __WXLIB_CORE_p = \ | |
189 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core | |
190 | endif | |
191 | ifeq ($(MONOLITHIC),0) | |
192 | __WXLIB_BASE_p = \ | |
193 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
194 | endif | |
195 | ifeq ($(MONOLITHIC),1) | |
196 | __WXLIB_MONO_p = \ | |
197 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
198 | endif | |
199 | ifeq ($(USE_GUI),1) | |
200 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
201 | endif | |
202 | ifeq ($(USE_GUI),1) | |
203 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
204 | endif | |
205 | ifeq ($(USE_GUI),1) | |
206 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
207 | endif | |
208 | ifeq ($(MSLU),1) | |
209 | __UNICOWS_LIB_p = -lunicows | |
210 | endif | |
211 | ifeq ($(USE_GDIPLUS),1) | |
212 | __GDIPLUS_LIB_p = -lgdiplus | |
213 | endif | |
214 | ifeq ($(BUILD),debug) | |
215 | ifeq ($(DEBUG_INFO),default) | |
216 | __DEBUGINFO = -g | |
217 | endif | |
218 | endif | |
219 | ifeq ($(BUILD),release) | |
220 | ifeq ($(DEBUG_INFO),default) | |
221 | __DEBUGINFO = | |
222 | endif | |
223 | endif | |
224 | ifeq ($(DEBUG_INFO),0) | |
225 | __DEBUGINFO = | |
226 | endif | |
227 | ifeq ($(DEBUG_INFO),1) | |
228 | __DEBUGINFO = -g | |
229 | endif | |
230 | ifeq ($(USE_THREADS),0) | |
231 | __THREADSFLAG = | |
232 | endif | |
233 | ifeq ($(USE_THREADS),1) | |
234 | __THREADSFLAG = -mthreads | |
235 | endif | |
236 | ||
237 | ||
238 | all: $(OBJS) | |
239 | $(OBJS): | |
240 | -if not exist $(OBJS) mkdir $(OBJS) | |
241 | ||
242 | ### Targets: ### | |
243 | ||
d0aff302 | 244 | all: $(OBJS)\screenshotgen.exe bitmaps xml |
0d5eda9c FM |
245 | |
246 | clean: | |
247 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
248 | -if exist $(OBJS)\*.d del $(OBJS)\*.d | |
249 | -if exist $(OBJS)\screenshotgen.exe del $(OBJS)\screenshotgen.exe | |
250 | ||
251 | $(OBJS)\screenshotgen.exe: $(SCREENSHOTGEN_OBJECTS) $(OBJS)\screenshotgen_screenshotgen_rc.o | |
252 | $(CXX) -o $@ $(SCREENSHOTGEN_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(__WXLIB_AUI_p) $(__WXLIB_ADV_p) $(__WXLIB_RICHTEXT_p) $(__WXLIB_HTML_p) $(__WXLIB_XML_p) $(__WXLIB_CORE_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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 | |
253 | ||
d0aff302 FM |
254 | bitmaps: |
255 | if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps | |
256 | for %%f in (wxwin32x32.png bell.png sound.png dropbuth.png dropbutn.png dropbutp.png throbber.gif) do if not exist $(OBJS)\bitmaps\%%f copy .\bitmaps\%%f $(OBJS)\bitmaps | |
257 | ||
258 | xml: | |
0d5eda9c | 259 | if not exist $(OBJS) mkdir $(OBJS) |
d0aff302 | 260 | for %%f in (richtext.xml) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) |
0d5eda9c FM |
261 | |
262 | $(OBJS)\screenshotgen_screenshot_app.o: ./screenshot_app.cpp | |
263 | $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $< | |
264 | ||
265 | $(OBJS)\screenshotgen_screenshot_main.o: ./screenshot_main.cpp | |
266 | $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $< | |
267 | ||
268 | $(OBJS)\screenshotgen_guiframe.o: ./guiframe.cpp | |
269 | $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $< | |
270 | ||
271 | $(OBJS)\screenshotgen_ctrlmaskout.o: ./ctrlmaskout.cpp | |
272 | $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $< | |
273 | ||
274 | $(OBJS)\screenshotgen_customcombo.o: ./customcombo.cpp | |
275 | $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $< | |
276 | ||
277 | $(OBJS)\screenshotgen_autocapture.o: ./autocapture.cpp | |
278 | $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $< | |
279 | ||
280 | $(OBJS)\screenshotgen_screenshotgen_rc.o: ./screenshotgen.rc | |
281 | 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) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../samples --define NOPCH | |
282 | ||
d0aff302 | 283 | .PHONY: all clean bitmaps xml |
0d5eda9c FM |
284 | |
285 | ||
286 | SHELL := $(COMSPEC) | |
287 | ||
288 | # Dependencies tracking: | |
289 | -include $(OBJS)/*.d |