source: project/release/4/sqlite3/trunk/Makefile @ 15334

Last change on this file since 15334 was 15334, checked in by Thomas Chust, 11 years ago

[sqlite3] Merged CHICKEN 4 specific local changes back into Subversion.

File size: 1.1 KB
Line 
1# Makefile
2# :tabSize=2:indentSize=2:noTabs=false:
3# Egg build control
4
5CSI=csi
6CSC=csc
7TAR=tar
8
9CSCFLAGS=-O2 -d1
10IMPORT_CSCFLAGS=-O2 -d0
11LDLIBS=-lsqlite3
12
13NAME=sqlite3
14VERSION=3.2.1
15
16.PHONY: all clean
17
18all: $(NAME).egg $(NAME).so
19
20clean:
21        $(RM) $(addprefix $(NAME),.egg .so .html .setup)
22
23$(NAME).egg:    $(addprefix $(NAME),.scm .html .setup .meta) tests/run.scm egg.jpg doc.scm Makefile
24        $(TAR) czf $@ $^
25
26$(NAME).html: doc.scm
27        $(CSI) -s $< >$@
28
29$(NAME).setup: Makefile
30        echo "(compile $(CSCFLAGS)" >$@; \
31        echo "  -s \"$(NAME).scm\" $(LDLIBS) -j \"$(NAME)\")" >>$@; \
32        echo "(compile $(IMPORT_CSCFLAGS)" >>$@; \
33        echo "  -s \"$(NAME).import.scm\")" >>$@; \
34        echo "(compile $(CSCFLAGS)" >>$@; \
35        echo "  -c \"$(NAME).scm\" -unit \"$(NAME)\" -o \"$(NAME)-static.o\")" >>$@; \
36        echo "(install-extension" >>$@; \
37        echo "  '$(NAME)" >>$@; \
38        echo "  '(\"$(NAME).so\" \"$(NAME).import.so\" \"$(NAME)-static.o\")" >>$@; \
39        echo "  '((version \"$(VERSION)\")" >>$@; \
40        echo "    (static \"$(NAME)-static.o\")" >>$@; \
41        echo "    (documentation \"$(NAME).html\" \"egg.jpg\")))" >>$@
42
43%.so: %.scm
44        $(CSC) $(CSCFLAGS) -s $< $(LDLIBS) -o $@
Note: See TracBrowser for help on using the repository browser.