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__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 $(CPPFLAGS) $(CFLAGS)
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__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
38 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
39 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
40 $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\..\include \
41 $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
42 /I.\..\..\..\samples /DNOPCH $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) \
43 $(CPPFLAGS) $(CXXFLAGS)
45 $(OBJS)\penguin_penguin.obj \
46 $(OBJS)\penguin_dxfrenderer.obj \
47 $(OBJS)\penguin_trackball.obj
49 $(OBJS)\penguin_sample.res
51 ### Conditionally set variables: ###
53 !if "$(TOOLKIT)" == "GTK"
54 WIN32_TOOLKIT_LOWERCASE = gtk
56 !if "$(TOOLKIT)" == "MSW"
57 WIN32_TOOLKIT_LOWERCASE = msw
59 !if "$(TARGET_CPU)" == "AMD64"
62 !if "$(TARGET_CPU)" == "IA64"
65 !if "$(TARGET_CPU)" == "X64"
68 !if "$(TARGET_CPU)" == "amd64"
71 !if "$(TARGET_CPU)" == "ia64"
74 !if "$(TARGET_CPU)" == "x64"
77 !if "$(USE_GUI)" == "0"
80 !if "$(USE_GUI)" == "1"
81 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
83 !if "$(TOOLKIT)" == "MAC"
86 !if "$(OFFICIAL_BUILD)" == "1"
87 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
89 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
92 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
95 !if "$(UNICODE)" == "1"
98 !if "$(WXUNIV)" == "1"
101 !if "$(SHARED)" == "1"
104 !if "$(SHARED)" == "0"
107 !if "$(SHARED)" == "1"
110 !if "$(TARGET_CPU)" == "AMD64"
111 LINK_TARGET_CPU = /MACHINE:X64
113 !if "$(TARGET_CPU)" == "IA64"
114 LINK_TARGET_CPU = /MACHINE:IA64
116 !if "$(TARGET_CPU)" == "X64"
117 LINK_TARGET_CPU = /MACHINE:X64
119 !if "$(TARGET_CPU)" == "amd64"
120 LINK_TARGET_CPU = /MACHINE:X64
122 !if "$(TARGET_CPU)" == "ia64"
123 LINK_TARGET_CPU = /MACHINE:IA64
125 !if "$(TARGET_CPU)" == "x64"
126 LINK_TARGET_CPU = /MACHINE:X64
128 !if "$(MONOLITHIC)" == "0"
131 !if "$(MONOLITHIC)" == "1"
134 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
135 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
136 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
139 !if "$(USE_OPENGL)" == "1"
140 __penguin___depname = $(OBJS)\penguin.exe
142 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
145 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
148 !if "$(DEBUG_INFO)" == "0"
151 !if "$(DEBUG_INFO)" == "1"
154 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
155 __DEBUGINFO_1 = /DEBUG
157 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
160 !if "$(DEBUG_INFO)" == "0"
163 !if "$(DEBUG_INFO)" == "1"
164 __DEBUGINFO_1 = /DEBUG
166 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
167 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
169 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
172 !if "$(DEBUG_INFO)" == "0"
175 !if "$(DEBUG_INFO)" == "1"
176 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
178 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
179 ____DEBUGRUNTIME_3_p = /D_DEBUG
181 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
182 ____DEBUGRUNTIME_3_p =
184 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
185 ____DEBUGRUNTIME_3_p =
187 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
188 ____DEBUGRUNTIME_3_p = /D_DEBUG
190 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
191 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
193 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
194 ____DEBUGRUNTIME_3_p_1 =
196 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
197 ____DEBUGRUNTIME_3_p_1 =
199 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
200 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
202 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
205 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
208 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
211 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
214 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
217 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
218 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
220 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
221 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
223 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
226 !if "$(BUILD)" == "debug"
227 __OPTIMIZEFLAG_6 = /Od
229 !if "$(BUILD)" == "release"
230 __OPTIMIZEFLAG_6 = /O2
232 !if "$(USE_THREADS)" == "0"
235 !if "$(USE_THREADS)" == "1"
238 !if "$(RUNTIME_LIBS)" == "dynamic"
239 __RUNTIME_LIBS_10 = D
241 !if "$(RUNTIME_LIBS)" == "static"
242 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
244 !if "$(USE_RTTI)" == "0"
247 !if "$(USE_RTTI)" == "1"
250 !if "$(USE_EXCEPTIONS)" == "0"
251 __EXCEPTIONSFLAG_12 =
253 !if "$(USE_EXCEPTIONS)" == "1"
254 __EXCEPTIONSFLAG_12 = /EHsc
256 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
257 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
259 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
260 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
262 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
263 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
265 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
266 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
268 !if "$(WXUNIV)" == "1"
269 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
271 !if "$(WXUNIV)" == "1"
272 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
274 !if "$(DEBUG_FLAG)" == "0"
275 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
277 !if "$(DEBUG_FLAG)" == "0"
278 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
280 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
281 __NDEBUG_DEFINE_p = /DNDEBUG
283 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
284 __NDEBUG_DEFINE_p = /DNDEBUG
286 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
287 __NDEBUG_DEFINE_p_1 = /d NDEBUG
289 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
290 __NDEBUG_DEFINE_p_1 = /d NDEBUG
292 !if "$(USE_EXCEPTIONS)" == "0"
293 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
295 !if "$(USE_EXCEPTIONS)" == "0"
296 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
298 !if "$(USE_RTTI)" == "0"
299 __RTTI_DEFINE_p = /DwxNO_RTTI
301 !if "$(USE_RTTI)" == "0"
302 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
304 !if "$(USE_THREADS)" == "0"
305 __THREAD_DEFINE_p = /DwxNO_THREADS
307 !if "$(USE_THREADS)" == "0"
308 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
310 !if "$(UNICODE)" == "0"
311 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
313 !if "$(UNICODE)" == "1"
314 __UNICODE_DEFINE_p = /D_UNICODE
316 !if "$(UNICODE)" == "0"
317 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
319 !if "$(UNICODE)" == "1"
320 __UNICODE_DEFINE_p_1 = /d _UNICODE
323 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
326 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
328 !if "$(USE_CAIRO)" == "1"
329 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
331 !if "$(USE_CAIRO)" == "1"
332 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
334 !if "$(SHARED)" == "1"
335 __DLLFLAG_p = /DWXUSINGDLL
337 !if "$(SHARED)" == "1"
338 __DLLFLAG_p_1 = /d WXUSINGDLL
340 !if "$(MONOLITHIC)" == "0"
342 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
344 !if "$(MONOLITHIC)" == "0"
346 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
348 !if "$(MONOLITHIC)" == "1"
350 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
352 !if "$(USE_GUI)" == "1"
353 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
355 !if "$(USE_GUI)" == "1"
356 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
358 !if "$(USE_GUI)" == "1"
359 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
362 __UNICOWS_LIB_p = unicows.lib
364 !if "$(USE_CAIRO)" == "1"
365 __CAIRO_LIB_p = cairo.lib
367 !if "$(USE_CAIRO)" == "1"
368 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
374 -if not exist $(OBJS) mkdir $(OBJS)
378 all: $(__penguin___depname) data
381 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
382 -if exist $(OBJS)\*.res del $(OBJS)\*.res
383 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
384 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
385 -if exist $(OBJS)\penguin.ilk del $(OBJS)\penguin.ilk
386 -if exist $(OBJS)\penguin.pdb del $(OBJS)\penguin.pdb
388 !if "$(USE_OPENGL)" == "1"
389 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_sample.res
390 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\penguin.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
391 $(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_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
396 if not exist $(OBJS) mkdir $(OBJS)
397 for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
399 $(OBJS)\penguin_sample.res: .\..\..\..\samples\sample.rc
400 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 .\..\..\..\samples\sample.rc
402 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
403 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) .\penguin.cpp
405 $(OBJS)\penguin_dxfrenderer.obj: .\dxfrenderer.cpp
406 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) .\dxfrenderer.cpp
408 $(OBJS)\penguin_trackball.obj: .\trackball.c
409 $(CC) /c /nologo /TC /Fo$@ $(PENGUIN_CFLAGS) .\trackball.c