1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 !include <../../../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
18 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(ARCH_SUFFIX)
20 .\..\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 SCREENSHOTGEN_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
24 $(__DEBUGINFO_0) /Fd$(OBJS)\screenshotgen.pdb $(____DEBUGRUNTIME_3_p) \
25 $(__OPTIMIZEFLAG_6) /D_CRT_SECURE_NO_DEPRECATE=1 \
26 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
27 $(__NO_VC_CRTDBG_p) /D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
28 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
29 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
30 $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\..\include \
31 $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
32 /I.\..\..\..\samples /DNOPCH $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) \
33 $(CPPFLAGS) $(CXXFLAGS)
34 SCREENSHOTGEN_OBJECTS = \
35 $(OBJS)\screenshotgen_screenshot_app.obj \
36 $(OBJS)\screenshotgen_screenshot_main.obj \
37 $(OBJS)\screenshotgen_guiframe.obj \
38 $(OBJS)\screenshotgen_customcombo.obj \
39 $(OBJS)\screenshotgen_autocapture.obj
40 SCREENSHOTGEN_RESOURCES = \
41 $(OBJS)\screenshotgen_screenshotgen.res
43 ### Conditionally set variables: ###
45 !if "$(TOOLKIT)" == "GTK"
46 WIN32_TOOLKIT_LOWERCASE = gtk
48 !if "$(TOOLKIT)" == "MSW"
49 WIN32_TOOLKIT_LOWERCASE = msw
51 !if "$(TARGET_CPU)" == "AMD64"
54 !if "$(TARGET_CPU)" == "IA64"
57 !if "$(TARGET_CPU)" == "X64"
60 !if "$(TARGET_CPU)" == "amd64"
63 !if "$(TARGET_CPU)" == "ia64"
66 !if "$(TARGET_CPU)" == "x64"
69 !if "$(USE_GUI)" == "0"
72 !if "$(USE_GUI)" == "1"
73 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
75 !if "$(TOOLKIT)" == "MAC"
78 !if "$(OFFICIAL_BUILD)" == "1"
79 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
81 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
84 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
87 !if "$(UNICODE)" == "1"
90 !if "$(WXUNIV)" == "1"
93 !if "$(SHARED)" == "1"
96 !if "$(SHARED)" == "0"
99 !if "$(SHARED)" == "1"
102 !if "$(TARGET_CPU)" == "AMD64"
103 LINK_TARGET_CPU = /MACHINE:X64
105 !if "$(TARGET_CPU)" == "IA64"
106 LINK_TARGET_CPU = /MACHINE:IA64
108 !if "$(TARGET_CPU)" == "X64"
109 LINK_TARGET_CPU = /MACHINE:X64
111 !if "$(TARGET_CPU)" == "amd64"
112 LINK_TARGET_CPU = /MACHINE:X64
114 !if "$(TARGET_CPU)" == "ia64"
115 LINK_TARGET_CPU = /MACHINE:IA64
117 !if "$(TARGET_CPU)" == "x64"
118 LINK_TARGET_CPU = /MACHINE:X64
120 !if "$(MONOLITHIC)" == "0"
123 !if "$(MONOLITHIC)" == "1"
126 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
127 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
128 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
131 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
134 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
137 !if "$(DEBUG_INFO)" == "0"
140 !if "$(DEBUG_INFO)" == "1"
143 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
144 __DEBUGINFO_1 = /DEBUG
146 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
149 !if "$(DEBUG_INFO)" == "0"
152 !if "$(DEBUG_INFO)" == "1"
153 __DEBUGINFO_1 = /DEBUG
155 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
156 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
158 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
161 !if "$(DEBUG_INFO)" == "0"
164 !if "$(DEBUG_INFO)" == "1"
165 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
167 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
168 ____DEBUGRUNTIME_3_p = /D_DEBUG
170 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
171 ____DEBUGRUNTIME_3_p =
173 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
174 ____DEBUGRUNTIME_3_p =
176 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
177 ____DEBUGRUNTIME_3_p = /D_DEBUG
179 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
180 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
182 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
183 ____DEBUGRUNTIME_3_p_1 =
185 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
186 ____DEBUGRUNTIME_3_p_1 =
188 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
189 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
191 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
194 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
197 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
200 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
203 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
206 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
207 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
209 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
210 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
212 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
215 !if "$(BUILD)" == "debug"
216 __OPTIMIZEFLAG_6 = /Od
218 !if "$(BUILD)" == "release"
219 __OPTIMIZEFLAG_6 = /O2
221 !if "$(USE_THREADS)" == "0"
224 !if "$(USE_THREADS)" == "1"
227 !if "$(RUNTIME_LIBS)" == "dynamic"
228 __RUNTIME_LIBS_10 = D
230 !if "$(RUNTIME_LIBS)" == "static"
231 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
233 !if "$(USE_RTTI)" == "0"
236 !if "$(USE_RTTI)" == "1"
239 !if "$(USE_EXCEPTIONS)" == "0"
240 __EXCEPTIONSFLAG_12 =
242 !if "$(USE_EXCEPTIONS)" == "1"
243 __EXCEPTIONSFLAG_12 = /EHsc
245 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
246 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
248 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
249 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
251 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
252 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
254 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
255 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
257 !if "$(WXUNIV)" == "1"
258 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
260 !if "$(WXUNIV)" == "1"
261 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
263 !if "$(DEBUG_FLAG)" == "0"
264 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
266 !if "$(DEBUG_FLAG)" == "0"
267 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
269 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
270 __NDEBUG_DEFINE_p = /DNDEBUG
272 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
273 __NDEBUG_DEFINE_p = /DNDEBUG
275 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
276 __NDEBUG_DEFINE_p_1 = /d NDEBUG
278 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
279 __NDEBUG_DEFINE_p_1 = /d NDEBUG
281 !if "$(USE_EXCEPTIONS)" == "0"
282 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
284 !if "$(USE_EXCEPTIONS)" == "0"
285 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
287 !if "$(USE_RTTI)" == "0"
288 __RTTI_DEFINE_p = /DwxNO_RTTI
290 !if "$(USE_RTTI)" == "0"
291 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
293 !if "$(USE_THREADS)" == "0"
294 __THREAD_DEFINE_p = /DwxNO_THREADS
296 !if "$(USE_THREADS)" == "0"
297 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
299 !if "$(UNICODE)" == "0"
300 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
302 !if "$(UNICODE)" == "1"
303 __UNICODE_DEFINE_p = /D_UNICODE
305 !if "$(UNICODE)" == "0"
306 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
308 !if "$(UNICODE)" == "1"
309 __UNICODE_DEFINE_p_1 = /d _UNICODE
312 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
315 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
317 !if "$(USE_CAIRO)" == "1"
318 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
320 !if "$(USE_CAIRO)" == "1"
321 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
323 !if "$(SHARED)" == "1"
324 __DLLFLAG_p = /DWXUSINGDLL
326 !if "$(SHARED)" == "1"
327 __DLLFLAG_p_1 = /d WXUSINGDLL
329 !if "$(MONOLITHIC)" == "0"
331 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_aui.lib
333 !if "$(MONOLITHIC)" == "0"
334 __WXLIB_RICHTEXT_p = \
335 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_richtext.lib
337 !if "$(MONOLITHIC)" == "0"
339 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
341 !if "$(MONOLITHIC)" == "0"
343 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
345 !if "$(MONOLITHIC)" == "0"
347 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
349 !if "$(MONOLITHIC)" == "0"
351 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
353 !if "$(MONOLITHIC)" == "0"
355 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
357 !if "$(MONOLITHIC)" == "1"
359 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
361 !if "$(USE_GUI)" == "1"
362 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
364 !if "$(USE_GUI)" == "1"
365 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
367 !if "$(USE_GUI)" == "1"
368 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
371 __UNICOWS_LIB_p = unicows.lib
373 !if "$(USE_CAIRO)" == "1"
374 __CAIRO_LIB_p = cairo.lib
376 !if "$(USE_CAIRO)" == "1"
377 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
383 -if not exist $(OBJS) mkdir $(OBJS)
387 all: $(OBJS)\screenshotgen.exe bitmaps xml
390 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
391 -if exist $(OBJS)\*.res del $(OBJS)\*.res
392 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
393 -if exist $(OBJS)\screenshotgen.exe del $(OBJS)\screenshotgen.exe
394 -if exist $(OBJS)\screenshotgen.ilk del $(OBJS)\screenshotgen.ilk
395 -if exist $(OBJS)\screenshotgen.pdb del $(OBJS)\screenshotgen.pdb
397 $(OBJS)\screenshotgen.exe: $(SCREENSHOTGEN_OBJECTS) $(OBJS)\screenshotgen_screenshotgen.res
398 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\screenshotgen.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
399 $(SCREENSHOTGEN_OBJECTS) $(SCREENSHOTGEN_RESOURCES) $(__WXLIB_AUI_p) $(__WXLIB_RICHTEXT_p) $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_XML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib
403 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
404 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
407 if not exist $(OBJS) mkdir $(OBJS)
408 for %f in (richtext.xml) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
410 $(OBJS)\screenshotgen_screenshot_app.obj: .\screenshot_app.cpp
411 $(CXX) /c /nologo /TP /Fo$@ $(SCREENSHOTGEN_CXXFLAGS) .\screenshot_app.cpp
413 $(OBJS)\screenshotgen_screenshot_main.obj: .\screenshot_main.cpp
414 $(CXX) /c /nologo /TP /Fo$@ $(SCREENSHOTGEN_CXXFLAGS) .\screenshot_main.cpp
416 $(OBJS)\screenshotgen_guiframe.obj: .\guiframe.cpp
417 $(CXX) /c /nologo /TP /Fo$@ $(SCREENSHOTGEN_CXXFLAGS) .\guiframe.cpp
419 $(OBJS)\screenshotgen_customcombo.obj: .\customcombo.cpp
420 $(CXX) /c /nologo /TP /Fo$@ $(SCREENSHOTGEN_CXXFLAGS) .\customcombo.cpp
422 $(OBJS)\screenshotgen_autocapture.obj: .\autocapture.cpp
423 $(CXX) /c /nologo /TP /Fo$@ $(SCREENSHOTGEN_CXXFLAGS) .\autocapture.cpp
425 $(OBJS)\screenshotgen_screenshotgen.res: .\screenshotgen.rc
426 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_3_p_1) /d _CRT_SECURE_NO_DEPRECATE=1 /d _CRT_NON_CONFORMING_SWPRINTFS=1 /d _SCL_SECURE_NO_WARNINGS=1 $(__NO_VC_CRTDBG_p_1) /d __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_1_p) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\..\samples /d NOPCH .\screenshotgen.rc