1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (http://bakefile.sourceforge.net)
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 # -------------------------------------------------------------------------
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 PENGUIN_CFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
21 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.pdb $(____DEBUGRUNTIME_2_p) \
22 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
24 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH \
26 PENGUIN_CXXFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
27 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.pdb $(____DEBUGRUNTIME_2_p) \
28 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
29 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
30 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH \
31 $(__EXCEPTIONSFLAG_8) $(__EXCEPTIONSFLAG_9) $(CPPFLAGS) $(CXXFLAGS)
33 $(OBJS)\penguin_penguin.obj \
34 $(OBJS)\penguin_lw.obj \
35 $(OBJS)\penguin_trackball.obj \
36 $(OBJS)\penguin_penguin.res
38 ### Conditionally set variables: ###
40 !if "$(USE_GUI)" == "0"
43 !if "$(USE_GUI)" == "1"
46 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49 !if "$(DEBUG_FLAG)" == "1"
52 !if "$(UNICODE)" == "1"
55 !if "$(WXUNIV)" == "1"
58 !if "$(SHARED)" == "1"
61 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
64 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
67 !if "$(DEBUG_INFO)" == "0"
70 !if "$(DEBUG_INFO)" == "1"
73 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
74 __DEBUGINFO_1 = /DEBUG
76 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
79 !if "$(DEBUG_INFO)" == "0"
82 !if "$(DEBUG_INFO)" == "1"
83 __DEBUGINFO_1 = /DEBUG
85 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
86 ____DEBUGRUNTIME_2_p =
88 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
89 ____DEBUGRUNTIME_2_p = /D_DEBUG
91 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
92 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
94 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
95 ____DEBUGINFO_2_p = /D_DEBUG
97 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
100 !if "$(DEBUG_INFO)" == "0"
103 !if "$(DEBUG_INFO)" == "1"
104 ____DEBUGINFO_2_p = /D_DEBUG
106 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
107 ____DEBUGRUNTIME_2_p_1 =
109 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
110 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
112 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
113 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
115 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
116 ____DEBUGINFO_2_p_1 = /d _DEBUG
118 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
119 ____DEBUGINFO_2_p_1 =
121 !if "$(DEBUG_INFO)" == "0"
122 ____DEBUGINFO_2_p_1 =
124 !if "$(DEBUG_INFO)" == "1"
125 ____DEBUGINFO_2_p_1 = /d _DEBUG
127 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
130 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
133 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
134 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
136 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
139 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
142 !if "$(DEBUG_INFO)" == "0"
145 !if "$(DEBUG_INFO)" == "1"
148 !if "$(BUILD)" == "debug"
149 __OPTIMIZEFLAG_4 = /Od
151 !if "$(BUILD)" == "release"
152 __OPTIMIZEFLAG_4 = /O2
154 !if "$(RUNTIME_LIBS)" == "dynamic"
157 !if "$(RUNTIME_LIBS)" == "static"
160 !if "$(USE_EXCEPTIONS)" == "0"
163 !if "$(USE_EXCEPTIONS)" == "1"
164 __EXCEPTIONSFLAG_8 = /GR
166 !if "$(USE_EXCEPTIONS)" == "0"
169 !if "$(USE_EXCEPTIONS)" == "1"
170 __EXCEPTIONSFLAG_9 = /GX
172 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
173 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
175 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
176 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
178 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
179 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
181 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
182 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
184 !if "$(WXUNIV)" == "1"
185 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
187 !if "$(WXUNIV)" == "1"
188 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
190 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
191 __DEBUG_DEFINE_p = /D__WXDEBUG__
193 !if "$(DEBUG_FLAG)" == "1"
194 __DEBUG_DEFINE_p = /D__WXDEBUG__
196 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
197 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
199 !if "$(DEBUG_FLAG)" == "1"
200 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
202 !if "$(UNICODE)" == "1"
203 __UNICODE_DEFINE_p = /D_UNICODE
205 !if "$(UNICODE)" == "1"
206 __UNICODE_DEFINE_p_1 = /d _UNICODE
208 !if "$(SHARED)" == "1"
209 __DLLFLAG_p = /DWXUSINGDLL
211 !if "$(SHARED)" == "1"
212 __DLLFLAG_p_1 = /d WXUSINGDLL
214 !if "$(MONOLITHIC)" == "0"
216 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
218 !if "$(MONOLITHIC)" == "0"
220 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
222 !if "$(MONOLITHIC)" == "1"
224 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
226 !if "$(USE_GUI)" == "1"
227 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
229 !if "$(USE_GUI)" == "1"
230 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
232 !if "$(USE_GUI)" == "1"
233 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
236 __UNICOWS_LIB_p = unicows.lib
238 !if "$(SHARED)" == "0"
239 LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
241 !if "$(SHARED)" == "1"
242 LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
248 -if not exist $(OBJS) mkdir $(OBJS)
252 all: $(OBJS)\penguin.exe data
255 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
256 -if exist $(OBJS)\*.res del $(OBJS)\*.res
257 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
258 -if exist $(OBJS)\penguin.ilk del $(OBJS)\penguin.ilk
259 -if exist $(OBJS)\penguin.pdb del $(OBJS)\penguin.pdb
261 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin.res
262 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
263 $(PENGUIN_OBJECTS) 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 $(__UNICOWS_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 oleacc.lib odbc32.lib
267 if not exist $(OBJS) mkdir $(OBJS)
268 for %f in (penguin.lwo) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
270 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
271 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) $**
273 $(OBJS)\penguin_lw.obj: .\lw.cpp
274 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) $**
276 $(OBJS)\penguin_trackball.obj: .\trackball.c
277 $(CC) /c /nologo /TC /Fo$@ $(PENGUIN_CFLAGS) $**
279 $(OBJS)\penguin_penguin.res: .\penguin.rc
280 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\..\samples /d NOPCH $**