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