source: project/sqlite3/trunk/Makefile @ 4995

Last change on this file since 4995 was 4995, checked in by Thomas Chust, 13 years ago

[sqlite3, sqlite3-tinyclos] Changed NULL representation from #f to (void)

File size: 870 bytes
Line 
1CSI=csi
2CSC=csc
3TAR=tar
4
5CSCFLAGS=-O2 -d0 -X easyffi -X tinyclos -check-imports
6LDLIBS=-lsqlite3
7
8NAME=sqlite3
9VERSION=2.0.0
10
11.PHONY: all clean
12
13all: $(NAME).egg $(NAME).so
14
15clean:
16        $(RM) $(addprefix $(NAME),.egg .so .html .setup)
17
18$(NAME).egg: $(addprefix $(NAME),.scm .html .setup) egg.jpg doc.scm Makefile
19        $(TAR) czf $@ $^
20
21$(NAME).html: doc.scm
22        $(CSI) -s $< >$@
23
24$(NAME).setup: Makefile
25        echo "(define so-file \"sqlite3.so\")" >$@; \
26        echo "(compile" >>$@; \
27        echo $(CSCFLAGS) -s \"$(NAME).scm\" $(LDLIBS)" >>$@; \
28        echo "  -o ,so-file -emit-exports \"$(NAME).exports\")" >>$@; \
29        echo "(install-extension" >>$@; \
30        echo "  '$(NAME)" >>$@; \
31        echo "  \`(,so-file" >>$@; \
32        echo "    \"$(NAME).html\" \"egg.jpg\")" >>$@; \
33        echo "  '((version \"$(VERSION)\") (documentation \"$(NAME).html\")))" >>$@
34
35%.so: %.scm
36        $(CSC) $(CSCFLAGS) -s $< $(LDLIBS) -o $@
Note: See TracBrowser for help on using the repository browser.