Better check for 64-bit.
[AROS-Contrib.git] / sqlite3 / mmakefile.src
blob4938f90d49a9333b9326a244a87fb727b4d4a389
2 include $(SRCDIR)/config/aros-contrib.cfg
4 ENCODING := ISO8859
6 FILES := alter attach auth btree build callback date \
7         delete expr func hash insert main \
8         os_aros pager pragma prepare printf \
9         random select table tokenize trigger \
10         update util vacuum \
11         vdbe vdbeapi vdbeaux vdbemem \
12         where utf legacy \
13         opcodes parse
15 %build_prog mmake=contrib-sqlite3 \
16         progname=sqlite targetdir=$(AROS_CONTRIB)/daikane \
17         files="$(FILES) shell" \
18         cflags="-Wall -DOS_AROS -DSQLITE_DEBUG"
20 %build_prog mmake=contrib-sqlite3-test \
21         progname=test targetdir=$(AROS_CONTRIB)/daikane \
22         files="test" cflags="-Wall"
24 #MM- contrib-sqlite3: \
25 #MM contrib-sqlite3-lemon \
26 #MM contrib-sqlite3-parse-h \
27 #MM contrib-sqlite3-sqlite3-h \
28 #MM contrib-sqlite3-keywordhash-h \
29 #MM contrib-sqlite3-opcodes-h \
30 #MM contrib-sqlite3-opcodes-c
32 #MM
33 contrib-sqlite3-test: test-copy
35 #MM
36 contrib-sqlite3-lemon: lemon
37 #MM
38 contrib-sqlite3-parse-h: parse.h
39 #MM
40 contrib-sqlite3-sqlite3-h: sqlite3.h
41 #MM
42 contrib-sqlite3-keywordhash-h: keywordhash.h
43 #MM
44 contrib-sqlite3-opcodes-h: opcodes.h
45 #MM
46 contrib-sqlite3-opcodes-c: opcodes.h opcodes.c
47 #MM
48 contrib-sqlite3-doc:    doc
50 test-copy:
51         cp -f test.c $(AROS_CONTRIB)/daikane/
53 # Files to be published on the website.
55 DOC = \
56   arch.html \
57   arch.png \
58   autoinc.html \
59   c_interface.html \
60   capi3.html \
61   capi3ref.html \
62   changes.html \
63   compile.html \
64   copyright.html \
65   copyright-release.html \
66   copyright-release.pdf \
67   conflict.html \
68   datatypes.html \
69   datatype3.html \
70   different.html \
71   docs.html \
72   download.html \
73   faq.html \
74   fileformat.html \
75   formatchng.html \
76   index.html \
77   lang.html \
78   lockingv3.html \
79   mingw.html \
80   nulls.html \
81   oldnews.html \
82   omitted.html \
83   opcode.html \
84   pragma.html \
85   quickstart.html \
86   speed.html \
87   sqlite.gif \
88   sqlite.html \
89   support.html \
90   tclsqlite.html \
91   vdbe.html \
92   version3.html \
93   whentouse.html
95 doc: common.tcl $(DOC)
96         @mkdir -p $(AROS_CONTRIB)/daikane/doc 2>/dev/null
97         @mv $(DOC) $(AROS_CONTRIB)/daikane/doc/
99 lemon: tool/lemon.c tool/lempar.c
100         gcc -o lemon tool/lemon.c
101         cp tool/lempar.c .
103 parse.h: parse.y
104         ./lemon $(OPTS) parse.y
105         mv -f parse.h parse.h
107 sqlite3.h: sqlite.h.in
108         sed -e s/--VERS--/`cat VERSION`/ \
109             -e s/--VERSION-NUMBER--/`cat VERSION | sed 's/[^0-9]/ /g' | awk '{printf "%d%03d%03d",$$1,$$2,$$3}'`/ \
110                  sqlite.h.in >sqlite3.h
112 keywordhash.h: tool/mkkeywordhash.c
113         gcc -o mkkeywordhash $(OPTS) tool/mkkeywordhash.c
114         ./mkkeywordhash >keywordhash.h
116 opcodes.c: opcodes.h mkopcodec.awk
117         sort -n -b +2 opcodes.h | awk -f mkopcodec.awk >opcodes.c
119 opcodes.h:      parse.h vdbe.c mkopcodeh.awk
120         cat parse.h vdbe.c | awk -f mkopcodeh.awk >opcodes.h
122 # Rules used to build documentation
124 arch.html:      www/arch.tcl
125         tclsh www/arch.tcl >arch.html
127 arch.png:       www/arch.png
128         cp www/arch.png .
130 autoinc.html:   www/autoinc.tcl
131         tclsh www/autoinc.tcl >autoinc.html
133 c_interface.html:       www/c_interface.tcl
134         tclsh www/c_interface.tcl >c_interface.html
136 capi3.html:     www/capi3.tcl
137         tclsh www/capi3.tcl >capi3.html
139 capi3ref.html:  www/capi3ref.tcl
140         tclsh www/capi3ref.tcl >capi3ref.html
142 changes.html:   www/changes.tcl
143         tclsh www/changes.tcl >changes.html
145 compile.html:   www/compile.tcl
146         tclsh www/compile.tcl >compile.html
148 copyright.html: www/copyright.tcl
149         tclsh www/copyright.tcl >copyright.html
151 copyright-release.html: www/copyright-release.html
152         cp www/copyright-release.html .
154 copyright-release.pdf:  www/copyright-release.pdf
155         cp www/copyright-release.pdf .
157 common.tcl:     www/common.tcl
158         cp www/common.tcl .
160 conflict.html:  www/conflict.tcl
161         tclsh www/conflict.tcl >conflict.html
163 datatypes.html: www/datatypes.tcl
164         tclsh www/datatypes.tcl >datatypes.html
166 datatype3.html: www/datatype3.tcl
167         tclsh www/datatype3.tcl >datatype3.html
169 different.html: www/different.tcl
170         tclsh www/different.tcl >different.html
172 docs.html:      www/docs.tcl
173         tclsh www/docs.tcl >docs.html
175 download.html:  www/download.tcl
176         @mkdir -p $(AROS_CONTRIB)/daikane/doc 2>/dev/null
177         tclsh www/download.tcl >download.html
179 faq.html:       www/faq.tcl
180         tclsh www/faq.tcl >faq.html
182 fileformat.html:        www/fileformat.tcl
183         tclsh www/fileformat.tcl >fileformat.html
185 formatchng.html:        www/formatchng.tcl
186         tclsh www/formatchng.tcl >formatchng.html
188 index.html:     www/index.tcl last_change
189         tclsh www/index.tcl >index.html
191 lang.html:      www/lang.tcl
192         tclsh www/lang.tcl doc >lang.html
194 pragma.html:    www/pragma.tcl
195         tclsh www/pragma.tcl >pragma.html
197 lockingv3.html: www/lockingv3.tcl
198         tclsh www/lockingv3.tcl >lockingv3.html
200 oldnews.html:   www/oldnews.tcl
201         tclsh www/oldnews.tcl >oldnews.html
203 omitted.html:   www/omitted.tcl
204         tclsh www/omitted.tcl >omitted.html
206 opcode.html:    www/opcode.tcl vdbe.c
207         tclsh www/opcode.tcl vdbe.c >opcode.html
209 mingw.html:     www/mingw.tcl
210         tclsh www/mingw.tcl >mingw.html
212 nulls.html:     www/nulls.tcl
213         tclsh www/nulls.tcl >nulls.html
215 quickstart.html:        www/quickstart.tcl
216         tclsh www/quickstart.tcl >quickstart.html
218 speed.html:     www/speed.tcl
219         tclsh www/speed.tcl >speed.html
221 sqlite.gif:     art/SQLite.gif
222         cp art/SQLite.gif sqlite.gif
224 sqlite.html:    www/sqlite.tcl
225         tclsh www/sqlite.tcl >sqlite.html
227 support.html:   www/support.tcl
228         tclsh www/support.tcl >support.html
230 tclsqlite.html: www/tclsqlite.tcl
231         tclsh www/tclsqlite.tcl >tclsqlite.html
233 vdbe.html:      www/vdbe.tcl
234         tclsh www/vdbe.tcl >vdbe.html
236 version3.html:  www/version3.tcl
237         tclsh www/version3.tcl >version3.html
239 whentouse.html: www/whentouse.tcl
240         tclsh www/whentouse.tcl >whentouse.html
242 last_change:
243         cat `for x in "$(FILES)"; do echo "$x".c; done` | grep '$$Id: ' | sort +4 | tail -1 \
244           | awk '{print $$5,$$6}' >last_change