diff options
author | Case Duckworth | 2024-06-15 21:17:03 -0500 |
---|---|---|
committer | Case Duckworth | 2024-06-15 21:17:03 -0500 |
commit | 703e9e93087d32364087a0ebc9e315869b70ff7c (patch) | |
tree | de5cfdd1a687dbe68686929497e870fad5f28800 /Makefile | |
parent | Write executable (diff) | |
download | jimmy-703e9e93087d32364087a0ebc9e315869b70ff7c.tar.gz jimmy-703e9e93087d32364087a0ebc9e315869b70ff7c.zip |
Update things
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 66 |
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 | |||
3 | NAME = jimmy | 1 | NAME = jimmy |
4 | CSC = /usr/bin/csc | 2 | CSI = csi -setup-mode -s |
5 | CSC_OPTIONS = -setup-mode -host -I $(PWD) -C -I$(BUILD) | ||
6 | CSC_LIB_OPTIONS = -D compiling-extension -emit-all-import-libraries -dynamic -regenerate-import-libraries | ||
7 | CSC_OPTIONS_EXTRA = -X utf8 -X module-declarations | ||
8 | CSI = /usr/bin/csi | ||
9 | BUILD = $(PWD)/build | ||
10 | TESTS = $(PWD)/tests | 3 | TESTS = $(PWD)/tests |
11 | TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) | 4 | TEST_ENV = env BUILD=$(BUILD) TESTS=$(TESTS) TEST_USE_ANSI=0 |
12 | TEST_ENV_EXTRA = TEST_USE_ANSI=0 | 5 | ARTEFACTS = *.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 |
15 | all: 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 | 8 | build: |
16 | test: all | 9 | chicken-install -n |
17 | cd $(BUILD) && $(TEST_ENV) $(TEST_ENV_EXTRA) $(CSI) -setup-mode -s $(TESTS)/run.scm $(NAME) | 10 | test: build |
11 | $(TEST_ENV) $(CSI) $(TESTS)/run.scm $(NAME) | ||
18 | clean: | 12 | clean: |
19 | -rm -rf $(BUILD) *.build.sh *.install.sh $(NAME) *.import.scm *.so *.link *.static.o | 13 | -rm -rf $(ARTEFACTS) $(NAME) |
20 | install: | 14 | install: |
21 | chicken-install -s | 15 | chicken-install -s |
22 | uninstall: | 16 | uninstall: |
23 | chicken-uninstall -s | 17 | chicken-uninstall -s $(NAME) |
24 | |||
25 | # jimmy | ||
26 | |||
27 | build/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 | |||
32 | build/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 | |||
37 | build/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 | |||
42 | build/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 | |||
47 | build/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 | |||
52 | build/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 | |||
57 | build/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 | |||