-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
72 lines (46 loc) · 1.16 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Basic Makefile for ptscheme
# Set our paths to traditional locations for files:
# ./src - c source files
# ./include - c header files
vpath %.c src
vpath %.h include
CC = clang
CPPFLAGS = -std=c99 -Wall -g -I include
objects = ptscheme.o memmanager.o lispbool.o lispchar.o lispint.o lispfloat.o\
lispstr.o lisperr.o lisppair.o hashtable.o symbols.o \
replread.o repleval.o replprint.o environments.o \
primitives.o
testedlibs = hashtable.o
tests = hashtabletest.o
all: ptscheme testsuite
ptscheme: $(objects)
# clang $(CPPFLAGS) -o ptscheme $(objects)
testsuite: $(tests)
clang $(tests) $(testedlibs) -o testsuite
ptscheme.o:
memmanager.o:
lispbool.o:
lispchar.o:
lispint.o:
lispfloat.o:
lispstr.o:
lisperr.o:
lisppair.o:
hashtable.o:
symbols.o:
replread.o:
repleval.o:
replprint.o:
environments.o:
primitives.o:
hashtabletest.o:
clang $(CPPFLAGS) -c -o hashtabletest.o tests/hashtabletest.c
# test - Implement test target
.PHONY: test
test: ptscheme testsuite
./testsuite
# clean - Implement standard 'clean' target to clean up after ourselves
.PHONY: clean
clean:
rm -f ptscheme $(objects)
rm -f testsuite $(tests)