]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/makefile.wat
Borland fixes.
[wxWidgets.git] / demos / dbbrowse / makefile.wat
CommitLineData
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
fd9f42b6 7!include ../../build/msw/config.wat
264af224
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13# Speed up compilation a bit:
14!ifdef __LOADDLL__
15! loaddll wcc wccd
16! loaddll wccaxp wccdaxp
17! loaddll wcc386 wccd386
18! loaddll wpp wppdi86
19! loaddll wppaxp wppdaxp
20! loaddll wpp386 wppd386
21! loaddll wlink wlink
22! loaddll wlib wlibd
23!endif
24
25# We need these variables in some bakefile-made rules:
26WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
27
28### Conditionally set variables: ###
29
30PORTNAME =
31!ifeq USE_GUI 0
32PORTNAME = base
33!endif
34!ifeq USE_GUI 1
35PORTNAME = msw
36!endif
37WXDEBUGFLAG =
38!ifeq BUILD debug
39!ifeq DEBUG_FLAG default
40WXDEBUGFLAG = d
41!endif
42!endif
43!ifeq DEBUG_FLAG 1
44WXDEBUGFLAG = d
45!endif
264af224
VS
46WXUNICODEFLAG =
47!ifeq UNICODE 1
48WXUNICODEFLAG = u
49!endif
50WXUNIVNAME =
51!ifeq WXUNIV 1
52WXUNIVNAME = univ
53!endif
b17c1746
DE
54WXDLLFLAG =
55!ifeq SHARED 1
56WXDLLFLAG = dll
57!endif
dd65d8c8
RN
58EXTRALIBS_FOR_BASE =
59!ifeq MONOLITHIC 0
60EXTRALIBS_FOR_BASE =
61!endif
62!ifeq MONOLITHIC 1
63EXTRALIBS_FOR_BASE =
64!endif
65__dbbrowse___depname =
66!ifeq USE_ODBC 1
67__dbbrowse___depname = $(OBJS)\dbbrowse.exe
68!endif
264af224
VS
69__DEBUGINFO_0 =
70!ifeq BUILD debug
71!ifeq DEBUG_INFO default
72__DEBUGINFO_0 = -d2
73!endif
74!endif
75!ifeq BUILD release
76!ifeq DEBUG_INFO default
77__DEBUGINFO_0 = -d0
78!endif
79!endif
80!ifeq DEBUG_INFO 0
81__DEBUGINFO_0 = -d0
82!endif
83!ifeq DEBUG_INFO 1
84__DEBUGINFO_0 = -d2
85!endif
86__DEBUGINFO_1 =
87!ifeq BUILD debug
88!ifeq DEBUG_INFO default
89__DEBUGINFO_1 = debug all
90!endif
91!endif
92!ifeq BUILD release
93!ifeq DEBUG_INFO default
94__DEBUGINFO_1 =
95!endif
96!endif
97!ifeq DEBUG_INFO 0
98__DEBUGINFO_1 =
99!endif
100!ifeq DEBUG_INFO 1
101__DEBUGINFO_1 = debug all
102!endif
264af224
VS
103__OPTIMIZEFLAG_2 =
104!ifeq BUILD debug
105__OPTIMIZEFLAG_2 = -od
106!endif
107!ifeq BUILD release
108__OPTIMIZEFLAG_2 = -ot -ox
109!endif
110__RUNTIME_LIBS_5 =
111!ifeq RUNTIME_LIBS dynamic
112__RUNTIME_LIBS_5 = -br
113!endif
114!ifeq RUNTIME_LIBS static
115__RUNTIME_LIBS_5 =
116!endif
b17c1746
DE
117__EXCEPTIONSFLAG_7 =
118!ifeq USE_EXCEPTIONS 0
119__EXCEPTIONSFLAG_7 =
120!endif
121!ifeq USE_EXCEPTIONS 1
122__EXCEPTIONSFLAG_7 = -xs
123!endif
124__WXLIB_DBGRID_p =
125!ifeq MONOLITHIC 0
126__WXLIB_DBGRID_p = &
c33fae85 127 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib
264af224
VS
128!endif
129__WXLIB_ADV_p =
130!ifeq MONOLITHIC 0
131__WXLIB_ADV_p = &
c33fae85 132 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
264af224 133!endif
b17c1746 134__WXLIB_ODBC_p =
264af224 135!ifeq MONOLITHIC 0
b92ca05a 136!ifeq USE_ODBC 1
c33fae85
RN
137__WXLIB_ODBC_p = &
138 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib
b17c1746 139!endif
b92ca05a 140!endif
b17c1746
DE
141__WXLIB_HTML_p =
142!ifeq MONOLITHIC 0
143__WXLIB_HTML_p = &
c33fae85 144 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
264af224
VS
145!endif
146__WXLIB_CORE_p =
147!ifeq MONOLITHIC 0
148__WXLIB_CORE_p = &
c33fae85 149 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
264af224 150!endif
b17c1746 151__WXLIB_BASE_p =
264af224 152!ifeq MONOLITHIC 0
c33fae85
RN
153__WXLIB_BASE_p = &
154 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
264af224
VS
155!endif
156__WXLIB_MONO_p =
157!ifeq MONOLITHIC 1
158__WXLIB_MONO_p = &
c33fae85 159 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
264af224 160!endif
b17c1746
DE
161__LIB_TIFF_p =
162!ifeq USE_GUI 1
9c2d002b 163__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
b17c1746
DE
164!endif
165__LIB_JPEG_p =
166!ifeq USE_GUI 1
9c2d002b 167__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
168!endif
169__LIB_PNG_p =
170!ifeq USE_GUI 1
9c2d002b 171__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
172!endif
173LIBDIRNAME =
174!ifeq SHARED 0
175LIBDIRNAME = .\..\..\lib\wat_lib$(CFG)
176!endif
177!ifeq SHARED 1
178LIBDIRNAME = .\..\..\lib\wat_dll$(CFG)
264af224
VS
179!endif
180__WXUNIV_DEFINE_p =
181!ifeq WXUNIV 1
182__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
183!endif
b17c1746
DE
184__DEBUG_DEFINE_p =
185!ifeq BUILD debug
186!ifeq DEBUG_FLAG default
187__DEBUG_DEFINE_p = -d__WXDEBUG__
188!endif
189!endif
190!ifeq DEBUG_FLAG 1
191__DEBUG_DEFINE_p = -d__WXDEBUG__
192!endif
193__UNICODE_DEFINE_p =
194!ifeq UNICODE 1
195__UNICODE_DEFINE_p = -d_UNICODE
196!endif
197__DLLFLAG_p =
198!ifeq SHARED 1
199__DLLFLAG_p = -dWXUSINGDLL
200!endif
264af224
VS
201
202### Variables: ###
203
c33fae85 204WX_RELEASE_NODOT = 25
b17c1746
DE
205OBJS = &
206 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
207SETUPHDIR = &
208 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 209DBBROWSE_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) -bm &
264af224 210 $(__RUNTIME_LIBS_5) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
dd65d8c8
RN
211 $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=$(SETUPHDIR) -wcd=549 -wcd=656 &
212 -wcd=657 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__EXCEPTIONSFLAG_7) &
213 $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
214DBBROWSE_OBJECTS = &
215 $(OBJS)\dbbrowse_dbbrowse.obj &
216 $(OBJS)\dbbrowse_doc.obj &
217 $(OBJS)\dbbrowse_pgmctrl.obj &
218 $(OBJS)\dbbrowse_tabpgwin.obj &
219 $(OBJS)\dbbrowse_browsedb.obj &
220 $(OBJS)\dbbrowse_dbtree.obj &
221 $(OBJS)\dbbrowse_dbgrid.obj &
222 $(OBJS)\dbbrowse_dlguser.obj
264af224 223
264af224
VS
224
225all : $(OBJS)
226$(OBJS) :
227 -if not exist $(OBJS) mkdir $(OBJS)
228
229### Targets: ###
230
dd65d8c8 231all : .SYMBOLIC $(__dbbrowse___depname) data_help_std data_help_png
264af224 232
264af224
VS
233clean : .SYMBOLIC
234 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
235 -if exist $(OBJS)\*.res del $(OBJS)\*.res
236 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
237 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
238 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
239
dd65d8c8 240!ifeq USE_ODBC 1
264af224
VS
241$(OBJS)\dbbrowse.exe : $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
242 @%create $(OBJS)\dbbrowse.lbc
243 @%append $(OBJS)\dbbrowse.lbc option quiet
244 @%append $(OBJS)\dbbrowse.lbc name $^@
75a0a7b7 245 @%append $(OBJS)\dbbrowse.lbc option caseexact
264af224
VS
246 @%append $(OBJS)\dbbrowse.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
247 @for %i in ($(DBBROWSE_OBJECTS)) do @%append $(OBJS)\dbbrowse.lbc file %i
dd65d8c8 248 @for %i in ( $(__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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib ) do @%append $(OBJS)\dbbrowse.lbc library %i
264af224
VS
249 @%append $(OBJS)\dbbrowse.lbc option resource=$(OBJS)\dbbrowse_dbbrowse.res
250 wlink @$(OBJS)\dbbrowse.lbc
dd65d8c8 251!endif
b17c1746 252
eac98de7
VS
253data_help_std : .SYMBOLIC
254 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
255 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
256
257data_help_png : .SYMBOLIC
258 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
259 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
260
b17c1746
DE
261$(OBJS)\dbbrowse_dbbrowse.obj : .AUTODEPEND .\dbbrowse.cpp
262 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
263
264$(OBJS)\dbbrowse_doc.obj : .AUTODEPEND .\doc.cpp
265 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
266
267$(OBJS)\dbbrowse_pgmctrl.obj : .AUTODEPEND .\pgmctrl.cpp
268 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
269
270$(OBJS)\dbbrowse_tabpgwin.obj : .AUTODEPEND .\tabpgwin.cpp
271 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
272
273$(OBJS)\dbbrowse_browsedb.obj : .AUTODEPEND .\browsedb.cpp
274 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
275
276$(OBJS)\dbbrowse_dbtree.obj : .AUTODEPEND .\dbtree.cpp
277 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
278
279$(OBJS)\dbbrowse_dbgrid.obj : .AUTODEPEND .\dbgrid.cpp
280 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
281
282$(OBJS)\dbbrowse_dlguser.obj : .AUTODEPEND .\dlguser.cpp
283 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
284
285$(OBJS)\dbbrowse_dbbrowse.res : .AUTODEPEND .\dbbrowse.rc
c33fae85 286 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<