about summary refs log tree commit diff stats
path: root/Makefile
blob: 1dd66d199007dfb646d1ee8c3859a3e2ab6060d2 (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
# wikme

PREFIX = /usr/bin
CSC = csc -R r7rs

NAME = wikme
PROG = $(NAME).scm
SOURCE = $(NAME).ss
LIB = $(NAME).sld
OBJ = $(NAME)-lib.o

$(NAME): $(PROG) $(OBJ)
	$(CSC) -o $@ $(OBJ) -uses $(NAME) $(PROG)

$(OBJ): $(LIB)
	$(CSC) -c -J $(LIB) -unit $(NAME) -o $@

$(LIB): $(SOURCE)

.PHONY: install test clean

install: $(NAME)
	install -Dt $(DESTDIR)$(PREFIX)/$@ $(NAME)

test: # TODO

clean:
	rm -f *.import.scm *.so *.o