about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
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
3PREFIX = /usr/bin 3PREFIX = /usr/bin
4CSC = csc -I$(PWD) 4CSC = csc -R r7rs
5 5
6OBJ = wikme.scm.o 6NAME = wikme
7PROG = $(NAME).scm
8SOURCE = $(NAME).ss
9LIB = $(NAME).sld
10OBJ = $(NAME)-lib.o
7 11
8wikme: 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
16install: wikme 20.PHONY: install test clean
17 install -Dt $(DESTDIR)$(PREFIX)/$@ $< 21
22install: $(NAME)
23 install -Dt $(DESTDIR)$(PREFIX)/$@ $(NAME)
24
25test: # TODO
18 26
19clean: 27clean:
20 rm -f *.import.scm *.so *.o 28 rm -f *.import.scm *.so *.o