]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/makefile.wat
Elliptic arc fix for getting bounds
[wxWidgets.git] / demos / dbbrowse / makefile.wat
CommitLineData
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
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
d3d0b8db
JS
58LIBTYPE_SUFFIX =
59!ifeq SHARED 0
60LIBTYPE_SUFFIX = lib
61!endif
62!ifeq SHARED 1
63LIBTYPE_SUFFIX = dll
64!endif
dd65d8c8
RN
65EXTRALIBS_FOR_BASE =
66!ifeq MONOLITHIC 0
67EXTRALIBS_FOR_BASE =
68!endif
69!ifeq MONOLITHIC 1
70EXTRALIBS_FOR_BASE =
71!endif
72__dbbrowse___depname =
73!ifeq USE_ODBC 1
74__dbbrowse___depname = $(OBJS)\dbbrowse.exe
75!endif
264af224
VS
76__DEBUGINFO_0 =
77!ifeq BUILD debug
78!ifeq DEBUG_INFO default
79__DEBUGINFO_0 = -d2
80!endif
81!endif
82!ifeq BUILD release
83!ifeq DEBUG_INFO default
84__DEBUGINFO_0 = -d0
85!endif
86!endif
87!ifeq DEBUG_INFO 0
88__DEBUGINFO_0 = -d0
89!endif
90!ifeq DEBUG_INFO 1
91__DEBUGINFO_0 = -d2
92!endif
93__DEBUGINFO_1 =
94!ifeq BUILD debug
95!ifeq DEBUG_INFO default
96__DEBUGINFO_1 = debug all
97!endif
98!endif
99!ifeq BUILD release
100!ifeq DEBUG_INFO default
101__DEBUGINFO_1 =
102!endif
103!endif
104!ifeq DEBUG_INFO 0
105__DEBUGINFO_1 =
106!endif
107!ifeq DEBUG_INFO 1
108__DEBUGINFO_1 = debug all
109!endif
264af224
VS
110__OPTIMIZEFLAG_2 =
111!ifeq BUILD debug
112__OPTIMIZEFLAG_2 = -od
113!endif
114!ifeq BUILD release
115__OPTIMIZEFLAG_2 = -ot -ox
116!endif
117__RUNTIME_LIBS_5 =
118!ifeq RUNTIME_LIBS dynamic
119__RUNTIME_LIBS_5 = -br
120!endif
121!ifeq RUNTIME_LIBS static
122__RUNTIME_LIBS_5 =
123!endif
d3d0b8db
JS
124__EXCEPTIONSFLAG_6 =
125!ifeq USE_EXCEPTIONS 0
126__EXCEPTIONSFLAG_6 =
127!endif
128!ifeq USE_EXCEPTIONS 1
129__EXCEPTIONSFLAG_6 = -xr
130!endif
b17c1746
DE
131__EXCEPTIONSFLAG_7 =
132!ifeq USE_EXCEPTIONS 0
133__EXCEPTIONSFLAG_7 =
134!endif
135!ifeq USE_EXCEPTIONS 1
136__EXCEPTIONSFLAG_7 = -xs
137!endif
138__WXLIB_DBGRID_p =
139!ifeq MONOLITHIC 0
140__WXLIB_DBGRID_p = &
c33fae85 141 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib
264af224
VS
142!endif
143__WXLIB_ADV_p =
144!ifeq MONOLITHIC 0
145__WXLIB_ADV_p = &
c33fae85 146 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
264af224 147!endif
b17c1746 148__WXLIB_ODBC_p =
264af224 149!ifeq MONOLITHIC 0
b92ca05a 150!ifeq USE_ODBC 1
c33fae85
RN
151__WXLIB_ODBC_p = &
152 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib
b17c1746 153!endif
b92ca05a 154!endif
b17c1746
DE
155__WXLIB_HTML_p =
156!ifeq MONOLITHIC 0
157__WXLIB_HTML_p = &
c33fae85 158 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
264af224
VS
159!endif
160__WXLIB_CORE_p =
161!ifeq MONOLITHIC 0
162__WXLIB_CORE_p = &
c33fae85 163 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
264af224 164!endif
b17c1746 165__WXLIB_BASE_p =
264af224 166!ifeq MONOLITHIC 0
c33fae85
RN
167__WXLIB_BASE_p = &
168 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
264af224
VS
169!endif
170__WXLIB_MONO_p =
171!ifeq MONOLITHIC 1
172__WXLIB_MONO_p = &
c33fae85 173 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
264af224 174!endif
b17c1746
DE
175__LIB_TIFF_p =
176!ifeq USE_GUI 1
9c2d002b 177__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
b17c1746
DE
178!endif
179__LIB_JPEG_p =
180!ifeq USE_GUI 1
9c2d002b 181__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
182!endif
183__LIB_PNG_p =
184!ifeq USE_GUI 1
9c2d002b 185__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746 186!endif
264af224
VS
187__WXUNIV_DEFINE_p =
188!ifeq WXUNIV 1
189__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
190!endif
b17c1746
DE
191__DEBUG_DEFINE_p =
192!ifeq BUILD debug
193!ifeq DEBUG_FLAG default
194__DEBUG_DEFINE_p = -d__WXDEBUG__
195!endif
196!endif
197!ifeq DEBUG_FLAG 1
198__DEBUG_DEFINE_p = -d__WXDEBUG__
199!endif
200__UNICODE_DEFINE_p =
201!ifeq UNICODE 1
202__UNICODE_DEFINE_p = -d_UNICODE
203!endif
204__DLLFLAG_p =
205!ifeq SHARED 1
206__DLLFLAG_p = -dWXUSINGDLL
207!endif
264af224
VS
208
209### Variables: ###
210
c33fae85 211WX_RELEASE_NODOT = 25
b17c1746
DE
212OBJS = &
213 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
d3d0b8db 214LIBDIRNAME = .\..\..\lib\wat_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
215SETUPHDIR = &
216 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 217DBBROWSE_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) -bm &
264af224 218 $(__RUNTIME_LIBS_5) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
d3d0b8db
JS
219 $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=$(SETUPHDIR) -wx -wcd=549 &
220 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH &
221 $(__EXCEPTIONSFLAG_6) $(__EXCEPTIONSFLAG_7) $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
222DBBROWSE_OBJECTS = &
223 $(OBJS)\dbbrowse_dbbrowse.obj &
224 $(OBJS)\dbbrowse_doc.obj &
225 $(OBJS)\dbbrowse_pgmctrl.obj &
226 $(OBJS)\dbbrowse_tabpgwin.obj &
227 $(OBJS)\dbbrowse_browsedb.obj &
228 $(OBJS)\dbbrowse_dbtree.obj &
229 $(OBJS)\dbbrowse_dbgrid.obj &
230 $(OBJS)\dbbrowse_dlguser.obj
264af224 231
264af224
VS
232
233all : $(OBJS)
234$(OBJS) :
235 -if not exist $(OBJS) mkdir $(OBJS)
236
237### Targets: ###
238
dd65d8c8 239all : .SYMBOLIC $(__dbbrowse___depname) data_help_std data_help_png
264af224 240
264af224
VS
241clean : .SYMBOLIC
242 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
243 -if exist $(OBJS)\*.res del $(OBJS)\*.res
244 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
245 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
d3d0b8db 246 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
264af224
VS
247 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
248
dd65d8c8 249!ifeq USE_ODBC 1
264af224
VS
250$(OBJS)\dbbrowse.exe : $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
251 @%create $(OBJS)\dbbrowse.lbc
252 @%append $(OBJS)\dbbrowse.lbc option quiet
253 @%append $(OBJS)\dbbrowse.lbc name $^@
75a0a7b7 254 @%append $(OBJS)\dbbrowse.lbc option caseexact
264af224
VS
255 @%append $(OBJS)\dbbrowse.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
256 @for %i in ($(DBBROWSE_OBJECTS)) do @%append $(OBJS)\dbbrowse.lbc file %i
d3d0b8db 257 @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
258 @%append $(OBJS)\dbbrowse.lbc option resource=$(OBJS)\dbbrowse_dbbrowse.res
259 wlink @$(OBJS)\dbbrowse.lbc
dd65d8c8 260!endif
b17c1746 261
eac98de7
VS
262data_help_std : .SYMBOLIC
263 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
264 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
265
266data_help_png : .SYMBOLIC
267 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
268 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
269
b17c1746
DE
270$(OBJS)\dbbrowse_dbbrowse.obj : .AUTODEPEND .\dbbrowse.cpp
271 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
272
273$(OBJS)\dbbrowse_doc.obj : .AUTODEPEND .\doc.cpp
274 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
275
276$(OBJS)\dbbrowse_pgmctrl.obj : .AUTODEPEND .\pgmctrl.cpp
277 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
278
279$(OBJS)\dbbrowse_tabpgwin.obj : .AUTODEPEND .\tabpgwin.cpp
280 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
281
282$(OBJS)\dbbrowse_browsedb.obj : .AUTODEPEND .\browsedb.cpp
283 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
284
285$(OBJS)\dbbrowse_dbtree.obj : .AUTODEPEND .\dbtree.cpp
286 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
287
288$(OBJS)\dbbrowse_dbgrid.obj : .AUTODEPEND .\dbgrid.cpp
289 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
290
291$(OBJS)\dbbrowse_dlguser.obj : .AUTODEPEND .\dlguser.cpp
292 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
293
294$(OBJS)\dbbrowse_dbbrowse.res : .AUTODEPEND .\dbbrowse.rc
d3d0b8db
JS
295 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 $<
296