]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/makefile.bcc
fixed bakefile so that in-tree headers take precedence over system-installed ones
[wxWidgets.git] / demos / dbbrowse / makefile.bcc
CommitLineData
264af224
VS
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!ifndef BCCDIR
8BCCDIR = $(MAKEDIR)\..
9!endif
10
fd9f42b6 11!include ../../build/msw/config.bcc
264af224
VS
12
13# -------------------------------------------------------------------------
14# Do not modify the rest of this file!
15# -------------------------------------------------------------------------
16
17!if "$(BCCDIR)" == "\.."
18!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
19!endif
20
21### Variables: ###
22
1c3a6972
VS
23DBBROWSE_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include \
24 $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
75a0a7b7
VS
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
26 -I. $(__DLLFLAG_p) -I.\..\..\samples $(CXXFLAGS)
264af224
VS
27DBBROWSE_OBJECTS = \
28 $(OBJS)\dbbrowse_dbbrowse.obj \
29 $(OBJS)\dbbrowse_doc.obj \
30 $(OBJS)\dbbrowse_pgmctrl.obj \
31 $(OBJS)\dbbrowse_tabpgwin.obj \
32 $(OBJS)\dbbrowse_browsedb.obj \
33 $(OBJS)\dbbrowse_dbtree.obj \
34 $(OBJS)\dbbrowse_dbgrid.obj \
35 $(OBJS)\dbbrowse_dlguser.obj
264af224
VS
36OBJS = \
37 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
38SETUPHDIR = \
39 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
264af224
VS
40
41### Conditionally set variables: ###
42
75a0a7b7
VS
43!if "$(SHARED)" == "0"
44LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
45!endif
46!if "$(SHARED)" == "1"
47LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
48!endif
264af224
VS
49!if "$(USE_GUI)" == "0"
50PORTNAME = base
51!endif
52!if "$(USE_GUI)" == "1"
53PORTNAME = msw
54!endif
55!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
56WXDEBUGFLAG = d
57!endif
58!if "$(DEBUG_FLAG)" == "1"
59WXDEBUGFLAG = d
60!endif
61!if "$(SHARED)" == "1"
62WXDLLFLAG = dll
63!endif
64!if "$(UNICODE)" == "1"
65WXUNICODEFLAG = u
66!endif
67!if "$(WXUNIV)" == "1"
68WXUNIVNAME = univ
69!endif
70!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
71__DEBUGINFO = -v
72!endif
73!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
74__DEBUGINFO = -v-
75!endif
76!if "$(DEBUG_INFO)" == "0"
77__DEBUGINFO = -v-
78!endif
79!if "$(DEBUG_INFO)" == "1"
80__DEBUGINFO = -v
81!endif
82!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
83__DEBUG_DEFINE_p = -D__WXDEBUG__
84!endif
85!if "$(DEBUG_FLAG)" == "1"
86__DEBUG_DEFINE_p = -D__WXDEBUG__
87!endif
88!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
89__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
90!endif
91!if "$(DEBUG_FLAG)" == "1"
92__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
93!endif
94!if "$(SHARED)" == "1"
95__DLLFLAG_p = -DWXUSINGDLL
96!endif
97!if "$(SHARED)" == "1"
98__DLLFLAG_p_1 = -dWXUSINGDLL
99!endif
100!if "$(USE_GUI)" == "1"
101__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
102!endif
103!if "$(USE_GUI)" == "1"
104__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
105!endif
106!if "$(USE_GUI)" == "1"
107__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
108!endif
109!if "$(BUILD)" == "debug"
110__OPTIMIZEFLAG_2 = -Od
111!endif
112!if "$(BUILD)" == "release"
113__OPTIMIZEFLAG_2 = -O2
114!endif
115!if "$(RUNTIME_LIBS)" == "dynamic"
116__RUNTIME_LIBS_6 = -tWR
117!endif
118!if "$(RUNTIME_LIBS)" == "static"
119__RUNTIME_LIBS_6 =
120!endif
121!if "$(RUNTIME_LIBS)" == "dynamic"
122__RUNTIME_LIBS_7 = i
123!endif
124!if "$(RUNTIME_LIBS)" == "static"
125__RUNTIME_LIBS_7 =
126!endif
127!if "$(UNICODE)" == "1"
ec08d395 128__UNICODE_DEFINE_p = -D_UNICODE
264af224
VS
129!endif
130!if "$(UNICODE)" == "1"
ec08d395 131__UNICODE_DEFINE_p_1 = -d_UNICODE
264af224 132!endif
4e209a20
VS
133!if "$(MSLU)" == "1"
134__UNICOWS_LIB_p = unicows.lib
135!endif
264af224
VS
136!if "$(MONOLITHIC)" == "0"
137__WXLIB_ADV_p = \
138 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv.lib
139!endif
140!if "$(MONOLITHIC)" == "0"
141__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
142!endif
143!if "$(MONOLITHIC)" == "0"
144__WXLIB_CORE_p = \
145 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
146!endif
147!if "$(MONOLITHIC)" == "0"
f2901744
VS
148__WXLIB_DBGRID_p = \
149 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_dbgrid.lib
150!endif
151!if "$(MONOLITHIC)" == "0"
264af224
VS
152__WXLIB_HTML_p = \
153 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
154!endif
155!if "$(MONOLITHIC)" == "1"
156__WXLIB_MONO_p = \
157 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
158!endif
159!if "$(MONOLITHIC)" == "0"
f2901744 160__WXLIB_ODBC_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_odbc.lib
264af224
VS
161!endif
162!if "$(WXUNIV)" == "1"
163__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
164!endif
165!if "$(WXUNIV)" == "1"
166__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
167!endif
168
169
170all: $(OBJS)
171$(OBJS):
172 -if not exist $(OBJS) mkdir $(OBJS)
173
174### Targets: ###
175
176all: $(OBJS)\dbbrowse.exe
177
178$(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp
179 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
180
181$(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp
182 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
183
184$(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc
ec08d395 185 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 $**
264af224
VS
186
187$(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp
188 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
189
190$(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp
191 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
192
193$(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp
194 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
195
196$(OBJS)\dbbrowse_doc.obj: .\doc.cpp
197 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
198
199$(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp
200 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
201
202$(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp
203 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
204
205clean:
206 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
207 -if exist $(OBJS)\*.res del $(OBJS)\*.res
208 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
ec08d395
JS
209 -if exist $(OBJS)\dbbrowse.tds del $(OBJS)\dbbrowse.tds
210 -if exist $(OBJS)\dbbrowse.ilc del $(OBJS)\dbbrowse.ilc
211 -if exist $(OBJS)\dbbrowse.ild del $(OBJS)\dbbrowse.ild
212 -if exist $(OBJS)\dbbrowse.ilf del $(OBJS)\dbbrowse.ilf
213 -if exist $(OBJS)\dbbrowse.ils del $(OBJS)\dbbrowse.ils
264af224
VS
214
215$(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
1c3a6972 216 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
ec08d395 217 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$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\dbbrowse_dbbrowse.res
264af224 218|