source: project/release/3/slang/trunk/Makefile @ 18200

Last change on this file since 18200 was 4910, checked in by Tony Sidaway, 13 years ago

Include missing examples.

File size: 888 bytes
Line 
1# Makefile for slang.egg
2slangCFLAGS=
3slangLIBS=-lslang
4
5CSC=csc
6CSCCC=$(CSC) $(slangCFLAGS)
7CSCLD=$(CSC) $(slangCFLAGS) $(slangLIBS)
8
9TARGETS=\
10        slang.so slang.html
11
12EGG_CONTENTS=\
13        Makefile \
14        slang.scm \
15        slang.setup \
16        slang.html \
17        eggdoc-slang.scm \
18        slang-examples/pager.scm \
19        slang-examples/smgtest.scm \
20        slang-examples/demolib.scm \
21        slang-examples/Makefile
22
23all: $(TARGETS)
24
25slang.exports: extension
26
27extension: slang.so
28
29slang.so: slang.scm
30        $(CSCCC) -s -emit-exports slang.exports -o $@ $<
31
32
33install: all
34        chicken-setup slang
35
36uninstall:
37        chicken-setup -uninstall slang
38
39slang.html: eggdoc-slang.scm
40        $(CSC) eggdoc-slang.scm
41        ./eggdoc-slang >slang.html
42
43egg: slang.egg
44
45slang.egg: $(EGG_CONTENTS)
46        tar cvfz $@ $(EGG_CONTENTS)
47
48%.so: %.scm
49        $(CSCLD) -s -o $@ $<
50#       strip $@
51
52clean:
53        rm -f $(TARGETS)
54        rm -f STACKTRACE
55        rm -f eggdoc-slang
56        rm -f slang.exports
57        rm -f slang.egg
Note: See TracBrowser for help on using the repository browser.