-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (34 loc) · 954 Bytes
/
Makefile
File metadata and controls
46 lines (34 loc) · 954 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
DEST = /usr/local/bin
CFLAGS = --std=c99
CSC_OPTIONS = -static
CSC = csc
CHICKEN_INSTALL = chicken-install
EGGS = srfi-1 \
srfi-4 \
srfi-13 \
srfi-18 \
ansi-escape-sequences
OBJS = factor.o recognizer.o banner.o colors-256.o
all: primetime
factor.o: factor.c
%.o: %.scm
$(CSC) $(CSC_OPTIONS) $^ -c -j $(basename $@)
primetime: $(OBJS) primetime.scm
$(CSC) $(CSC_OPTIONS) $^
clean:
+rm -rf primetime *.o *.so *.import.scm *.link *.build.sh *.install.sh
deepclean: clean
+rm -f tags cscope.out
install: primetime
sudo mv primetime $(DEST)
configure:
$(CHICKEN_INSTALL) -s $(EGGS)
help:
$(info )
$(info Building with the Makefile is deprecated)
$(info You should use chicken-install instead)
$(info )
$(info Use 'chicken-install' to install the executable under the Chicken binary path)
$(info Use 'chicken-install -n' to just build the executable)
$(info )
.PHONY: all clean deepclean install deploy configure help