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.7 (Berkeley) 05/10/89 7# 8CFLAGS= -O -Dunix=1 -DFLEXNAMES 9LIBC= /lib/libc.a 10YYFIX= ../../libexec/pcc/pcc.${MACHINE}/:yyfix 11SRCS= cpp.c cpy.c rodata.c 12OBJS= cpp.o cpy.o rodata.o 13 14all: cpp 15 16cpp: ${OBJS} ${LIBC} 17 ${CC} -o $@ ${CFLAGS} ${OBJS} 18 19cpy.c: cpy.y 20 yacc cpy.y 21 ${YYFIX} yyexca yyact yypact yypgo yyr1 yyr2 yychk yydef 22 mv y.tab.c cpy.c 23 24cpy.o: cpy.c yylex.c 25 26rodata.o: cpy.c 27 ${CC} ${CFLAGS} -R -c rodata.c 28 29clean: 30 rm -f ${OBJS} cpp core cpy.c rodata.c 31 32cleandir: clean 33 rm -f ${MAN} tags .depend 34 35depend: ${SRCS} 36 mkdep ${CFLAGS} ${SRCS} 37 38install: ${MAN} 39 install -s -o bin -g bin -m 755 cpp ${DESTDIR}/usr/bin 40 41lint: ${SRCS} 42 lint ${CFLAGS} ${SRCS} 43 44tags: ${SRCS} 45 ctags ${SRCS} 46