BSD 4_3_Net_2 release
[unix-history] / usr / src / usr.bin / yacc / Makefile
index a89c9cd..71633a3 100644 (file)
@@ -1,44 +1,12 @@
-#
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    4.4     (Berkeley)      6/19/87
-#
-CFLAGS=        -O -DWORD32
-LIBC=  /lib/libc.a
-SRCS=  y1.c y2.c y3.c y4.c
-OBJS=  y1.o y2.o y3.o y4.o
+#      @(#)Makefile    5.3 (Berkeley) 5/12/90
 
 
-all: yacc
+PROG=  yacc
+SRCS=  closure.c error.c lalr.c lr0.c main.c mkpar.c output.c reader.c \
+       skeleton.c symtab.c verbose.c warshall.c
+MAN1=  yacc.0 yyfix.0
 
 
-yacc: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/yyfix.sh ${DESTDIR}${BINDIR}/yyfix
 
 
-clean: FRC
-       rm -f ${OBJS} core yacc
-
-depend: FRC
-       mkdep ${CFLAGS} ${SRCS}
-
-install: FRC
-       install -s -o bin -g bin -m 755 yacc ${DESTDIR}/usr/bin/yacc
-       install -c -o bin -g bin -m 755 yaccpar ${DESTDIR}/usr/lib/yaccpar
-
-lint: FRC
-       lint ${CFLAGS} ${SRCS}
-
-tags: FRC
-       ctags ${SRCS}
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-y1.o: y1.c dextern /usr/include/stdio.h /usr/include/ctype.h files
-y2.o: y2.c dextern /usr/include/stdio.h /usr/include/ctype.h files
-y3.o: y3.c dextern /usr/include/stdio.h /usr/include/ctype.h files
-y4.o: y4.c dextern /usr/include/stdio.h /usr/include/ctype.h files
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
+.include <bsd.prog.mk>