-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (25 loc) · 810 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
# Bertrand interpreter.
.PHONY : clean
# Make sure the variable LIBDIR is set to where you want your
# include files to live (e.g., beep, bops and bag).
CFLAGS = -O -DLIBDIR='"libraries/"'
# NeWS cps graphics library.
# GRAPHLIB = -lm $(NEWSHOME)/lib/libcps.a
# GRAPHOBJ = graphics.o
GRAPHLIB = -lm
GRAPHOBJ = graphicsnull.o
SRCS = expr.c names.c ops.c parse.c prep.c rules.c primitive.c\
scanner.c main.c util.c match.c
OBJS = expr.o names.o ops.o parse.o prep.o rules.o primitive.o\
scanner.o main.o util.o match.o
bert: $(OBJS) $(GRAPHOBJ)
cc -O -o bert $(OBJS) $(GRAPHOBJ) $(GRAPHLIB)
graphicsnull.o: graphicsnull.c
cc $(CFLAGS) -c graphicsnull.c
graphics.o: graphics.c graphics.h
cc $(CFLAGS) -c graphics.c
graphics.h: graphics.cps
cps graphics.cps
clean:
rm *.o || true
rm bert || true