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/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) $(__DEBUGINFO) \
24 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(LIBDIRNAME) \
26 -I.\..\..\src\tiff -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib \
27 -I.\..\..\src\regex -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
29 $(OBJS)\forty_forty.obj \
30 $(OBJS)\forty_canvas.obj \
31 $(OBJS)\forty_card.obj \
32 $(OBJS)\forty_game.obj \
33 $(OBJS)\forty_pile.obj \
34 $(OBJS)\forty_playerdg.obj \
35 $(OBJS)\forty_scoredg.obj \
36 $(OBJS)\forty_scorefil.obj
38 .\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
40 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
42 ### Conditionally set variables: ###
44 !if "$(USE_GUI)" == "0"
47 !if "$(USE_GUI)" == "1"
50 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
53 !if "$(DEBUG_FLAG)" == "1"
56 !if "$(SHARED)" == "1"
59 !if "$(UNICODE)" == "1"
62 !if "$(WXUNIV)" == "1"
65 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
68 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
71 !if "$(DEBUG_INFO)" == "0"
74 !if "$(DEBUG_INFO)" == "1"
77 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
78 __DEBUG_DEFINE_p = -D__WXDEBUG__
80 !if "$(DEBUG_FLAG)" == "1"
81 __DEBUG_DEFINE_p = -D__WXDEBUG__
83 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
84 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
86 !if "$(DEBUG_FLAG)" == "1"
87 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
89 !if "$(SHARED)" == "1"
90 __DLLFLAG_p = -DWXUSINGDLL
92 !if "$(SHARED)" == "1"
93 __DLLFLAG_p_1 = -dWXUSINGDLL
95 !if "$(USE_GUI)" == "1"
96 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
98 !if "$(USE_GUI)" == "1"
99 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
101 !if "$(USE_GUI)" == "1"
102 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
104 !if "$(BUILD)" == "debug"
105 __OPTIMIZEFLAG_2 = -Od
107 !if "$(BUILD)" == "release"
108 __OPTIMIZEFLAG_2 = -O2
110 !if "$(RUNTIME_LIBS)" == "dynamic"
111 __RUNTIME_LIBS_6 = -tWR
113 !if "$(RUNTIME_LIBS)" == "static"
116 !if "$(RUNTIME_LIBS)" == "dynamic"
119 !if "$(RUNTIME_LIBS)" == "static"
122 !if "$(UNICODE)" == "1"
123 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
125 !if "$(UNICODE)" == "1"
126 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
128 !if "$(MONOLITHIC)" == "0"
129 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
131 !if "$(MONOLITHIC)" == "0"
133 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
135 !if "$(MONOLITHIC)" == "0"
137 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
139 !if "$(MONOLITHIC)" == "1"
141 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
143 !if "$(WXUNIV)" == "1"
144 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
146 !if "$(WXUNIV)" == "1"
147 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
153 -if not exist $(OBJS) mkdir $(OBJS)
157 all: $(OBJS)\forty.exe
159 $(OBJS)\forty_canvas.obj: .\canvas.cpp
160 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
162 $(OBJS)\forty_card.obj: .\card.cpp
163 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
165 $(OBJS)\forty_forty.obj: .\forty.cpp
166 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
168 $(OBJS)\forty_forty.res: .\forty.rc
169 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -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) $**
171 $(OBJS)\forty_game.obj: .\game.cpp
172 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
174 $(OBJS)\forty_pile.obj: .\pile.cpp
175 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
177 $(OBJS)\forty_playerdg.obj: .\playerdg.cpp
178 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
180 $(OBJS)\forty_scoredg.obj: .\scoredg.cpp
181 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
183 $(OBJS)\forty_scorefil.obj: .\scorefil.cpp
184 $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $**
187 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
188 -if exist $(OBJS)\*.res del $(OBJS)\*.res
189 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
191 $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty.res
192 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
193 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 import32.lib ole2w32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\forty_forty.res