]>
Commit | Line | Data |
---|---|---|
264af224 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
d3d0b8db | 3 | # Bakefile 0.1.6 (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) | |
9bfe7ad9 VS |
30 | DBBROWSE_CXXFLAGS = $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include $(__DEBUGINFO) \ |
31 | $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
75a0a7b7 | 32 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \ |
c33fae85 | 33 | -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS) |
264af224 VS |
34 | DBBROWSE_OBJECTS = \ |
35 | $(OBJS)\dbbrowse_dbbrowse.obj \ | |
36 | $(OBJS)\dbbrowse_doc.obj \ | |
37 | $(OBJS)\dbbrowse_pgmctrl.obj \ | |
38 | $(OBJS)\dbbrowse_tabpgwin.obj \ | |
39 | $(OBJS)\dbbrowse_browsedb.obj \ | |
40 | $(OBJS)\dbbrowse_dbtree.obj \ | |
41 | $(OBJS)\dbbrowse_dbgrid.obj \ | |
42 | $(OBJS)\dbbrowse_dlguser.obj | |
264af224 VS |
43 | |
44 | ### Conditionally set variables: ### | |
45 | ||
46 | !if "$(USE_GUI)" == "0" | |
47 | PORTNAME = base | |
48 | !endif | |
49 | !if "$(USE_GUI)" == "1" | |
50 | PORTNAME = msw | |
51 | !endif | |
52 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
53 | WXDEBUGFLAG = d | |
54 | !endif | |
55 | !if "$(DEBUG_FLAG)" == "1" | |
56 | WXDEBUGFLAG = d | |
57 | !endif | |
264af224 VS |
58 | !if "$(UNICODE)" == "1" |
59 | WXUNICODEFLAG = u | |
60 | !endif | |
61 | !if "$(WXUNIV)" == "1" | |
62 | WXUNIVNAME = univ | |
63 | !endif | |
264af224 | 64 | !if "$(SHARED)" == "1" |
b17c1746 | 65 | WXDLLFLAG = dll |
264af224 | 66 | !endif |
d3d0b8db JS |
67 | !if "$(SHARED)" == "0" |
68 | LIBTYPE_SUFFIX = lib | |
69 | !endif | |
70 | !if "$(SHARED)" == "1" | |
71 | LIBTYPE_SUFFIX = dll | |
72 | !endif | |
dd65d8c8 RN |
73 | !if "$(MONOLITHIC)" == "0" |
74 | EXTRALIBS_FOR_BASE = | |
75 | !endif | |
76 | !if "$(MONOLITHIC)" == "1" | |
77 | EXTRALIBS_FOR_BASE = | |
78 | !endif | |
79 | !if "$(USE_ODBC)" == "1" | |
80 | __dbbrowse___depname = $(OBJS)\dbbrowse.exe | |
81 | !endif | |
264af224 VS |
82 | !if "$(BUILD)" == "debug" |
83 | __OPTIMIZEFLAG_2 = -Od | |
84 | !endif | |
85 | !if "$(BUILD)" == "release" | |
86 | __OPTIMIZEFLAG_2 = -O2 | |
87 | !endif | |
88 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
89 | __RUNTIME_LIBS_6 = -tWR | |
90 | !endif | |
91 | !if "$(RUNTIME_LIBS)" == "static" | |
92 | __RUNTIME_LIBS_6 = | |
93 | !endif | |
94 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
95 | __RUNTIME_LIBS_7 = i | |
96 | !endif | |
97 | !if "$(RUNTIME_LIBS)" == "static" | |
98 | __RUNTIME_LIBS_7 = | |
99 | !endif | |
b17c1746 DE |
100 | !if "$(WXUNIV)" == "1" |
101 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
102 | !endif | |
103 | !if "$(WXUNIV)" == "1" | |
104 | __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__ | |
105 | !endif | |
106 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
107 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
108 | !endif | |
109 | !if "$(DEBUG_FLAG)" == "1" | |
110 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
111 | !endif | |
112 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
113 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
114 | !endif | |
115 | !if "$(DEBUG_FLAG)" == "1" | |
116 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
117 | !endif | |
264af224 | 118 | !if "$(UNICODE)" == "1" |
ec08d395 | 119 | __UNICODE_DEFINE_p = -D_UNICODE |
264af224 VS |
120 | !endif |
121 | !if "$(UNICODE)" == "1" | |
ec08d395 | 122 | __UNICODE_DEFINE_p_1 = -d_UNICODE |
264af224 | 123 | !endif |
b17c1746 DE |
124 | !if "$(SHARED)" == "1" |
125 | __DLLFLAG_p = -DWXUSINGDLL | |
126 | !endif | |
127 | !if "$(SHARED)" == "1" | |
128 | __DLLFLAG_p_1 = -dWXUSINGDLL | |
129 | !endif | |
130 | !if "$(MONOLITHIC)" == "0" | |
131 | __WXLIB_DBGRID_p = \ | |
c33fae85 | 132 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib |
4e209a20 | 133 | !endif |
264af224 VS |
134 | !if "$(MONOLITHIC)" == "0" |
135 | __WXLIB_ADV_p = \ | |
c33fae85 | 136 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib |
264af224 | 137 | !endif |
b92ca05a | 138 | !if "$(MONOLITHIC)" == "0" && "$(USE_ODBC)" == "1" |
c33fae85 RN |
139 | __WXLIB_ODBC_p = \ |
140 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib | |
264af224 VS |
141 | !endif |
142 | !if "$(MONOLITHIC)" == "0" | |
b17c1746 | 143 | __WXLIB_HTML_p = \ |
c33fae85 | 144 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib |
264af224 VS |
145 | !endif |
146 | !if "$(MONOLITHIC)" == "0" | |
b17c1746 | 147 | __WXLIB_CORE_p = \ |
c33fae85 | 148 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib |
f2901744 VS |
149 | !endif |
150 | !if "$(MONOLITHIC)" == "0" | |
c33fae85 RN |
151 | __WXLIB_BASE_p = \ |
152 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
264af224 VS |
153 | !endif |
154 | !if "$(MONOLITHIC)" == "1" | |
155 | __WXLIB_MONO_p = \ | |
c33fae85 | 156 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
264af224 | 157 | !endif |
b17c1746 | 158 | !if "$(USE_GUI)" == "1" |
9c2d002b | 159 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib |
264af224 | 160 | !endif |
b17c1746 | 161 | !if "$(USE_GUI)" == "1" |
9c2d002b | 162 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib |
264af224 | 163 | !endif |
b17c1746 | 164 | !if "$(USE_GUI)" == "1" |
9c2d002b | 165 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
b17c1746 DE |
166 | !endif |
167 | !if "$(MSLU)" == "1" | |
168 | __UNICOWS_LIB_p = unicows.lib | |
169 | !endif | |
b17c1746 DE |
170 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
171 | __DEBUGINFO = -v | |
172 | !endif | |
173 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
174 | __DEBUGINFO = -v- | |
175 | !endif | |
176 | !if "$(DEBUG_INFO)" == "0" | |
177 | __DEBUGINFO = -v- | |
178 | !endif | |
179 | !if "$(DEBUG_INFO)" == "1" | |
180 | __DEBUGINFO = -v | |
264af224 VS |
181 | !endif |
182 | ||
183 | ||
184 | all: $(OBJS) | |
185 | $(OBJS): | |
186 | -if not exist $(OBJS) mkdir $(OBJS) | |
187 | ||
188 | ### Targets: ### | |
189 | ||
dd65d8c8 | 190 | all: $(__dbbrowse___depname) data_help_std data_help_png |
264af224 | 191 | |
b17c1746 DE |
192 | clean: |
193 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
194 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
d3d0b8db | 195 | -if exist $(OBJS)\*.csm del $(OBJS)\*.csm |
b17c1746 DE |
196 | -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe |
197 | -if exist $(OBJS)\dbbrowse.tds del $(OBJS)\dbbrowse.tds | |
198 | -if exist $(OBJS)\dbbrowse.ilc del $(OBJS)\dbbrowse.ilc | |
199 | -if exist $(OBJS)\dbbrowse.ild del $(OBJS)\dbbrowse.ild | |
200 | -if exist $(OBJS)\dbbrowse.ilf del $(OBJS)\dbbrowse.ilf | |
201 | -if exist $(OBJS)\dbbrowse.ils del $(OBJS)\dbbrowse.ils | |
202 | ||
dd65d8c8 | 203 | !if "$(USE_ODBC)" == "1" |
b17c1746 DE |
204 | $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res |
205 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| | |
d3d0b8db | 206 | 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 cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\dbbrowse_dbbrowse.res |
b17c1746 | 207 | | |
dd65d8c8 | 208 | !endif |
264af224 | 209 | |
eac98de7 VS |
210 | data_help_std: |
211 | if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std | |
212 | 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 | |
213 | ||
214 | data_help_png: | |
215 | if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png | |
216 | 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 | |
217 | ||
264af224 VS |
218 | $(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp |
219 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
220 | ||
b17c1746 | 221 | $(OBJS)\dbbrowse_doc.obj: .\doc.cpp |
264af224 VS |
222 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
223 | ||
b17c1746 | 224 | $(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp |
264af224 VS |
225 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
226 | ||
b17c1746 | 227 | $(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp |
264af224 VS |
228 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
229 | ||
b17c1746 | 230 | $(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp |
264af224 VS |
231 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
232 | ||
b17c1746 | 233 | $(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp |
264af224 VS |
234 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
235 | ||
b17c1746 | 236 | $(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp |
264af224 VS |
237 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** |
238 | ||
b17c1746 DE |
239 | $(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp |
240 | $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $** | |
264af224 | 241 | |
b17c1746 | 242 | $(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc |
d3d0b8db JS |
243 | 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 -dNOPCH $** |
244 |