summaryrefslogtreecommitdiff
path: root/cpp/Makefile
blob: 0ea43cc558efdd4b995f3d8095fac82aacf31e0b (plain)
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
CFLAGS=-Wall -Wstrict-prototypes

all: bcc-cpp

bcc-cpp: main.o cpp.o hash.o token1.o token2.o
	$(CC) $(CFLAGS) -o bcc-cpp main.o cpp.o hash.o token1.o token2.o

clean realclean:
	rm -f bcc-cpp main.o cpp.o hash.o token1.o token2.o tmp.h

maintclean: realclean
	rm -f token1.h token2.h

main.o: cc.h
cpp.o: cc.h
hash.o: cc.h
tree.o: cc.h

token1.o: token1.h
token2.o: token2.h

token1.h: token1.tok
	gperf -aptTc -N is_ctok -H hash1 token1.tok > tmp.h
	mv tmp.h token1.h

token2.h: token2.tok
	gperf -aptTc -k1,3 -N is_ckey -H hash2 token2.tok > tmp.h
	mv tmp.h token2.h