1 include $(TOP)/config/make.cfg
5 FILES := alter attach auth btree build callback date \
6 delete expr func hash insert main \
7 os_aros pager pragma prepare printf \
8 random select table tokenize trigger \
10 vdbe vdbeapi vdbeaux vdbemem \
14 %build_prog mmake=contrib-sqlite3 \
15 progname=sqlite targetdir=$(AROS_CONTRIB)/daikane \
16 files="$(FILES) shell" \
17 cflags="-Wall -DOS_AROS -DSQLITE_DEBUG"
19 %build_prog mmake=contrib-sqlite3-test \
20 progname=test targetdir=$(AROS_CONTRIB)/daikane \
21 files="test" cflags="-Wall"
23 #MM- contrib-sqlite3: \
24 #MM contrib-sqlite3-lemon \
25 #MM contrib-sqlite3-parse-h \
26 #MM contrib-sqlite3-sqlite3-h \
27 #MM contrib-sqlite3-keywordhash-h \
28 #MM contrib-sqlite3-opcodes-h \
29 #MM contrib-sqlite3-opcodes-c
32 contrib-sqlite3-test: test-copy
35 contrib-sqlite3-lemon: lemon
37 contrib-sqlite3-parse-h: parse.h
39 contrib-sqlite3-sqlite3-h: sqlite3.h
41 contrib-sqlite3-keywordhash-h: keywordhash.h
43 contrib-sqlite3-opcodes-h: opcodes.h
45 contrib-sqlite3-opcodes-c: opcodes.h opcodes.c
47 contrib-sqlite3-doc: doc
50 cp -f test.c $(AROS_CONTRIB)/daikane/
52 # Files to be published on the website.
64 copyright-release.html \
65 copyright-release.pdf \
94 doc: common.tcl $(DOC)
95 @mkdir -p $(AROS_CONTRIB)/daikane/doc 2>/dev/null
96 @mv $(DOC) $(AROS_CONTRIB)/daikane/doc/
98 lemon: tool/lemon.c tool/lempar.c
99 gcc -o lemon tool/lemon.c
103 ./lemon $(OPTS) parse.y
104 mv -f parse.h parse.h
106 sqlite3.h: sqlite.h.in
107 sed -e s/--VERS--/`cat VERSION`/ \
108 -e s/--VERSION-NUMBER--/`cat VERSION | sed 's/[^0-9]/ /g' | awk '{printf "%d%03d%03d",$$1,$$2,$$3}'`/ \
109 sqlite.h.in >sqlite3.h
111 keywordhash.h: tool/mkkeywordhash.c
112 gcc -o mkkeywordhash $(OPTS) tool/mkkeywordhash.c
113 ./mkkeywordhash >keywordhash.h
115 opcodes.c: opcodes.h mkopcodec.awk
116 sort -n -b +2 opcodes.h | awk -f mkopcodec.awk >opcodes.c
118 opcodes.h: parse.h vdbe.c mkopcodeh.awk
119 cat parse.h vdbe.c | awk -f mkopcodeh.awk >opcodes.h
121 # Rules used to build documentation
123 arch.html: www/arch.tcl
124 tclsh www/arch.tcl >arch.html
126 arch.png: www/arch.png
129 autoinc.html: www/autoinc.tcl
130 tclsh www/autoinc.tcl >autoinc.html
132 c_interface.html: www/c_interface.tcl
133 tclsh www/c_interface.tcl >c_interface.html
135 capi3.html: www/capi3.tcl
136 tclsh www/capi3.tcl >capi3.html
138 capi3ref.html: www/capi3ref.tcl
139 tclsh www/capi3ref.tcl >capi3ref.html
141 changes.html: www/changes.tcl
142 tclsh www/changes.tcl >changes.html
144 compile.html: www/compile.tcl
145 tclsh www/compile.tcl >compile.html
147 copyright.html: www/copyright.tcl
148 tclsh www/copyright.tcl >copyright.html
150 copyright-release.html: www/copyright-release.html
151 cp www/copyright-release.html .
153 copyright-release.pdf: www/copyright-release.pdf
154 cp www/copyright-release.pdf .
156 common.tcl: www/common.tcl
159 conflict.html: www/conflict.tcl
160 tclsh www/conflict.tcl >conflict.html
162 datatypes.html: www/datatypes.tcl
163 tclsh www/datatypes.tcl >datatypes.html
165 datatype3.html: www/datatype3.tcl
166 tclsh www/datatype3.tcl >datatype3.html
168 different.html: www/different.tcl
169 tclsh www/different.tcl >different.html
171 docs.html: www/docs.tcl
172 tclsh www/docs.tcl >docs.html
174 download.html: www/download.tcl
175 @mkdir -p $(AROS_CONTRIB)/daikane/doc 2>/dev/null
176 tclsh www/download.tcl >download.html
178 faq.html: www/faq.tcl
179 tclsh www/faq.tcl >faq.html
181 fileformat.html: www/fileformat.tcl
182 tclsh www/fileformat.tcl >fileformat.html
184 formatchng.html: www/formatchng.tcl
185 tclsh www/formatchng.tcl >formatchng.html
187 index.html: www/index.tcl last_change
188 tclsh www/index.tcl >index.html
190 lang.html: www/lang.tcl
191 tclsh www/lang.tcl doc >lang.html
193 pragma.html: www/pragma.tcl
194 tclsh www/pragma.tcl >pragma.html
196 lockingv3.html: www/lockingv3.tcl
197 tclsh www/lockingv3.tcl >lockingv3.html
199 oldnews.html: www/oldnews.tcl
200 tclsh www/oldnews.tcl >oldnews.html
202 omitted.html: www/omitted.tcl
203 tclsh www/omitted.tcl >omitted.html
205 opcode.html: www/opcode.tcl vdbe.c
206 tclsh www/opcode.tcl vdbe.c >opcode.html
208 mingw.html: www/mingw.tcl
209 tclsh www/mingw.tcl >mingw.html
211 nulls.html: www/nulls.tcl
212 tclsh www/nulls.tcl >nulls.html
214 quickstart.html: www/quickstart.tcl
215 tclsh www/quickstart.tcl >quickstart.html
217 speed.html: www/speed.tcl
218 tclsh www/speed.tcl >speed.html
220 sqlite.gif: art/SQLite.gif
221 cp art/SQLite.gif sqlite.gif
223 sqlite.html: www/sqlite.tcl
224 tclsh www/sqlite.tcl >sqlite.html
226 support.html: www/support.tcl
227 tclsh www/support.tcl >support.html
229 tclsqlite.html: www/tclsqlite.tcl
230 tclsh www/tclsqlite.tcl >tclsqlite.html
232 vdbe.html: www/vdbe.tcl
233 tclsh www/vdbe.tcl >vdbe.html
235 version3.html: www/version3.tcl
236 tclsh www/version3.tcl >version3.html
238 whentouse.html: www/whentouse.tcl
239 tclsh www/whentouse.tcl >whentouse.html
242 cat `for x in "$(FILES)"; do echo "$x".c; done` | grep '$$Id: ' | sort +4 | tail -1 \
243 | awk '{print $$5,$$6}' >last_change