]>
Commit | Line | Data |
---|---|---|
1 | # ========================================================================= | |
2 | # This makefile was generated by | |
3 | # Bakefile 0.1.8 (http://bakefile.sourceforge.net) | |
4 | # Do not modify, all changes will be overwritten! | |
5 | # ========================================================================= | |
6 | ||
7 | .autodepend | |
8 | ||
9 | !ifndef BCCDIR | |
10 | !ifndef MAKEDIR | |
11 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 | |
12 | !endif | |
13 | BCCDIR = $(MAKEDIR)\.. | |
14 | !endif | |
15 | ||
16 | !include ../../build/msw/config.bcc | |
17 | ||
18 | # ------------------------------------------------------------------------- | |
19 | # Do not modify the rest of this file! | |
20 | # ------------------------------------------------------------------------- | |
21 | ||
22 | ### Variables: ### | |
23 | ||
24 | WX_RELEASE_NODOT = 25 | |
25 | OBJS = \ | |
26 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
27 | LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG) | |
28 | SETUPHDIR = \ | |
29 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
30 | DBBROWSE_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \ | |
31 | $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
32 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
33 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \ | |
34 | -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS) | |
35 | DBBROWSE_OBJECTS = \ | |
36 | $(OBJS)\dbbrowse_dbbrowse.obj \ | |
37 | $(OBJS)\dbbrowse_doc.obj \ | |
38 | $(OBJS)\dbbrowse_pgmctrl.obj \ | |
39 | $(OBJS)\dbbrowse_tabpgwin.obj \ | |
40 | $(OBJS)\dbbrowse_browsedb.obj \ | |
41 | $(OBJS)\dbbrowse_dbtree.obj \ | |
42 | $(OBJS)\dbbrowse_dbgrid.obj \ | |
43 | $(OBJS)\dbbrowse_dlguser.obj | |
44 | ||
45 | ### Conditionally set variables: ### | |
46 | ||
47 | !if "$(USE_GUI)" == "0" | |
48 | PORTNAME = base | |
49 | !endif | |
50 | !if "$(USE_GUI)" == "1" | |
51 | PORTNAME = msw | |
52 | !endif | |
53 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
54 | WXDEBUGFLAG = d | |
55 | !endif | |
56 | !if "$(DEBUG_FLAG)" == "1" | |
57 | WXDEBUGFLAG = d | |
58 | !endif | |
59 | !if "$(UNICODE)" == "1" | |
60 | WXUNICODEFLAG = u | |
61 | !endif | |
62 | !if "$(WXUNIV)" == "1" | |
63 | WXUNIVNAME = univ | |
64 | !endif | |
65 | !if "$(SHARED)" == "1" | |
66 | WXDLLFLAG = dll | |
67 | !endif | |
68 | !if "$(SHARED)" == "0" | |
69 | LIBTYPE_SUFFIX = lib | |
70 | !endif | |
71 | !if "$(SHARED)" == "1" | |
72 | LIBTYPE_SUFFIX = dll | |
73 | !endif | |
74 | !if "$(MONOLITHIC)" == "0" | |
75 | EXTRALIBS_FOR_BASE = | |
76 | !endif | |
77 | !if "$(MONOLITHIC)" == "1" | |
78 | EXTRALIBS_FOR_BASE = | |
79 | !endif | |
80 | !if "$(USE_ODBC)" == "1" | |
81 | __dbbrowse___depname = $(OBJS)\dbbrowse.exe | |
82 | !endif | |
83 | !if "$(BUILD)" == "debug" | |
84 | __OPTIMIZEFLAG_2 = -Od | |
85 | !endif | |
86 | !if "$(BUILD)" == "release" | |
87 | __OPTIMIZEFLAG_2 = -O2 | |
88 | !endif | |
89 | !if "$(USE_THREADS)" == "0" | |
90 | __THREADSFLAG_5 = | |
91 | !endif | |
92 | !if "$(USE_THREADS)" == "1" | |
93 | __THREADSFLAG_5 = mt | |
94 | !endif | |
95 | !if "$(USE_THREADS)" == "0" | |
96 | __THREADSFLAG_6 = | |
97 | !endif | |
98 | !if "$(USE_THREADS)" == "1" | |
99 | __THREADSFLAG_6 = -tWM | |
100 | !endif | |
101 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
102 | __RUNTIME_LIBS_7 = -tWR | |
103 | !endif | |
104 | !if "$(RUNTIME_LIBS)" == "static" | |
105 | __RUNTIME_LIBS_7 = | |
106 | !endif | |
107 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
108 | __RUNTIME_LIBS_8 = i | |
109 | !endif | |
110 | !if "$(RUNTIME_LIBS)" == "static" | |
111 | __RUNTIME_LIBS_8 = | |
112 | !endif | |
113 | !if "$(WXUNIV)" == "1" | |
114 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
115 | !endif | |
116 | !if "$(WXUNIV)" == "1" | |
117 | __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__ | |
118 | !endif | |
119 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
120 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
121 | !endif | |
122 | !if "$(DEBUG_FLAG)" == "1" | |
123 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
124 | !endif | |
125 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
126 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
127 | !endif | |
128 | !if "$(DEBUG_FLAG)" == "1" | |
129 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
130 | !endif | |
131 | !if "$(USE_EXCEPTIONS)" == "0" | |
132 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
133 | !endif | |
134 | !if "$(USE_EXCEPTIONS)" == "0" | |
135 | __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS | |
136 | !endif | |
137 | !if "$(USE_RTTI)" == "0" | |
138 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
139 | !endif | |
140 | !if "$(USE_RTTI)" == "0" | |
141 | __RTTI_DEFINE_p_1 = -dwxNO_RTTI | |
142 | !endif | |
143 | !if "$(USE_THREADS)" == "0" | |
144 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
145 | !endif | |
146 | !if "$(USE_THREADS)" == "0" | |
147 | __THREAD_DEFINE_p_1 = -dwxNO_THREADS | |
148 | !endif | |
149 | !if "$(UNICODE)" == "1" | |
150 | __UNICODE_DEFINE_p = -D_UNICODE | |
151 | !endif | |
152 | !if "$(UNICODE)" == "1" | |
153 | __UNICODE_DEFINE_p_1 = -d_UNICODE | |
154 | !endif | |
155 | !if "$(SHARED)" == "1" | |
156 | __DLLFLAG_p = -DWXUSINGDLL | |
157 | !endif | |
158 | !if "$(SHARED)" == "1" | |
159 | __DLLFLAG_p_1 = -dWXUSINGDLL | |
160 | !endif | |
161 | !if "$(MONOLITHIC)" == "0" | |
162 | __WXLIB_DBGRID_p = \ | |
163 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib | |
164 | !endif | |
165 | !if "$(MONOLITHIC)" == "0" | |
166 | __WXLIB_ADV_p = \ | |
167 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib | |
168 | !endif | |
169 | !if "$(MONOLITHIC)" == "0" && "$(USE_ODBC)" == "1" | |
170 | __WXLIB_ODBC_p = \ | |
171 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib | |
172 | !endif | |
173 | !if "$(MONOLITHIC)" == "0" | |
174 | __WXLIB_HTML_p = \ | |
175 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib | |
176 | !endif | |
177 | !if "$(MONOLITHIC)" == "0" | |
178 | __WXLIB_CORE_p = \ | |
179 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib | |
180 | !endif | |
181 | !if "$(MONOLITHIC)" == "0" | |
182 | __WXLIB_BASE_p = \ | |
183 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
184 | !endif | |
185 | !if "$(MONOLITHIC)" == "1" | |
186 | __WXLIB_MONO_p = \ | |
187 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
188 | !endif | |
189 | !if "$(USE_GUI)" == "1" | |
190 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
191 | !endif | |
192 | !if "$(USE_GUI)" == "1" | |
193 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
194 | !endif | |
195 | !if "$(USE_GUI)" == "1" | |
196 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
197 | !endif | |
198 | !if "$(MSLU)" == "1" | |
199 | __UNICOWS_LIB_p = unicows.lib | |
200 | !endif | |
201 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
202 | __DEBUGINFO = -v | |
203 | !endif | |
204 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
205 | __DEBUGINFO = -v- | |
206 | !endif | |
207 | !if "$(DEBUG_INFO)" == "0" | |
208 | __DEBUGINFO = -v- | |
209 | !endif | |
210 | !if "$(DEBUG_INFO)" == "1" | |
211 | __DEBUGINFO = -v | |
212 | !endif | |
213 | ||
214 | ||
215 | all: $(OBJS) | |
216 | $(OBJS): | |
217 | -if not exist $(OBJS) mkdir $(OBJS) | |
218 | ||
219 | ### Targets: ### | |
220 | ||
221 | all: $(__dbbrowse___depname) data_help_std data_help_png | |
222 | ||
223 | clean: | |
224 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
225 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
226 | -if exist $(OBJS)\*.csm del $(OBJS)\*.csm | |
227 | -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe | |
228 | -if exist $(OBJS)\dbbrowse.tds del $(OBJS)\dbbrowse.tds | |
229 | -if exist $(OBJS)\dbbrowse.ilc del $(OBJS)\dbbrowse.ilc | |
230 | -if exist $(OBJS)\dbbrowse.ild del $(OBJS)\dbbrowse.ild | |
231 | -if exist $(OBJS)\dbbrowse.ilf del $(OBJS)\dbbrowse.ilf | |
232 | -if exist $(OBJS)\dbbrowse.ils del $(OBJS)\dbbrowse.ils | |
233 | ||
234 | !if "$(USE_ODBC)" == "1" | |
235 | $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res | |
236 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| | |
237 | c0w32.obj $(DBBROWSE_OBJECTS),$@,, $(__WXLIB_DBGRID_p) $(__WXLIB_ADV_p) $(__WXLIB_ODBC_p) $(__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$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\dbbrowse_dbbrowse.res | |
238 | | | |
239 | !endif | |
240 | ||
241 | data_help_std: | |
242 | if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std | |
243 | for %f in (compiler.htm dbbrowse.hhc dbbrowse.hhk dbbrowse.hhp dbbrowse.htm getcol.htm getcolsh.htm icons.htm picgrams.htm problems.htm remstar.htm sample.htm startprm.htm todo.htm wxdb.htm wxtable.htm) do if not exist $(OBJS)\help.std\%f copy .\help.std\%f $(OBJS)\help.std | |
244 | ||
245 | data_help_png: | |
246 | if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png | |
247 | for %f in (col.png d_closed.png d_open.png dsn.png dsnclose.png dsnopen.png f_closed.png f_open.png gnu.png gtk.png imbau.png kde.png key.png keyf.png linux.png logo.png motif.png msvc.png odbc.png pgmctrl.png redh.png remstar.png server.png suse.png tab.png view.png winnt.png wins.png) do if not exist $(OBJS)\help.png\%f copy .\help.png\%f $(OBJS)\help.png | |
248 | ||
249 | $(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp | |
250 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
251 | ||
252 | $(OBJS)\dbbrowse_doc.obj: .\doc.cpp | |
253 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
254 | ||
255 | $(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp | |
256 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
257 | ||
258 | $(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp | |
259 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
260 | ||
261 | $(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp | |
262 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
263 | ||
264 | $(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp | |
265 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
266 | ||
267 | $(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp | |
268 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
269 | ||
270 | $(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp | |
271 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
272 | ||
273 | $(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc | |
274 | brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\samples -dNOPCH $** | |
275 |