1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.7 (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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
20 .\..\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(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 $(__DEBUGINFO_2) \
25 $(____DEBUGRUNTIME_3_p) $(__OPTIMIZEFLAG_6) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
26 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\..\include \
29 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH $(CPPFLAGS) \
31 PENGUIN_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
32 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.pdb $(__DEBUGINFO_2) \
33 $(____DEBUGRUNTIME_3_p) $(__OPTIMIZEFLAG_6) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
34 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
35 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
36 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\..\include \
37 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH \
38 $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) $(CPPFLAGS) $(CXXFLAGS)
40 $(OBJS)\penguin_penguin.obj \
41 $(OBJS)\penguin_dxfrenderer.obj \
42 $(OBJS)\penguin_trackball.obj
44 $(OBJS)\penguin_penguin.res
46 ### Conditionally set variables: ###
48 !if "$(USE_GUI)" == "0"
51 !if "$(USE_GUI)" == "1"
54 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
57 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
60 !if "$(UNICODE)" == "1"
63 !if "$(WXUNIV)" == "1"
66 !if "$(TARGET_CPU)" == "AMD64"
67 DIR_SUFFIX_CPU = _amd64
69 !if "$(TARGET_CPU)" == "IA64"
70 DIR_SUFFIX_CPU = _ia64
72 !if "$(TARGET_CPU)" == "amd64"
73 DIR_SUFFIX_CPU = _amd64
75 !if "$(TARGET_CPU)" == "ia64"
76 DIR_SUFFIX_CPU = _ia64
78 !if "$(SHARED)" == "1"
81 !if "$(SHARED)" == "0"
84 !if "$(SHARED)" == "1"
87 !if "$(TARGET_CPU)" == "AMD64"
88 LINK_TARGET_CPU = /MACHINE:AMD64
90 !if "$(TARGET_CPU)" == "IA64"
91 LINK_TARGET_CPU = /MACHINE:IA64
93 !if "$(TARGET_CPU)" == "amd64"
94 LINK_TARGET_CPU = /MACHINE:AMD64
96 !if "$(TARGET_CPU)" == "ia64"
97 LINK_TARGET_CPU = /MACHINE:IA64
99 !if "$(MONOLITHIC)" == "0"
102 !if "$(MONOLITHIC)" == "1"
105 !if "$(USE_OPENGL)" == "1"
106 __penguin___depname = $(OBJS)\penguin.exe
108 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
111 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
114 !if "$(DEBUG_INFO)" == "0"
117 !if "$(DEBUG_INFO)" == "1"
120 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
121 __DEBUGINFO_1 = /DEBUG
123 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
126 !if "$(DEBUG_INFO)" == "0"
129 !if "$(DEBUG_INFO)" == "1"
130 __DEBUGINFO_1 = /DEBUG
132 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
133 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
135 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
138 !if "$(DEBUG_INFO)" == "0"
141 !if "$(DEBUG_INFO)" == "1"
142 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
144 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
145 ____DEBUGRUNTIME_3_p = /D_DEBUG
147 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
148 ____DEBUGRUNTIME_3_p =
150 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
151 ____DEBUGRUNTIME_3_p =
153 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
154 ____DEBUGRUNTIME_3_p = /D_DEBUG
156 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
157 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
159 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
160 ____DEBUGRUNTIME_3_p_1 =
162 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
163 ____DEBUGRUNTIME_3_p_1 =
165 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
166 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
168 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
171 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
174 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
177 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
180 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
183 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
184 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
186 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
187 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
189 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
192 !if "$(BUILD)" == "debug"
193 __OPTIMIZEFLAG_6 = /Od
195 !if "$(BUILD)" == "release"
196 __OPTIMIZEFLAG_6 = /O2
198 !if "$(USE_THREADS)" == "0"
201 !if "$(USE_THREADS)" == "1"
204 !if "$(RUNTIME_LIBS)" == "dynamic"
205 __RUNTIME_LIBS_10 = D
207 !if "$(RUNTIME_LIBS)" == "static"
208 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
210 !if "$(USE_RTTI)" == "0"
213 !if "$(USE_RTTI)" == "1"
216 !if "$(USE_EXCEPTIONS)" == "0"
217 __EXCEPTIONSFLAG_12 =
219 !if "$(USE_EXCEPTIONS)" == "1"
220 __EXCEPTIONSFLAG_12 = /EHsc
222 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
223 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
225 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
226 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
228 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
229 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
231 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
232 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
234 !if "$(WXUNIV)" == "1"
235 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
237 !if "$(WXUNIV)" == "1"
238 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
240 !if "$(DEBUG_FLAG)" == "0"
241 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
243 !if "$(DEBUG_FLAG)" == "0"
244 __DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
246 !if "$(USE_EXCEPTIONS)" == "0"
247 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
249 !if "$(USE_EXCEPTIONS)" == "0"
250 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
252 !if "$(USE_RTTI)" == "0"
253 __RTTI_DEFINE_p = /DwxNO_RTTI
255 !if "$(USE_RTTI)" == "0"
256 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
258 !if "$(USE_THREADS)" == "0"
259 __THREAD_DEFINE_p = /DwxNO_THREADS
261 !if "$(USE_THREADS)" == "0"
262 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
264 !if "$(UNICODE)" == "0"
265 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
267 !if "$(UNICODE)" == "1"
268 __UNICODE_DEFINE_p = /D_UNICODE
270 !if "$(UNICODE)" == "0"
271 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
273 !if "$(UNICODE)" == "1"
274 __UNICODE_DEFINE_p_1 = /d _UNICODE
277 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
280 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
282 !if "$(USE_GDIPLUS)" == "1"
283 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
285 !if "$(USE_GDIPLUS)" == "1"
286 __GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
288 !if "$(SHARED)" == "1"
289 __DLLFLAG_p = /DWXUSINGDLL
291 !if "$(SHARED)" == "1"
292 __DLLFLAG_p_1 = /d WXUSINGDLL
294 !if "$(MONOLITHIC)" == "0"
296 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
298 !if "$(MONOLITHIC)" == "0"
300 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
302 !if "$(MONOLITHIC)" == "1"
304 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
306 !if "$(USE_GUI)" == "1"
307 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
309 !if "$(USE_GUI)" == "1"
310 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
312 !if "$(USE_GUI)" == "1"
313 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
316 __UNICOWS_LIB_p = unicows.lib
318 !if "$(USE_GDIPLUS)" == "1"
319 __GDIPLUS_LIB_p = gdiplus.lib
325 -if not exist $(OBJS) mkdir $(OBJS)
329 all: $(__penguin___depname) data
332 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
333 -if exist $(OBJS)\*.res del $(OBJS)\*.res
334 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
335 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
336 -if exist $(OBJS)\penguin.ilk del $(OBJS)\penguin.ilk
337 -if exist $(OBJS)\penguin.pdb del $(OBJS)\penguin.pdb
339 !if "$(USE_OPENGL)" == "1"
340 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin.res
341 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\penguin.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
342 $(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) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_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
347 if not exist $(OBJS) mkdir $(OBJS)
348 for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
350 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
351 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) .\penguin.cpp
353 $(OBJS)\penguin_dxfrenderer.obj: .\dxfrenderer.cpp
354 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) .\dxfrenderer.cpp
356 $(OBJS)\penguin_trackball.obj: .\trackball.c
357 $(CC) /c /nologo /TC /Fo$@ $(PENGUIN_CFLAGS) .\trackball.c
359 $(OBJS)\penguin_penguin.res: .\penguin.rc
360 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_3_p_1) $(__NO_VC_CRTDBG_p_1) /d __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) /i $(SETUPHDIR) /i .\..\..\..\include /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\..\samples /d NOPCH .\penguin.rc