Same fix as r45172 for classes/iconimage:
[AROS-Contrib.git] / sqlite3 / mmakefile.src
blobc58bc4a582934459bddd523fb4ed38a5c99d70de
1 include $(TOP)/config/make.cfg
3 ENCODING := ISO8859
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 \
9         update util vacuum \
10         vdbe vdbeapi vdbeaux vdbemem \
11         where utf legacy \
12         opcodes parse
14 %build_prog mmake=contrib-sqlite3 \
15         progname=sqlite targetdir=$(CONTRIBDIR)/daikane \
16         files="$(FILES) shell" \
17         cflags="-Wall -DOS_AROS -DSQLITE_DEBUG" \
18         uselibs="arossupport amiga arosc m"
20 %build_prog mmake=contrib-sqlite3-test \
21         progname=test targetdir=$(CONTRIBDIR)/daikane \
22         files="test" cflags="-Wall" \
23         uselibs="arossupport amiga arosc"
25 #MM- contrib-sqlite3: \
26 #MM contrib-sqlite3-lemon \
27 #MM contrib-sqlite3-parse-h \
28 #MM contrib-sqlite3-sqlite3-h \
29 #MM contrib-sqlite3-keywordhash-h \
30 #MM contrib-sqlite3-opcodes-h \
31 #MM contrib-sqlite3-opcodes-c
33 #MM
34 contrib-sqlite3-test: test-copy
36 #MM
37 contrib-sqlite3-lemon: lemon
38 #MM
39 contrib-sqlite3-parse-h: parse.h
40 #MM
41 contrib-sqlite3-sqlite3-h: sqlite3.h
42 #MM
43 contrib-sqlite3-keywordhash-h: keywordhash.h
44 #MM
45 contrib-sqlite3-opcodes-h: opcodes.h
46 #MM
47 contrib-sqlite3-opcodes-c: opcodes.h opcodes.c
48 #MM
49 contrib-sqlite3-doc:    doc
51 test-copy:
52         cp -f test.c $(CONTRIBDIR)/daikane/
54 # Files to be published on the website.
56 DOC = \
57   arch.html \
58   arch.png \
59   autoinc.html \
60   c_interface.html \
61   capi3.html \
62   capi3ref.html \
63   changes.html \
64   compile.html \
65   copyright.html \
66   copyright-release.html \
67   copyright-release.pdf \
68   conflict.html \
69   datatypes.html \
70   datatype3.html \
71   different.html \
72   docs.html \
73   download.html \
74   faq.html \
75   fileformat.html \
76   formatchng.html \
77   index.html \
78   lang.html \
79   lockingv3.html \
80   mingw.html \
81   nulls.html \
82   oldnews.html \
83   omitted.html \
84   opcode.html \
85   pragma.html \
86   quickstart.html \
87   speed.html \
88   sqlite.gif \
89   sqlite.html \
90   support.html \
91   tclsqlite.html \
92   vdbe.html \
93   version3.html \
94   whentouse.html
96 doc: common.tcl $(DOC)
97         @mkdir -p $(CONTRIBDIR)/daikane/doc 2>/dev/null
98         @mv $(DOC) $(CONTRIBDIR)/daikane/doc/
100 lemon: tool/lemon.c tool/lempar.c
101         gcc -o lemon tool/lemon.c
102         cp tool/lempar.c .
104 parse.h: parse.y
105         ./lemon $(OPTS) parse.y
106         mv -f parse.h parse.h
108 sqlite3.h: sqlite.h.in
109         sed -e s/--VERS--/`cat VERSION`/ \
110             -e s/--VERSION-NUMBER--/`cat VERSION | sed 's/[^0-9]/ /g' | awk '{printf "%d%03d%03d",$$1,$$2,$$3}'`/ \
111                  sqlite.h.in >sqlite3.h
113 keywordhash.h: tool/mkkeywordhash.c
114         gcc -o mkkeywordhash $(OPTS) tool/mkkeywordhash.c
115         ./mkkeywordhash >keywordhash.h
117 opcodes.c: opcodes.h mkopcodec.awk
118         sort -n -b +2 opcodes.h | awk -f mkopcodec.awk >opcodes.c
120 opcodes.h:      parse.h vdbe.c mkopcodeh.awk
121         cat parse.h vdbe.c | awk -f mkopcodeh.awk >opcodes.h
123 # Rules used to build documentation
125 arch.html:      www/arch.tcl
126         tclsh www/arch.tcl >arch.html
128 arch.png:       www/arch.png
129         cp www/arch.png .
131 autoinc.html:   www/autoinc.tcl
132         tclsh www/autoinc.tcl >autoinc.html
134 c_interface.html:       www/c_interface.tcl
135         tclsh www/c_interface.tcl >c_interface.html
137 capi3.html:     www/capi3.tcl
138         tclsh www/capi3.tcl >capi3.html
140 capi3ref.html:  www/capi3ref.tcl
141         tclsh www/capi3ref.tcl >capi3ref.html
143 changes.html:   www/changes.tcl
144         tclsh www/changes.tcl >changes.html
146 compile.html:   www/compile.tcl
147         tclsh www/compile.tcl >compile.html
149 copyright.html: www/copyright.tcl
150         tclsh www/copyright.tcl >copyright.html
152 copyright-release.html: www/copyright-release.html
153         cp www/copyright-release.html .
155 copyright-release.pdf:  www/copyright-release.pdf
156         cp www/copyright-release.pdf .
158 common.tcl:     www/common.tcl
159         cp www/common.tcl .
161 conflict.html:  www/conflict.tcl
162         tclsh www/conflict.tcl >conflict.html
164 datatypes.html: www/datatypes.tcl
165         tclsh www/datatypes.tcl >datatypes.html
167 datatype3.html: www/datatype3.tcl
168         tclsh www/datatype3.tcl >datatype3.html
170 different.html: www/different.tcl
171         tclsh www/different.tcl >different.html
173 docs.html:      www/docs.tcl
174         tclsh www/docs.tcl >docs.html
176 download.html:  www/download.tcl
177         @mkdir -p $(CONTRIBDIR)/daikane/doc 2>/dev/null
178         tclsh www/download.tcl >download.html
180 faq.html:       www/faq.tcl
181         tclsh www/faq.tcl >faq.html
183 fileformat.html:        www/fileformat.tcl
184         tclsh www/fileformat.tcl >fileformat.html
186 formatchng.html:        www/formatchng.tcl
187         tclsh www/formatchng.tcl >formatchng.html
189 index.html:     www/index.tcl last_change
190         tclsh www/index.tcl >index.html
192 lang.html:      www/lang.tcl
193         tclsh www/lang.tcl doc >lang.html
195 pragma.html:    www/pragma.tcl
196         tclsh www/pragma.tcl >pragma.html
198 lockingv3.html: www/lockingv3.tcl
199         tclsh www/lockingv3.tcl >lockingv3.html
201 oldnews.html:   www/oldnews.tcl
202         tclsh www/oldnews.tcl >oldnews.html
204 omitted.html:   www/omitted.tcl
205         tclsh www/omitted.tcl >omitted.html
207 opcode.html:    www/opcode.tcl vdbe.c
208         tclsh www/opcode.tcl vdbe.c >opcode.html
210 mingw.html:     www/mingw.tcl
211         tclsh www/mingw.tcl >mingw.html
213 nulls.html:     www/nulls.tcl
214         tclsh www/nulls.tcl >nulls.html
216 quickstart.html:        www/quickstart.tcl
217         tclsh www/quickstart.tcl >quickstart.html
219 speed.html:     www/speed.tcl
220         tclsh www/speed.tcl >speed.html
222 sqlite.gif:     art/SQLite.gif
223         cp art/SQLite.gif sqlite.gif
225 sqlite.html:    www/sqlite.tcl
226         tclsh www/sqlite.tcl >sqlite.html
228 support.html:   www/support.tcl
229         tclsh www/support.tcl >support.html
231 tclsqlite.html: www/tclsqlite.tcl
232         tclsh www/tclsqlite.tcl >tclsqlite.html
234 vdbe.html:      www/vdbe.tcl
235         tclsh www/vdbe.tcl >vdbe.html
237 version3.html:  www/version3.tcl
238         tclsh www/version3.tcl >version3.html
240 whentouse.html: www/whentouse.tcl
241         tclsh www/whentouse.tcl >whentouse.html
243 last_change:
244         cat `for x in "$(FILES)"; do echo "$x".c; done` | grep '$$Id: ' | sort +4 | tail -1 \
245           | awk '{print $$5,$$6}' >last_change