diff options
author | Case Duckworth | 2023-06-01 16:30:09 -0500 |
---|---|---|
committer | Case Duckworth | 2023-06-01 16:30:09 -0500 |
commit | c3481952e04eb79056ed5510f91c597ccb5dddd7 (patch) | |
tree | e73f79a04106fcf121fb7ca516aa6794f3982aeb /makefile | |
parent | Remove spurious import (diff) | |
download | apple-c3481952e04eb79056ed5510f91c597ccb5dddd7.tar.gz apple-c3481952e04eb79056ed5510f91c597ccb5dddd7.zip |
Change name to apple and add makefile
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 | ||