From 37ec56fb141edbb1bab675e3d35f4ca36e5139f7 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 28 May 2024 22:42:37 -0500 Subject: Version 1 :) --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2ac521f --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +# Automatically generated by scramble + +NAME = scramble +CSC = /usr/bin/csc +CSC_OPTIONS = -setup-mode -host -I $(PWD) -C -I$(PWD) +CSC_LIB_OPTIONS = -D compiling-extension -emit-all-import-libraries -dynamic -regenerate-import-libraries +CSC_OPTIONS_EXTRA = -X utf8 +CSI = /usr/bin/csi +BUILD = $(PWD)/build +TESTS = $(PWD)/tests +TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) + +.PHONY: all test clean install uninstall +all: /home/acdw/src/scramble/build/scramble +test: $(BUILD) + cd $(BUILD) && $(TEST_ENV) $(CSI) -setup-mode -s $(TESTS)/run.scm $(NAME) +clean: + -rm -rf $(BUILD) *.build.sh *.install.sh $(NAME) *.import.scm *.import.so *.link *.static.o +install: + chicken-install -s +uninstall: + chicken-uninstall -s + +# scramble + +$(BUILD): + -mkdir $(BUILD) +/home/acdw/src/scramble/build/scramble: /home/acdw/src/scramble/scramble.scm $(BUILD) + $(CSC) $(CSC_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@ + @if test -f scramble.import.scm;then mv scramble.import.scm $(BUILD)/;echo mv scramble.import.scm $(BUILD)/; fi -- cgit 1.4.1-21-gabe81