about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorCase Duckworth2024-05-28 22:42:37 -0500
committerCase Duckworth2024-05-28 22:42:37 -0500
commit37ec56fb141edbb1bab675e3d35f4ca36e5139f7 (patch)
treee8368209b72c3c869148a888c35f5955c7c1df2d /Makefile
parentInitial commit (diff)
downloadscramble-37ec56fb141edbb1bab675e3d35f4ca36e5139f7.tar.gz
scramble-37ec56fb141edbb1bab675e3d35f4ca36e5139f7.zip
Version 1 :) v1.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
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
3NAME = scramble
4CSC = /usr/bin/csc
5CSC_OPTIONS = -setup-mode -host -I $(PWD) -C -I$(PWD)
6CSC_LIB_OPTIONS = -D compiling-extension -emit-all-import-libraries -dynamic -regenerate-import-libraries
7CSC_OPTIONS_EXTRA = -X utf8
8CSI = /usr/bin/csi
9BUILD = $(PWD)/build
10TESTS = $(PWD)/tests
11TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS)
12
13.PHONY: all test clean install uninstall
14all: /home/acdw/src/scramble/build/scramble
15test: $(BUILD)
16 cd $(BUILD) && $(TEST_ENV) $(CSI) -setup-mode -s $(TESTS)/run.scm $(NAME)
17clean:
18 -rm -rf $(BUILD) *.build.sh *.install.sh $(NAME) *.import.scm *.import.so *.link *.static.o
19install:
20 chicken-install -s
21uninstall:
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