diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/Makefile b/Makefile index 506d366..1dd66d1 100644 --- a/Makefile +++ b/Makefile | |||
@@ -1,20 +1,28 @@ | |||
1 | # wikme | 1 | # wikme |
2 | 2 | ||
3 | PREFIX = /usr/bin | 3 | PREFIX = /usr/bin |
4 | CSC = csc -I$(PWD) | 4 | CSC = csc -R r7rs |
5 | 5 | ||
6 | OBJ = wikme.scm.o | 6 | NAME = wikme |
7 | PROG = $(NAME).scm | ||
8 | SOURCE = $(NAME).ss | ||
9 | LIB = $(NAME).sld | ||
10 | OBJ = $(NAME)-lib.o | ||
7 | 11 | ||
8 | wikme: main.scm $(OBJ) | 12 | $(NAME): $(PROG) $(OBJ) |
9 | $(CSC) -o $@ $(OBJ) -uses wikme main.scm | 13 | $(CSC) -o $@ $(OBJ) -uses $(NAME) $(PROG) |
10 | 14 | ||
11 | $(OBJ): wikme.scm wikme-impl.scm | 15 | $(OBJ): $(LIB) |
12 | $(CSC) -c -J wikme.scm -unit wikme -o $@ | 16 | $(CSC) -c -J $(LIB) -unit $(NAME) -o $@ |
13 | 17 | ||
14 | .PHONY: install clean | 18 | $(LIB): $(SOURCE) |
15 | 19 | ||
16 | install: wikme | 20 | .PHONY: install test clean |
17 | install -Dt $(DESTDIR)$(PREFIX)/$@ $< | 21 | |
22 | install: $(NAME) | ||
23 | install -Dt $(DESTDIR)$(PREFIX)/$@ $(NAME) | ||
24 | |||
25 | test: # TODO | ||
18 | 26 | ||
19 | clean: | 27 | clean: |
20 | rm -f *.import.scm *.so *.o | 28 | rm -f *.import.scm *.so *.o |