summary refs log tree commit diff stats
path: root/Makefile
blob: 2ac521f9e7c8394511a1b8c69ac7c51f030117aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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