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 .\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 LIFE_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
18 $(__DEBUGINFO_0) /Fd$(OBJS)\life.pdb $(____DEBUGRUNTIME_2_p) \
19 $(__OPTIMIZEFLAG_4) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
20 $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff \
21 /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \
22 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS $(CXXFLAGS)
24 $(OBJS)\life_life.obj \
25 $(OBJS)\life_dialogs.obj \
26 $(OBJS)\life_game.obj \
27 $(OBJS)\life_reader.obj \
30 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
32 ### Conditionally set variables: ###
34 !if "$(USE_GUI)" == "0"
37 !if "$(USE_GUI)" == "1"
40 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
43 !if "$(DEBUG_FLAG)" == "1"
46 !if "$(SHARED)" == "1"
49 !if "$(UNICODE)" == "1"
52 !if "$(WXUNIV)" == "1"
55 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
58 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
61 !if "$(DEBUG_INFO)" == "0"
64 !if "$(DEBUG_INFO)" == "1"
67 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
68 __DEBUGINFO_1 = /DEBUG
70 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
73 !if "$(DEBUG_INFO)" == "0"
76 !if "$(DEBUG_INFO)" == "1"
77 __DEBUGINFO_1 = /DEBUG
79 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
82 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
85 !if "$(DEBUG_INFO)" == "0"
88 !if "$(DEBUG_INFO)" == "1"
91 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
94 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
97 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
98 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
100 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
101 __DEBUG_DEFINE_p = /D__WXDEBUG__
103 !if "$(DEBUG_FLAG)" == "1"
104 __DEBUG_DEFINE_p = /D__WXDEBUG__
106 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
107 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
109 !if "$(DEBUG_FLAG)" == "1"
110 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
112 !if "$(SHARED)" == "1"
113 __DLLFLAG_p = /DWXUSINGDLL
115 !if "$(SHARED)" == "1"
116 __DLLFLAG_p_1 = /d WXUSINGDLL
118 !if "$(USE_GUI)" == "1"
119 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
121 !if "$(USE_GUI)" == "1"
122 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
124 !if "$(USE_GUI)" == "1"
125 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
127 !if "$(BUILD)" == "debug"
128 __OPTIMIZEFLAG_4 = /Od
130 !if "$(BUILD)" == "release"
131 __OPTIMIZEFLAG_4 = /O2
133 !if "$(RUNTIME_LIBS)" == "dynamic"
136 !if "$(RUNTIME_LIBS)" == "static"
139 !if "$(UNICODE)" == "1"
140 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
142 !if "$(UNICODE)" == "1"
143 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=1
145 !if "$(MONOLITHIC)" == "0"
146 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
148 !if "$(MONOLITHIC)" == "0"
150 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
152 !if "$(MONOLITHIC)" == "1"
154 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
156 !if "$(WXUNIV)" == "1"
157 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
159 !if "$(WXUNIV)" == "1"
160 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
162 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
163 ____DEBUGINFO_2_p = /D_DEBUG
165 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
168 !if "$(DEBUG_INFO)" == "0"
171 !if "$(DEBUG_INFO)" == "1"
172 ____DEBUGINFO_2_p = /D_DEBUG
174 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
175 ____DEBUGINFO_2_p_1 = /d _DEBUG
177 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
178 ____DEBUGINFO_2_p_1 =
180 !if "$(DEBUG_INFO)" == "0"
181 ____DEBUGINFO_2_p_1 =
183 !if "$(DEBUG_INFO)" == "1"
184 ____DEBUGINFO_2_p_1 = /d _DEBUG
186 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
187 ____DEBUGRUNTIME_2_p =
189 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
190 ____DEBUGRUNTIME_2_p = /D_DEBUG
192 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
193 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
195 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
196 ____DEBUGRUNTIME_2_p_1 =
198 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
199 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
201 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
202 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
208 -if not exist $(OBJS) mkdir $(OBJS)
212 all: $(OBJS)\life.exe data
214 $(OBJS)\life_dialogs.obj: .\dialogs.cpp
215 $(CXX) /c /nologo /TP /Fo$@ $(LIFE_CXXFLAGS) $**
217 $(OBJS)\life_game.obj: .\game.cpp
218 $(CXX) /c /nologo /TP /Fo$@ $(LIFE_CXXFLAGS) $**
220 $(OBJS)\life_life.obj: .\life.cpp
221 $(CXX) /c /nologo /TP /Fo$@ $(LIFE_CXXFLAGS) $**
223 $(OBJS)\life_life.res: .\life.rc
224 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\include /i $(LIBDIRNAME) /i .\..\..\src\tiff /i .\..\..\src\jpeg /i .\..\..\src\png /i .\..\..\src\zlib /i .\..\..\src\regex /i .\..\..\src\expat\lib /i . $(__DLLFLAG_p_1) /d _WINDOWS $**
226 $(OBJS)\life_reader.obj: .\reader.cpp
227 $(CXX) /c /nologo /TP /Fo$@ $(LIFE_CXXFLAGS) $**
230 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
231 -if exist $(OBJS)\*.res del $(OBJS)\*.res
232 -if exist $(OBJS)\life.exe del $(OBJS)\life.exe
235 if not exist $(OBJS) mkdir $(OBJS)
236 for %f in (samples.inc breeder.lif) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
238 $(OBJS)\life.exe: $(LIFE_OBJECTS) $(OBJS)\life_life.res
239 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
240 $(LIFE_OBJECTS) $(__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 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