diff options
author | Case Duckworth | 2024-05-28 22:42:37 -0500 |
---|---|---|
committer | Case Duckworth | 2024-05-28 22:42:37 -0500 |
commit | 37ec56fb141edbb1bab675e3d35f4ca36e5139f7 (patch) | |
tree | e8368209b72c3c869148a888c35f5955c7c1df2d /Makefile | |
parent | Initial commit (diff) | |
download | scramble-1.0.tar.gz scramble-1.0.zip |
Version 1 :) v1.0
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2ac521f --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,30 @@ | |||
1 | # Automatically generated by scramble | ||
2 | |||
3 | NAME = scramble | ||
4 | CSC = /usr/bin/csc | ||
5 | CSC_OPTIONS = -setup-mode -host -I $(PWD) -C -I$(PWD) | ||
6 | CSC_LIB_OPTIONS = -D compiling-extension -emit-all-import-libraries -dynamic -regenerate-import-libraries | ||
7 | CSC_OPTIONS_EXTRA = -X utf8 | ||
8 | CSI = /usr/bin/csi | ||
9 | BUILD = $(PWD)/build | ||
10 | TESTS = $(PWD)/tests | ||
11 | TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) | ||
12 | |||
13 | .PHONY: all test clean install uninstall | ||
14 | all: /home/acdw/src/scramble/build/scramble | ||
15 | test: $(BUILD) | ||
16 | cd $(BUILD) && $(TEST_ENV) $(CSI) -setup-mode -s $(TESTS)/run.scm $(NAME) | ||
17 | clean: | ||
18 | -rm -rf $(BUILD) *.build.sh *.install.sh $(NAME) *.import.scm *.import.so *.link *.static.o | ||
19 | install: | ||
20 | chicken-install -s | ||
21 | uninstall: | ||
22 | chicken-uninstall -s | ||
23 | |||
24 | # scramble | ||
25 | |||
26 | $(BUILD): | ||
27 | -mkdir $(BUILD) | ||
28 | /home/acdw/src/scramble/build/scramble: /home/acdw/src/scramble/scramble.scm $(BUILD) | ||
29 | $(CSC) $(CSC_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ | ||
30 | @if test -f scramble.import.scm;then mv scramble.import.scm $(BUILD)/;echo mv scramble.import.scm $(BUILD)/; fi | ||