forked from barak/lysp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 826 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
33
34
35
36
37
38
39
40
CFLAGS = -O -g -Wall
CFLAGSO = -O3 -g -Wall -DNDEBUG
CFLAGSs = -Os -g -Wall -DNDEBUG
LDLIBS = -rdynamic
all : lysp gclysp
lysp : lysp.c gc.c
$(CC) $(CFLAGS) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
size $@
olysp: lysp.c gc.c
$(CC) $(CFLAGSO) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
size $@
ulysp: lysp.c gc.c
$(CC) $(CFLAGSs) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
size $@
gclysp: lysp.c
$(CC) $(CFLAGSO) -DBDWGC=1 -o $@ lysp.c $(LDLIBS) -lgc
size $@
run : all
./lysp -v -x test.l
test : lysp olysp ulysp gclysp
@echo
time ./lysp bench.l; time ./lysp bench.l
@echo
time ./ulysp bench.l; time ./ulysp bench.l
@echo
time ./olysp bench.l; time ./olysp bench.l
@echo
time ./gclysp bench.l; time ./gclysp bench.l
clean : .FORCE
rm -rf *~ *.o lysp olysp ulysp gclysp *.dSYM
.FORCE :