]> git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/makefile.wat
final sweep over docs - replace & with \&
[wxWidgets.git] / demos / dbbrowse / makefile.wat
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !include ../../build/msw/config.wat
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:
26 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
27
28 ### Conditionally set variables: ###
29
30 PORTNAME =
31 !ifeq USE_GUI 0
32 PORTNAME = base
33 !endif
34 !ifeq USE_GUI 1
35 PORTNAME = msw
36 !endif
37 WXDEBUGFLAG =
38 !ifeq BUILD debug
39 !ifeq DEBUG_FLAG default
40 WXDEBUGFLAG = d
41 !endif
42 !endif
43 !ifeq DEBUG_FLAG 1
44 WXDEBUGFLAG = d
45 !endif
46 WXUNICODEFLAG =
47 !ifeq UNICODE 1
48 WXUNICODEFLAG = u
49 !endif
50 WXUNIVNAME =
51 !ifeq WXUNIV 1
52 WXUNIVNAME = univ
53 !endif
54 WXDLLFLAG =
55 !ifeq SHARED 1
56 WXDLLFLAG = dll
57 !endif
58 EXTRALIBS_FOR_BASE =
59 !ifeq MONOLITHIC 0
60 EXTRALIBS_FOR_BASE =
61 !endif
62 !ifeq MONOLITHIC 1
63 EXTRALIBS_FOR_BASE =
64 !endif
65 __dbbrowse___depname =
66 !ifeq USE_ODBC 1
67 __dbbrowse___depname = $(OBJS)\dbbrowse.exe
68 !endif
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
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
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 = &
127 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib
128 !endif
129 __WXLIB_ADV_p =
130 !ifeq MONOLITHIC 0
131 __WXLIB_ADV_p = &
132 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
133 !endif
134 __WXLIB_ODBC_p =
135 !ifeq MONOLITHIC 0
136 !ifeq USE_ODBC 1
137 __WXLIB_ODBC_p = &
138 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib
139 !endif
140 !endif
141 __WXLIB_HTML_p =
142 !ifeq MONOLITHIC 0
143 __WXLIB_HTML_p = &
144 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
145 !endif
146 __WXLIB_CORE_p =
147 !ifeq MONOLITHIC 0
148 __WXLIB_CORE_p = &
149 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
150 !endif
151 __WXLIB_BASE_p =
152 !ifeq MONOLITHIC 0
153 __WXLIB_BASE_p = &
154 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
155 !endif
156 __WXLIB_MONO_p =
157 !ifeq MONOLITHIC 1
158 __WXLIB_MONO_p = &
159 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
160 !endif
161 __LIB_TIFF_p =
162 !ifeq USE_GUI 1
163 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
164 !endif
165 __LIB_JPEG_p =
166 !ifeq USE_GUI 1
167 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
168 !endif
169 __LIB_PNG_p =
170 !ifeq USE_GUI 1
171 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
172 !endif
173 LIBDIRNAME =
174 !ifeq SHARED 0
175 LIBDIRNAME = .\..\..\lib\wat_lib$(CFG)
176 !endif
177 !ifeq SHARED 1
178 LIBDIRNAME = .\..\..\lib\wat_dll$(CFG)
179 !endif
180 __WXUNIV_DEFINE_p =
181 !ifeq WXUNIV 1
182 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
183 !endif
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
201
202 ### Variables: ###
203
204 WX_RELEASE_NODOT = 25
205 OBJS = &
206 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
207 SETUPHDIR = &
208 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
209 DBBROWSE_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) -bm &
210 $(__RUNTIME_LIBS_5) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
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)
214 DBBROWSE_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
223
224
225 all : $(OBJS)
226 $(OBJS) :
227 -if not exist $(OBJS) mkdir $(OBJS)
228
229 ### Targets: ###
230
231 all : .SYMBOLIC $(__dbbrowse___depname) data_help_std data_help_png
232
233 clean : .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
240 !ifeq USE_ODBC 1
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 $^@
245 @%append $(OBJS)\dbbrowse.lbc option caseexact
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
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
249 @%append $(OBJS)\dbbrowse.lbc option resource=$(OBJS)\dbbrowse_dbbrowse.res
250 wlink @$(OBJS)\dbbrowse.lbc
251 !endif
252
253 data_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
257 data_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
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
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 $<