]>
Commit | Line | Data |
---|---|---|
264af224 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
8c9f8f91 | 3 | # Bakefile 0.1.8 (http://bakefile.sourceforge.net) |
264af224 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
9bfe7ad9 VS |
7 | .autodepend |
8 | ||
264af224 | 9 | !ifndef BCCDIR |
9bfe7ad9 VS |
10 | !ifndef MAKEDIR |
11 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 | |
12 | !endif | |
264af224 VS |
13 | BCCDIR = $(MAKEDIR)\.. |
14 | !endif | |
15 | ||
fd9f42b6 | 16 | !include ../../build/msw/config.bcc |
264af224 VS |
17 | |
18 | # ------------------------------------------------------------------------- | |
19 | # Do not modify the rest of this file! | |
20 | # ------------------------------------------------------------------------- | |
21 | ||
264af224 VS |
22 | ### Variables: ### |
23 | ||
c33fae85 | 24 | WX_RELEASE_NODOT = 25 |
b17c1746 DE |
25 | OBJS = \ |
26 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
d3d0b8db | 27 | LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
28 | SETUPHDIR = \ |
29 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
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) \ | |
c33fae85 | 34 | -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS) |
264af224 VS |
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 | |
264af224 VS |
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 | |
264af224 VS |
59 | !if "$(UNICODE)" == "1" |
60 | WXUNICODEFLAG = u | |
61 | !endif | |
62 | !if "$(WXUNIV)" == "1" | |
63 | WXUNIVNAME = univ | |
64 | !endif | |
264af224 | 65 | !if "$(SHARED)" == "1" |
b17c1746 | 66 | WXDLLFLAG = dll |
264af224 | 67 | !endif |
d3d0b8db JS |
68 | !if "$(SHARED)" == "0" |
69 | LIBTYPE_SUFFIX = lib | |
70 | !endif | |
71 | !if "$(SHARED)" == "1" | |
72 | LIBTYPE_SUFFIX = dll | |
73 | !endif | |
dd65d8c8 RN |
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 | |
264af224 VS |
83 | !if "$(BUILD)" == "debug" |
84 | __OPTIMIZEFLAG_2 = -Od | |
85 | !endif | |
86 | !if "$(BUILD)" == "release" | |
87 | __OPTIMIZEFLAG_2 = -O2 | |
88 | !endif | |
8c9f8f91 JS |
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 | |
264af224 | 101 | !if "$(RUNTIME_LIBS)" == "dynamic" |
8c9f8f91 | 102 | __RUNTIME_LIBS_7 = -tWR |
264af224 VS |
103 | !endif |
104 | !if "$(RUNTIME_LIBS)" == "static" | |
8c9f8f91 | 105 | __RUNTIME_LIBS_7 = |
264af224 VS |
106 | !endif |
107 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
8c9f8f91 | 108 | __RUNTIME_LIBS_8 = i |
264af224 VS |
109 | !endif |
110 | !if "$(RUNTIME_LIBS)" == "static" | |
8c9f8f91 | 111 | __RUNTIME_LIBS_8 = |
264af224 | 112 | !endif |
b17c1746 DE |
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 | |
8c9f8f91 JS |
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 | |
264af224 | 149 | !if "$(UNICODE)" == "1" |
ec08d395 | 150 | __UNICODE_DEFINE_p = -D_UNICODE |
264af224 VS |
151 | !endif |
152 | !if "$(UNICODE)" == "1" | |
ec08d395 | 153 | __UNICODE_DEFINE_p_1 = -d_UNICODE |
264af224 | 154 | !endif |
b17c1746 DE |
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 = \ | |
c33fae85 | 163 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib |
4e209a20 | 164 | !endif |
264af224 VS |
165 | !if "$(MONOLITHIC)" == "0" |
166 | __WXLIB_ADV_p = \ | |
c33fae85 | 167 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib |
264af224 | 168 | !endif |
b92ca05a | 169 | !if "$(MONOLITHIC)" == "0" && "$(USE_ODBC)" == "1" |
c33fae85 RN |
170 | __WXLIB_ODBC_p = \ |
171 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib | |
264af224 VS |
172 | !endif |
173 | !if "$(MONOLITHIC)" == "0" | |
b17c1746 | 174 | __WXLIB_HTML_p = \ |
c33fae85 | 175 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib |
264af224 VS |
176 | !endif |
177 | !if "$(MONOLITHIC)" == "0" | |
b17c1746 | 178 | __WXLIB_CORE_p = \ |
c33fae85 | 179 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib |
f2901744 VS |
180 | !endif |
181 | !if "$(MONOLITHIC)" == "0" | |
c33fae85 RN |
182 | __WXLIB_BASE_p = \ |
183 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
264af224 VS |
184 | !endif |
185 | !if "$(MONOLITHIC)" == "1" | |
186 | __WXLIB_MONO_p = \ | |
c33fae85 | 187 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
264af224 | 188 | !endif |
b17c1746 | 189 | !if "$(USE_GUI)" == "1" |
9c2d002b | 190 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib |
264af224 | 191 | !endif |
b17c1746 | 192 | !if "$(USE_GUI)" == "1" |
9c2d002b | 193 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib |
264af224 | 194 | !endif |
b17c1746 | 195 | !if "$(USE_GUI)" == "1" |
9c2d002b | 196 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
b17c1746 DE |
197 | !endif |
198 | !if "$(MSLU)" == "1" | |
199 | __UNICOWS_LIB_p = unicows.lib | |
200 | !endif | |
b17c1746 DE |
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 | |
264af224 VS |
212 | !endif |
213 | ||
214 | ||
215 | all: $(OBJS) | |
216 | $(OBJS): | |
217 | -if not exist $(OBJS) mkdir $(OBJS) | |
218 | ||
219 | ### Targets: ### | |
220 | ||
dd65d8c8 | 221 | all: $(__dbbrowse___depname) data_help_std data_help_png |
264af224 | 222 | |
b17c1746 DE |
223 | clean: |
224 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
225 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
d3d0b8db | 226 | -if exist $(OBJS)\*.csm del $(OBJS)\*.csm |
b17c1746 DE |
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 | ||
dd65d8c8 | 234 | !if "$(USE_ODBC)" == "1" |
b17c1746 DE |
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 @&&| | |
8c9f8f91 | 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 |
b17c1746 | 238 | | |
dd65d8c8 | 239 | !endif |
264af224 | 240 | |
eac98de7 VS |
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 | ||
264af224 VS |
249 | $(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp |
250 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
251 | ||
b17c1746 | 252 | $(OBJS)\dbbrowse_doc.obj: .\doc.cpp |
264af224 VS |
253 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
254 | ||
b17c1746 | 255 | $(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp |
264af224 VS |
256 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
257 | ||
b17c1746 | 258 | $(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp |
264af224 VS |
259 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
260 | ||
b17c1746 | 261 | $(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp |
264af224 VS |
262 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
263 | ||
b17c1746 | 264 | $(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp |
264af224 VS |
265 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
266 | ||
b17c1746 | 267 | $(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp |
264af224 VS |
268 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
269 | ||
b17c1746 DE |
270 | $(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp |
271 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
264af224 | 272 | |
b17c1746 | 273 | $(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc |
8c9f8f91 | 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 $** |
d3d0b8db | 275 |