about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorCase Duckworth2024-06-15 21:17:03 -0500
committerCase Duckworth2024-06-15 21:17:03 -0500
commit703e9e93087d32364087a0ebc9e315869b70ff7c (patch)
treede5cfdd1a687dbe68686929497e870fad5f28800 /Makefile
parentWrite executable (diff)
downloadjimmy-703e9e93087d32364087a0ebc9e315869b70ff7c.tar.gz
jimmy-703e9e93087d32364087a0ebc9e315869b70ff7c.zip
Update things
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile66
1 files changed, 11 insertions, 55 deletions
diff --git a/Makefile b/Makefile index d2a1003..2e0612e 100644 --- a/Makefile +++ b/Makefile
@@ -1,61 +1,17 @@
1# Automatically generated by scramble
2
3NAME = jimmy 1NAME = jimmy
4CSC = /usr/bin/csc 2CSI = csi -setup-mode -s
5CSC_OPTIONS = -setup-mode -host -I $(PWD) -C -I$(BUILD)
6CSC_LIB_OPTIONS = -D compiling-extension -emit-all-import-libraries -dynamic -regenerate-import-libraries
7CSC_OPTIONS_EXTRA = -X utf8 -X module-declarations
8CSI = /usr/bin/csi
9BUILD = $(PWD)/build
10TESTS = $(PWD)/tests 3TESTS = $(PWD)/tests
11TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) 4TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) TEST_USE_ANSI=0
12TEST_ENV_EXTRA = TEST_USE_ANSI=0 5ARTEFACTS = *.build.sh *.install.sh *.import.scm *.so *.link *.o
13 6
14.PHONY: all test clean install uninstall 7.PHONY: build test clean install uninstall
15all: build/jimmy.util.so build/jimmy.read.so build/jimmy.emit.so build/jimmy.html.so build/jimmy.wrap.so build/jimmy.main.so build/jimmy 8build:
16test: all 9 chicken-install -n
17 cd $(BUILD) && $(TEST_ENV) $(TEST_ENV_EXTRA) $(CSI) -setup-mode -s $(TESTS)/run.scm $(NAME) 10test: build
11 $(TEST_ENV) $(CSI) $(TESTS)/run.scm $(NAME)
18clean: 12clean:
19 -rm -rf $(BUILD) *.build.sh *.install.sh $(NAME) *.import.scm *.so *.link *.static.o 13 -rm -rf $(ARTEFACTS) $(NAME)
20install: 14install:
21 chicken-install -s 15 chicken-install -s
22uninstall: 16uninstall:
23 chicken-uninstall -s 17 chicken-uninstall -s $(NAME)
24
25# jimmy
26
27build/jimmy.util.so: lib/util.scm
28 @mkdir -p $(BUILD)
29 $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@
30 @test -f jimmy.util.import.scm &&mv jimmy.util.import.scm $(BUILD)/||true
31
32build/jimmy.read.so: lib/read.scm lib/util.scm
33 @mkdir -p $(BUILD)
34 $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@
35 @test -f jimmy.read.import.scm &&mv jimmy.read.import.scm $(BUILD)/||true
36
37build/jimmy.emit.so: lib/emit.scm lib/util.scm
38 @mkdir -p $(BUILD)
39 $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@
40 @test -f jimmy.emit.import.scm &&mv jimmy.emit.import.scm $(BUILD)/||true
41
42build/jimmy.html.so: lib/html.scm lib/util.scm lib/emit.scm
43 @mkdir -p $(BUILD)
44 $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@
45 @test -f jimmy.html.import.scm &&mv jimmy.html.import.scm $(BUILD)/||true
46
47build/jimmy.wrap.so: lib/wrap.scm lib/util.scm lib/emit.scm
48 @mkdir -p $(BUILD)
49 $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@
50 @test -f jimmy.wrap.import.scm &&mv jimmy.wrap.import.scm $(BUILD)/||true
51
52build/jimmy.main.so: lib/main.scm lib/util.scm lib/emit.scm lib/read.scm lib/wrap.scm
53 @mkdir -p $(BUILD)
54 $(CSC) $(CSC_OPTIONS) $(CSC_LIB_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@
55 @test -f jimmy.main.import.scm &&mv jimmy.main.import.scm $(BUILD)/||true
56
57build/jimmy: bin/jimmy.scm lib/main.scm
58 @mkdir -p $(BUILD)
59 $(CSC) $(CSC_OPTIONS) $(CSC_OPTIONS_EXTRA) $< -o $@
60 @test -f jimmy.import.scm &&mv jimmy.import.scm $(BUILD)/||true
61