1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (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 # -------------------------------------------------------------------------
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 PENGUIN_CFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
18 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.pdb $(____DEBUGRUNTIME_2_p) \
19 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
20 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
21 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples \
23 PENGUIN_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) \
24 /DWIN32 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.pdb $(____DEBUGRUNTIME_2_p) \
25 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
27 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples \
30 $(OBJS)\penguin_penguin.obj \
31 $(OBJS)\penguin_lw.obj \
32 $(OBJS)\penguin_trackball.obj \
33 $(OBJS)\penguin_penguin.res
35 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
37 ### Conditionally set variables: ###
39 !if "$(SHARED)" == "0"
40 LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
42 !if "$(SHARED)" == "1"
43 LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
45 !if "$(USE_GUI)" == "0"
48 !if "$(USE_GUI)" == "1"
51 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
54 !if "$(DEBUG_FLAG)" == "1"
57 !if "$(SHARED)" == "1"
60 !if "$(UNICODE)" == "1"
63 !if "$(WXUNIV)" == "1"
66 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
69 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
72 !if "$(DEBUG_INFO)" == "0"
75 !if "$(DEBUG_INFO)" == "1"
78 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
79 __DEBUGINFO_1 = /DEBUG
81 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
84 !if "$(DEBUG_INFO)" == "0"
87 !if "$(DEBUG_INFO)" == "1"
88 __DEBUGINFO_1 = /DEBUG
90 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
93 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
96 !if "$(DEBUG_INFO)" == "0"
99 !if "$(DEBUG_INFO)" == "1"
102 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
105 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
108 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
109 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
111 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
112 __DEBUG_DEFINE_p = /D__WXDEBUG__
114 !if "$(DEBUG_FLAG)" == "1"
115 __DEBUG_DEFINE_p = /D__WXDEBUG__
117 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
118 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
120 !if "$(DEBUG_FLAG)" == "1"
121 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
123 !if "$(SHARED)" == "1"
124 __DLLFLAG_p = /DWXUSINGDLL
126 !if "$(SHARED)" == "1"
127 __DLLFLAG_p_1 = /d WXUSINGDLL
129 !if "$(USE_GUI)" == "1"
130 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
132 !if "$(USE_GUI)" == "1"
133 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
135 !if "$(USE_GUI)" == "1"
136 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
138 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
139 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
141 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
142 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
144 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
145 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
147 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
148 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
150 !if "$(BUILD)" == "debug"
151 __OPTIMIZEFLAG_4 = /Od
153 !if "$(BUILD)" == "release"
154 __OPTIMIZEFLAG_4 = /O2
156 !if "$(RUNTIME_LIBS)" == "dynamic"
159 !if "$(RUNTIME_LIBS)" == "static"
162 !if "$(UNICODE)" == "1"
163 __UNICODE_DEFINE_p = /D_UNICODE
165 !if "$(UNICODE)" == "1"
166 __UNICODE_DEFINE_p_1 = /d _UNICODE
169 __UNICOWS_LIB_p = unicows.lib
171 !if "$(MONOLITHIC)" == "0"
172 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
174 !if "$(MONOLITHIC)" == "0"
176 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
178 !if "$(MONOLITHIC)" == "1"
180 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
182 !if "$(WXUNIV)" == "1"
183 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
185 !if "$(WXUNIV)" == "1"
186 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
188 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
189 ____DEBUGINFO_2_p = /D_DEBUG
191 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
194 !if "$(DEBUG_INFO)" == "0"
197 !if "$(DEBUG_INFO)" == "1"
198 ____DEBUGINFO_2_p = /D_DEBUG
200 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
201 ____DEBUGINFO_2_p_1 = /d _DEBUG
203 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
204 ____DEBUGINFO_2_p_1 =
206 !if "$(DEBUG_INFO)" == "0"
207 ____DEBUGINFO_2_p_1 =
209 !if "$(DEBUG_INFO)" == "1"
210 ____DEBUGINFO_2_p_1 = /d _DEBUG
212 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
213 ____DEBUGRUNTIME_2_p =
215 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
216 ____DEBUGRUNTIME_2_p = /D_DEBUG
218 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
219 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
221 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
222 ____DEBUGRUNTIME_2_p_1 =
224 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
225 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
227 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
228 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
234 -if not exist $(OBJS) mkdir $(OBJS)
238 all: $(OBJS)\penguin.exe data
240 $(OBJS)\penguin_lw.obj: .\lw.cpp
241 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) $**
243 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
244 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) $**
246 $(OBJS)\penguin_penguin.res: .\penguin.rc
247 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 $**
249 $(OBJS)\penguin_trackball.obj: .\trackball.c
250 $(CC) /c /nologo /TC /Fo$@ $(PENGUIN_CFLAGS) $**
253 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
254 -if exist $(OBJS)\*.res del $(OBJS)\*.res
255 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
256 -if exist $(OBJS)\penguin.ilk del $(OBJS)\penguin.ilk
257 -if exist $(OBJS)\penguin.pdb del $(OBJS)\penguin.pdb
260 if not exist $(OBJS) mkdir $(OBJS)
261 for %f in (penguin.lwo) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
263 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin.res
264 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
265 $(PENGUIN_OBJECTS) wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_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$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib