]>
Commit | Line | Data |
---|---|---|
264af224 VS |
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 | # ========================================================================= | |
62448488 | 6 | |
264af224 VS |
7 | !ifndef BCCDIR |
8 | BCCDIR = $(MAKEDIR)\.. | |
62448488 JS |
9 | !endif |
10 | ||
fd9f42b6 | 11 | !include ../../build/msw/config.bcc |
62448488 | 12 | |
264af224 VS |
13 | # ------------------------------------------------------------------------- |
14 | # Do not modify the rest of this file! | |
15 | # ------------------------------------------------------------------------- | |
62448488 | 16 | |
264af224 VS |
17 | !if "$(BCCDIR)" == "\.." |
18 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 | |
19 | !endif | |
20 | ||
21 | ### Variables: ### | |
22 | ||
1c3a6972 VS |
23 | FORTY_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include \ |
24 | $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
75a0a7b7 VS |
25 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \ |
26 | -I. $(__DLLFLAG_p) -I.\..\..\samples $(CXXFLAGS) | |
264af224 VS |
27 | FORTY_OBJECTS = \ |
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 | |
264af224 VS |
36 | OBJS = \ |
37 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
75a0a7b7 VS |
38 | SETUPHDIR = \ |
39 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
264af224 VS |
40 | |
41 | ### Conditionally set variables: ### | |
42 | ||
75a0a7b7 VS |
43 | !if "$(SHARED)" == "0" |
44 | LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG) | |
45 | !endif | |
46 | !if "$(SHARED)" == "1" | |
47 | LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG) | |
48 | !endif | |
264af224 VS |
49 | !if "$(USE_GUI)" == "0" |
50 | PORTNAME = base | |
51 | !endif | |
52 | !if "$(USE_GUI)" == "1" | |
53 | PORTNAME = msw | |
54 | !endif | |
55 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
56 | WXDEBUGFLAG = d | |
57 | !endif | |
58 | !if "$(DEBUG_FLAG)" == "1" | |
59 | WXDEBUGFLAG = d | |
60 | !endif | |
61 | !if "$(SHARED)" == "1" | |
62 | WXDLLFLAG = dll | |
63 | !endif | |
64 | !if "$(UNICODE)" == "1" | |
65 | WXUNICODEFLAG = u | |
66 | !endif | |
67 | !if "$(WXUNIV)" == "1" | |
68 | WXUNIVNAME = univ | |
69 | !endif | |
70 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
71 | __DEBUGINFO = -v | |
72 | !endif | |
73 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
74 | __DEBUGINFO = -v- | |
75 | !endif | |
76 | !if "$(DEBUG_INFO)" == "0" | |
77 | __DEBUGINFO = -v- | |
78 | !endif | |
79 | !if "$(DEBUG_INFO)" == "1" | |
80 | __DEBUGINFO = -v | |
81 | !endif | |
82 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
83 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
84 | !endif | |
85 | !if "$(DEBUG_FLAG)" == "1" | |
86 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
87 | !endif | |
88 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
89 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
90 | !endif | |
91 | !if "$(DEBUG_FLAG)" == "1" | |
92 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
93 | !endif | |
94 | !if "$(SHARED)" == "1" | |
95 | __DLLFLAG_p = -DWXUSINGDLL | |
96 | !endif | |
97 | !if "$(SHARED)" == "1" | |
98 | __DLLFLAG_p_1 = -dWXUSINGDLL | |
99 | !endif | |
100 | !if "$(USE_GUI)" == "1" | |
101 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
102 | !endif | |
103 | !if "$(USE_GUI)" == "1" | |
104 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
105 | !endif | |
106 | !if "$(USE_GUI)" == "1" | |
107 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
108 | !endif | |
109 | !if "$(BUILD)" == "debug" | |
110 | __OPTIMIZEFLAG_2 = -Od | |
111 | !endif | |
112 | !if "$(BUILD)" == "release" | |
113 | __OPTIMIZEFLAG_2 = -O2 | |
114 | !endif | |
115 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
116 | __RUNTIME_LIBS_6 = -tWR | |
117 | !endif | |
118 | !if "$(RUNTIME_LIBS)" == "static" | |
119 | __RUNTIME_LIBS_6 = | |
120 | !endif | |
121 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
122 | __RUNTIME_LIBS_7 = i | |
123 | !endif | |
124 | !if "$(RUNTIME_LIBS)" == "static" | |
125 | __RUNTIME_LIBS_7 = | |
126 | !endif | |
127 | !if "$(UNICODE)" == "1" | |
ec08d395 | 128 | __UNICODE_DEFINE_p = -D_UNICODE |
264af224 VS |
129 | !endif |
130 | !if "$(UNICODE)" == "1" | |
ec08d395 | 131 | __UNICODE_DEFINE_p_1 = -d_UNICODE |
264af224 | 132 | !endif |
4e209a20 VS |
133 | !if "$(MSLU)" == "1" |
134 | __UNICOWS_LIB_p = unicows.lib | |
135 | !endif | |
264af224 VS |
136 | !if "$(MONOLITHIC)" == "0" |
137 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
138 | !endif | |
139 | !if "$(MONOLITHIC)" == "0" | |
140 | __WXLIB_CORE_p = \ | |
141 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
142 | !endif | |
143 | !if "$(MONOLITHIC)" == "0" | |
144 | __WXLIB_HTML_p = \ | |
145 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib | |
146 | !endif | |
147 | !if "$(MONOLITHIC)" == "1" | |
148 | __WXLIB_MONO_p = \ | |
149 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
150 | !endif | |
151 | !if "$(WXUNIV)" == "1" | |
152 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
153 | !endif | |
154 | !if "$(WXUNIV)" == "1" | |
155 | __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__ | |
156 | !endif | |
157 | ||
158 | ||
159 | all: $(OBJS) | |
160 | $(OBJS): | |
161 | -if not exist $(OBJS) mkdir $(OBJS) | |
162 | ||
163 | ### Targets: ### | |
164 | ||
165 | all: $(OBJS)\forty.exe | |
166 | ||
167 | $(OBJS)\forty_canvas.obj: .\canvas.cpp | |
168 | $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $** | |
169 | ||
170 | $(OBJS)\forty_card.obj: .\card.cpp | |
171 | $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $** | |
172 | ||
173 | $(OBJS)\forty_forty.obj: .\forty.cpp | |
174 | $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $** | |
175 | ||
176 | $(OBJS)\forty_forty.res: .\forty.rc | |
ec08d395 | 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 $** |
264af224 VS |
178 | |
179 | $(OBJS)\forty_game.obj: .\game.cpp | |
180 | $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $** | |
181 | ||
182 | $(OBJS)\forty_pile.obj: .\pile.cpp | |
183 | $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $** | |
184 | ||
185 | $(OBJS)\forty_playerdg.obj: .\playerdg.cpp | |
186 | $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $** | |
187 | ||
188 | $(OBJS)\forty_scoredg.obj: .\scoredg.cpp | |
189 | $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $** | |
190 | ||
191 | $(OBJS)\forty_scorefil.obj: .\scorefil.cpp | |
192 | $(CXX) -q -c -P -o$@ $(FORTY_CXXFLAGS) $** | |
193 | ||
194 | clean: | |
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 | |
ec08d395 JS |
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 | |
62448488 | 203 | |
264af224 | 204 | $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty.res |
1c3a6972 | 205 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
ec08d395 | 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 |
264af224 | 207 | | |