-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
32 lines (22 loc) · 613 Bytes
/
Makefile
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
VPATH = src
BUILDDIR = build
GAMBCLIBDIR = `gsc -e "(display (path-expand \\"~~lib\\"))"`
CFLAGS = -O2
.PHONY: clean all
all: bh blackhole.o1
%.o: %.c
gsc -o $@ -obj -cc-options "${CFLAGS}" $^
bh: ${BUILDDIR}/bh_.o ${BUILDDIR}/bh.o
gsc -o $@ -exe -ld-options "-L${GAMBCLIBDIR} -lgambcgsc" $^
${BUILDDIR}/bh_.c: ${BUILDDIR}/bh.c ${BUILDDIR}
gsc -o ${BUILDDIR} -link -l "${GAMBCLIBDIR}/_gambcgsc" $<
${BUILDDIR}/bh.c: bh.scm ${BUILDDIR}
gsc -o $@ -c $<
${BUILDDIR}:
mkdir $@
blackhole.o1: deventry.scm
gsc -o $@ -cc-options "${CFLAGS}" $<
clean:
rm -rf bh
rm -rf blackhole.o1
rm -rf ${BUILDDIR}