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 PENGUIN_CFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
24 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.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__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
28 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
29 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
30 /I$(SETUPHDIR) /I.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 \
31 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH $(CPPFLAGS) \
33 PENGUIN_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
34 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.pdb $(____DEBUGRUNTIME_3_p) \
35 $(__OPTIMIZEFLAG_6) /D_CRT_SECURE_NO_DEPRECATE=1 \
36 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
37 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
38 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
39 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
40 /I$(SETUPHDIR) /I.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 \
41 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH $(__RTTIFLAG_11) \
42 $(__EXCEPTIONSFLAG_12) $(CPPFLAGS) $(CXXFLAGS)
44 $(OBJS)\penguin_penguin.obj \
45 $(OBJS)\penguin_dxfrenderer.obj \
46 $(OBJS)\penguin_trackball.obj
48 $(OBJS)\penguin_sample.res
50 ### Conditionally set variables: ###
52 !if "$(TARGET_CPU)" == "AMD64"
55 !if "$(TARGET_CPU)" == "IA64"
58 !if "$(TARGET_CPU)" == "X64"
61 !if "$(TARGET_CPU)" == "amd64"
64 !if "$(TARGET_CPU)" == "ia64"
67 !if "$(TARGET_CPU)" == "x64"
70 !if "$(USE_GUI)" == "0"
73 !if "$(USE_GUI)" == "1"
74 PORTNAME = msw$(TOOLKIT_VERSION)
76 !if "$(OFFICIAL_BUILD)" == "1"
77 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
79 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
82 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
85 !if "$(UNICODE)" == "1"
88 !if "$(WXUNIV)" == "1"
91 !if "$(SHARED)" == "1"
94 !if "$(SHARED)" == "0"
97 !if "$(SHARED)" == "1"
100 !if "$(TARGET_CPU)" == "AMD64"
101 LINK_TARGET_CPU = /MACHINE:X64
103 !if "$(TARGET_CPU)" == "IA64"
104 LINK_TARGET_CPU = /MACHINE:IA64
106 !if "$(TARGET_CPU)" == "X64"
107 LINK_TARGET_CPU = /MACHINE:X64
109 !if "$(TARGET_CPU)" == "amd64"
110 LINK_TARGET_CPU = /MACHINE:X64
112 !if "$(TARGET_CPU)" == "ia64"
113 LINK_TARGET_CPU = /MACHINE:IA64
115 !if "$(TARGET_CPU)" == "x64"
116 LINK_TARGET_CPU = /MACHINE:X64
118 !if "$(MONOLITHIC)" == "0"
121 !if "$(MONOLITHIC)" == "1"
124 !if "$(USE_OPENGL)" == "1"
125 __penguin___depname = $(OBJS)\penguin.exe
127 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
130 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
133 !if "$(DEBUG_INFO)" == "0"
136 !if "$(DEBUG_INFO)" == "1"
139 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
140 __DEBUGINFO_1 = /DEBUG
142 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
145 !if "$(DEBUG_INFO)" == "0"
148 !if "$(DEBUG_INFO)" == "1"
149 __DEBUGINFO_1 = /DEBUG
151 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
152 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
154 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
157 !if "$(DEBUG_INFO)" == "0"
160 !if "$(DEBUG_INFO)" == "1"
161 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
163 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
164 ____DEBUGRUNTIME_3_p = /D_DEBUG
166 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
167 ____DEBUGRUNTIME_3_p =
169 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
170 ____DEBUGRUNTIME_3_p =
172 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
173 ____DEBUGRUNTIME_3_p = /D_DEBUG
175 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
176 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
178 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
179 ____DEBUGRUNTIME_3_p_1 =
181 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
182 ____DEBUGRUNTIME_3_p_1 =
184 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
185 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
187 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
190 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
193 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
196 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
199 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
202 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
203 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
205 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
206 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
208 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
211 !if "$(BUILD)" == "debug"
212 __OPTIMIZEFLAG_6 = /Od
214 !if "$(BUILD)" == "release"
215 __OPTIMIZEFLAG_6 = /O2
217 !if "$(USE_THREADS)" == "0"
220 !if "$(USE_THREADS)" == "1"
223 !if "$(RUNTIME_LIBS)" == "dynamic"
224 __RUNTIME_LIBS_10 = D
226 !if "$(RUNTIME_LIBS)" == "static"
227 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
229 !if "$(USE_RTTI)" == "0"
232 !if "$(USE_RTTI)" == "1"
235 !if "$(USE_EXCEPTIONS)" == "0"
236 __EXCEPTIONSFLAG_12 =
238 !if "$(USE_EXCEPTIONS)" == "1"
239 __EXCEPTIONSFLAG_12 = /EHsc
241 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
242 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
244 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
245 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
247 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
248 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
250 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
251 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
253 !if "$(WXUNIV)" == "1"
254 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
256 !if "$(WXUNIV)" == "1"
257 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
259 !if "$(DEBUG_FLAG)" == "0"
260 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
262 !if "$(DEBUG_FLAG)" == "0"
263 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
265 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
266 __NDEBUG_DEFINE_p = /DNDEBUG
268 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
269 __NDEBUG_DEFINE_p = /DNDEBUG
271 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
272 __NDEBUG_DEFINE_p_1 = /d NDEBUG
274 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
275 __NDEBUG_DEFINE_p_1 = /d NDEBUG
277 !if "$(USE_EXCEPTIONS)" == "0"
278 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
280 !if "$(USE_EXCEPTIONS)" == "0"
281 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
283 !if "$(USE_RTTI)" == "0"
284 __RTTI_DEFINE_p = /DwxNO_RTTI
286 !if "$(USE_RTTI)" == "0"
287 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
289 !if "$(USE_THREADS)" == "0"
290 __THREAD_DEFINE_p = /DwxNO_THREADS
292 !if "$(USE_THREADS)" == "0"
293 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
295 !if "$(UNICODE)" == "0"
296 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
298 !if "$(UNICODE)" == "1"
299 __UNICODE_DEFINE_p = /D_UNICODE
301 !if "$(UNICODE)" == "0"
302 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
304 !if "$(UNICODE)" == "1"
305 __UNICODE_DEFINE_p_1 = /d _UNICODE
308 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
311 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
313 !if "$(USE_CAIRO)" == "1"
314 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
316 !if "$(USE_CAIRO)" == "1"
317 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
319 !if "$(SHARED)" == "1"
320 __DLLFLAG_p = /DWXUSINGDLL
322 !if "$(SHARED)" == "1"
323 __DLLFLAG_p_1 = /d WXUSINGDLL
325 !if "$(MONOLITHIC)" == "0"
327 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
329 !if "$(MONOLITHIC)" == "0"
331 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
333 !if "$(MONOLITHIC)" == "1"
335 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
337 !if "$(MONOLITHIC)" == "1" && "$(USE_STC)" == "1"
338 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
340 !if "$(USE_GUI)" == "1"
341 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
343 !if "$(USE_GUI)" == "1"
344 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
346 !if "$(USE_GUI)" == "1"
347 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
350 __UNICOWS_LIB_p = unicows.lib
352 !if "$(USE_CAIRO)" == "1"
353 __CAIRO_LIB_p = cairo.lib
355 !if "$(USE_CAIRO)" == "1"
356 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
362 -if not exist $(OBJS) mkdir $(OBJS)
366 all: $(__penguin___depname) data
369 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
370 -if exist $(OBJS)\*.res del $(OBJS)\*.res
371 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
372 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
373 -if exist $(OBJS)\penguin.ilk del $(OBJS)\penguin.ilk
374 -if exist $(OBJS)\penguin.pdb del $(OBJS)\penguin.pdb
376 !if "$(USE_OPENGL)" == "1"
377 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_sample.res
378 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\penguin.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
379 $(PENGUIN_OBJECTS) $(PENGUIN_RESOURCES) wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gl.lib opengl32.lib glu32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) 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
384 if not exist $(OBJS) mkdir $(OBJS)
385 for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
387 $(OBJS)\penguin_sample.res: .\..\..\..\samples\sample.rc
388 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 __WXMSW__ $(__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 .\..\..\..\samples\sample.rc
390 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
391 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) .\penguin.cpp
393 $(OBJS)\penguin_dxfrenderer.obj: .\dxfrenderer.cpp
394 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) .\dxfrenderer.cpp
396 $(OBJS)\penguin_trackball.obj: .\trackball.c
397 $(CC) /c /nologo /TC /Fo$@ $(PENGUIN_CFLAGS) .\trackball.c