date and time created 90/05/11 12:34:52 by bostic
[unix-history] / usr / src / old / pcc / c2.tahoe / Makefile
... / ...
CommitLineData
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6# @(#)Makefile 1.5 (Berkeley) %G%
7#
8DESTDIR=
9CFLAGS= -O
10SRCS= c20.c c21.c c22.c c23.c
11OBJS= c20.o c21.o c22.o c23.o
12
13all: c2
14
15c2: ${OBJS} ${LIBC}
16 ${CC} -o $@ ${OBJS}
17
18c23.o: c23.c
19 ${CC} ${CFLAGS} -R -c c23.c
20
21c2.h: tokens
22 grep -n '^' tokens>toks
23 ( echo '/tokens/+1;/^$$/-1d'; \
24 echo '/tokens/r toks'; \
25 echo '/tokens/+1;/^$$/-1s/^\([0-9]*\):\([A-Z][A-Z0-9]*\)/#define \2 \1/'; \
26 echo 'w'; \
27 echo 'q'; \
28 ) | ed - c2.h
29 rm toks
30
31clean:
32 rm -f *.o *.s c2
33
34cleandir: clean
35 rm -f ${MAN} tags .depend
36
37install: ${MAN}
38 install -s -o bin -g bin -m 755 c2 ${DESTDIR}/usr/libexec/c2
39
40tags: ${SRCS}
41 ctags ${SRCS}
42
43depend: ${SRCS}
44 mkdep ${CFLAGS} ${SRCS}