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 # =========================================================================
11 !include ../../build/msw/config.bcc
13 # -------------------------------------------------------------------------
14 # Do not modify the rest of this file!
15 # -------------------------------------------------------------------------
17 !if "$(BCCDIR)" == "\.."
18 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
23 FORTY_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include \
24 $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
26 -I. $(__DLLFLAG_p) -I.\..\..\samples $(CXXFLAGS)
28 $(OBJS)\forty_forty.obj \
29 $(OBJS)\forty_canvas.obj \
30 $(OBJS)\forty_card.obj \
31 $(OBJS)\forty_game.obj \
32 $(OBJS)\forty_pile.obj \
33 $(OBJS)\forty_playerdg.obj \
34 $(OBJS)\forty_scoredg.obj \
35 $(OBJS)\forty_scorefil.obj
37 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
39 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
41 ### Conditionally set variables: ###
43 !if "$(SHARED)" == "0"
44 LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
46 !if "$(SHARED)" == "1"
47 LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
49 !if "$(USE_GUI)" == "0"
52 !if "$(USE_GUI)" == "1"
55 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
58 !if "$(DEBUG_FLAG)" == "1"
61 !if "$(SHARED)" == "1"
64 !if "$(UNICODE)" == "1"
67 !if "$(WXUNIV)" == "1"
70 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
73 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
76 !if "$(DEBUG_INFO)" == "0"
79 !if "$(DEBUG_INFO)" == "1"
82 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
83 __DEBUG_DEFINE_p = -D__WXDEBUG__
85 !if "$(DEBUG_FLAG)" == "1"
86 __DEBUG_DEFINE_p = -D__WXDEBUG__
88 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
89 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
91 !if "$(DEBUG_FLAG)" == "1"
92 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
94 !if "$(SHARED)" == "1"
95 __DLLFLAG_p = -DWXUSINGDLL
97 !if "$(SHARED)" == "1"
98 __DLLFLAG_p_1 = -dWXUSINGDLL
100 !if "$(USE_GUI)" == "1"
101 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
103 !if "$(USE_GUI)" == "1"
104 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
106 !if "$(USE_GUI)" == "1"
107 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
109 !if "$(BUILD)" == "debug"
110 __OPTIMIZEFLAG_2 = -Od
112 !if "$(BUILD)" == "release"
113 __OPTIMIZEFLAG_2 = -O2
115 !if "$(RUNTIME_LIBS)" == "dynamic"
116 __RUNTIME_LIBS_6 = -tWR
118 !if "$(RUNTIME_LIBS)" == "static"
121 !if "$(RUNTIME_LIBS)" == "dynamic"
124 !if "$(RUNTIME_LIBS)" == "static"
127 !if "$(UNICODE)" == "1"
128 __UNICODE_DEFINE_p = -D_UNICODE
130 !if "$(UNICODE)" == "1"
131 __UNICODE_DEFINE_p_1 = -d_UNICODE
134 __UNICOWS_LIB_p = unicows.lib
136 !if "$(MONOLITHIC)" == "0"
137 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
139 !if "$(MONOLITHIC)" == "0"
141 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
143 !if "$(MONOLITHIC)" == "0"
145 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
147 !if "$(MONOLITHIC)" == "1"
149 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
151 !if "$(WXUNIV)" == "1"
152 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
154 !if "$(WXUNIV)" == "1"
155 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
161 -if not exist $(OBJS) mkdir $(OBJS)
165 all: $(OBJS)\forty.exe
167 $(OBJS)\forty_canvas.obj: .\canvas.cpp
168 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
170 $(OBJS)\forty_card.obj: .\card.cpp
171 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
173 $(OBJS)\forty_forty.obj: .\forty.cpp
174 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
176 $(OBJS)\forty_forty.res: .\forty.rc
177 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\samples $**
179 $(OBJS)\forty_game.obj: .\game.cpp
180 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
182 $(OBJS)\forty_pile.obj: .\pile.cpp
183 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
185 $(OBJS)\forty_playerdg.obj: .\playerdg.cpp
186 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
188 $(OBJS)\forty_scoredg.obj: .\scoredg.cpp
189 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
191 $(OBJS)\forty_scorefil.obj: .\scorefil.cpp
192 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
195 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
196 -if exist $(OBJS)\*.res del $(OBJS)\*.res
197 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
198 -if exist $(OBJS)\forty.tds del $(OBJS)\forty.tds
199 -if exist $(OBJS)\forty.ilc del $(OBJS)\forty.ilc
200 -if exist $(OBJS)\forty.ild del $(OBJS)\forty.ild
201 -if exist $(OBJS)\forty.ilf del $(OBJS)\forty.ilf
202 -if exist $(OBJS)\forty.ils del $(OBJS)\forty.ils
204 $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty.res
205 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
206 c0w32.obj $(FORTY_OBJECTS),$@,, $(__WXLIB_HTML_p) $(__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) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\forty_forty.res