]> git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/makefile.bcc
2eba8bda86c6202d664e11b755b2b07f7a63a330
[wxWidgets.git] / demos / dbbrowse / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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_6) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
33 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
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
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
58 !if "$(UNICODE)" == "1"
59 WXUNICODEFLAG = u
60 !endif
61 !if "$(WXUNIV)" == "1"
62 WXUNIVNAME = univ
63 !endif
64 !if "$(SHARED)" == "1"
65 WXDLLFLAG = dll
66 !endif
67 !if "$(SHARED)" == "0"
68 LIBTYPE_SUFFIX = lib
69 !endif
70 !if "$(SHARED)" == "1"
71 LIBTYPE_SUFFIX = dll
72 !endif
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
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
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
118 !if "$(UNICODE)" == "1"
119 __UNICODE_DEFINE_p = -D_UNICODE
120 !endif
121 !if "$(UNICODE)" == "1"
122 __UNICODE_DEFINE_p_1 = -d_UNICODE
123 !endif
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 = \
132 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib
133 !endif
134 !if "$(MONOLITHIC)" == "0"
135 __WXLIB_ADV_p = \
136 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
137 !endif
138 !if "$(MONOLITHIC)" == "0" && "$(USE_ODBC)" == "1"
139 __WXLIB_ODBC_p = \
140 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib
141 !endif
142 !if "$(MONOLITHIC)" == "0"
143 __WXLIB_HTML_p = \
144 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
145 !endif
146 !if "$(MONOLITHIC)" == "0"
147 __WXLIB_CORE_p = \
148 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
149 !endif
150 !if "$(MONOLITHIC)" == "0"
151 __WXLIB_BASE_p = \
152 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
153 !endif
154 !if "$(MONOLITHIC)" == "1"
155 __WXLIB_MONO_p = \
156 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
157 !endif
158 !if "$(USE_GUI)" == "1"
159 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
160 !endif
161 !if "$(USE_GUI)" == "1"
162 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
163 !endif
164 !if "$(USE_GUI)" == "1"
165 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
166 !endif
167 !if "$(MSLU)" == "1"
168 __UNICOWS_LIB_p = unicows.lib
169 !endif
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
181 !endif
182
183
184 all: $(OBJS)
185 $(OBJS):
186 -if not exist $(OBJS) mkdir $(OBJS)
187
188 ### Targets: ###
189
190 all: $(__dbbrowse___depname) data_help_std data_help_png
191
192 clean:
193 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
194 -if exist $(OBJS)\*.res del $(OBJS)\*.res
195 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
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
203 !if "$(USE_ODBC)" == "1"
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 @&&|
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
207 |
208 !endif
209
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
218 $(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp
219 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
220
221 $(OBJS)\dbbrowse_doc.obj: .\doc.cpp
222 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
223
224 $(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp
225 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
226
227 $(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp
228 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
229
230 $(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp
231 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
232
233 $(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp
234 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
235
236 $(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp
237 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
238
239 $(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp
240 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
241
242 $(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc
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