1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.4 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD -MP
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
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
39 ### Conditionally set variables: ###
41 ifeq ($(GCC_VERSION),2.95)
42 GCCFLAGS = -fvtable-thunks
51 ifeq ($(DEBUG_FLAG),default)
55 ifeq ($(DEBUG_FLAG),1)
73 ifeq ($(MONOLITHIC),0)
76 ifeq ($(MONOLITHIC),1)
80 __OPTIMIZEFLAG_2 = -O0
82 ifeq ($(BUILD),release)
83 __OPTIMIZEFLAG_2 = -O2
86 __RTTIFLAG_5 = -fno-rtti
91 ifeq ($(USE_EXCEPTIONS),0)
92 __EXCEPTIONSFLAG_6 = -fno-exceptions
94 ifeq ($(USE_EXCEPTIONS),1)
98 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
101 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
103 ifeq ($(BUILD),debug)
104 ifeq ($(DEBUG_FLAG),default)
105 __DEBUG_DEFINE_p = -D__WXDEBUG__
108 ifeq ($(DEBUG_FLAG),1)
109 __DEBUG_DEFINE_p = -D__WXDEBUG__
111 ifeq ($(BUILD),debug)
112 ifeq ($(DEBUG_FLAG),default)
113 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
116 ifeq ($(DEBUG_FLAG),1)
117 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
119 ifeq ($(USE_EXCEPTIONS),0)
120 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
122 ifeq ($(USE_EXCEPTIONS),0)
123 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
126 __RTTI_DEFINE_p = -DwxNO_RTTI
129 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
131 ifeq ($(USE_THREADS),0)
132 __THREAD_DEFINE_p = -DwxNO_THREADS
134 ifeq ($(USE_THREADS),0)
135 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
138 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
141 __UNICODE_DEFINE_p = -D_UNICODE
144 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
147 __UNICODE_DEFINE_p_1 = --define _UNICODE
150 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
153 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
155 ifeq ($(USE_GDIPLUS),1)
156 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
158 ifeq ($(USE_GDIPLUS),1)
159 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
162 __DLLFLAG_p = -DWXUSINGDLL
165 __DLLFLAG_p_1 = --define WXUSINGDLL
167 ifeq ($(MONOLITHIC),0)
169 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_aui
171 ifeq ($(MONOLITHIC),0)
173 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
175 ifeq ($(MONOLITHIC),0)
176 __WXLIB_RICHTEXT_p = \
177 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_richtext
179 ifeq ($(MONOLITHIC),0)
181 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
183 ifeq ($(MONOLITHIC),0)
185 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
187 ifeq ($(MONOLITHIC),0)
189 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
191 ifeq ($(MONOLITHIC),0)
193 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
195 ifeq ($(MONOLITHIC),1)
197 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
200 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
203 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
206 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
209 __UNICOWS_LIB_p = -lunicows
211 ifeq ($(USE_GDIPLUS),1)
212 __GDIPLUS_LIB_p = -lgdiplus
214 ifeq ($(BUILD),debug)
215 ifeq ($(DEBUG_INFO),default)
219 ifeq ($(BUILD),release)
220 ifeq ($(DEBUG_INFO),default)
224 ifeq ($(DEBUG_INFO),0)
227 ifeq ($(DEBUG_INFO),1)
230 ifeq ($(USE_THREADS),0)
233 ifeq ($(USE_THREADS),1)
234 __THREADSFLAG = -mthreads
240 -if not exist $(OBJS) mkdir $(OBJS)
244 all: $(OBJS)\screenshotgen.exe bitmaps xml
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
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
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
259 if not exist $(OBJS) mkdir $(OBJS)
260 for %%f in (richtext.xml) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
262 $(OBJS)\screenshotgen_screenshot_app.o: ./screenshot_app.cpp
263 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
265 $(OBJS)\screenshotgen_screenshot_main.o: ./screenshot_main.cpp
266 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
268 $(OBJS)\screenshotgen_guiframe.o: ./guiframe.cpp
269 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
271 $(OBJS)\screenshotgen_ctrlmaskout.o: ./ctrlmaskout.cpp
272 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
274 $(OBJS)\screenshotgen_customcombo.o: ./customcombo.cpp
275 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
277 $(OBJS)\screenshotgen_autocapture.o: ./autocapture.cpp
278 $(CXX) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(CPPDEPS) $<
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
283 .PHONY: all clean bitmaps xml
288 # Dependencies tracking: