about summary refs log tree commit diff stats
path: root/makefile
blob: dbdbe9f9f2ebbbe47fc716b47a6d452f2753977c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 'apple'

CSC = csc -static

apple: apple-bin.scm
	$(CSC) $< -o $@

apple-bin.scm: apple.scm
	@echo "writing apple-bin.scm"
	@echo '(import (scheme process-context))' > $@
	@echo '(include "$<")' >> $@
	@echo '(main (cdr (command-line)))' >> $@

.PHONY: clean
clean:
	rm apple-bin.scm *.link