diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..dbdbe9f --- /dev/null +++ b/makefile | |||
@@ -0,0 +1,16 @@ | |||
1 | # 'apple' | ||
2 | |||
3 | CSC = csc -static | ||
4 | |||
5 | apple: apple-bin.scm | ||
6 | $(CSC) $< -o $@ | ||
7 | |||
8 | apple-bin.scm: apple.scm | ||
9 | @echo "writing apple-bin.scm" | ||
10 | @echo '(import (scheme process-context))' > $@ | ||
11 | @echo '(include "$<")' >> $@ | ||
12 | @echo '(main (cdr (command-line)))' >> $@ | ||
13 | |||
14 | .PHONY: clean | ||
15 | clean: | ||
16 | rm apple-bin.scm *.link | ||