-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
39 lines (29 loc) · 896 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
# Makefile for cppp
# Where to install
#
prefix = /usr/local
.PHONY: all check install clean dist
all: cppp
CC = gcc
CFLAGS = -Wall -Wextra -O2
OBJLIST = gen.o unixisms.o error.o symset.o mstr.o \
clexer.o exptree.o ppproc.o cppp.o
cppp: $(OBJLIST)
gen.o : gen.c gen.h
unixisms.o: unixisms.c unixisms.h
error.o : error.c error.h gen.h
symset.o : symset.c symset.h gen.h types.h
mstr.o : mstr.c mstr.h gen.h types.h
clexer.o : clexer.c clexer.h gen.h types.h error.h
exptree.o : exptree.c exptree.h gen.h types.h error.h symset.h clexer.h
ppproc.o : ppproc.c ppproc.h gen.h types.h error.h symset.h mstr.h \
clexer.h exptree.h
cppp.o : cppp.c gen.h types.h unixisms.h error.h symset.h ppproc.h
install:
cp ./cppp $(prefix)/bin/.
cp ./cppp.1 $(prefix)/share/man/man1/.
test: cppp
./tests/testall
: All tests passed.
clean:
rm -f $(OBJLIST) cppp