1# 2# Copyright (c) 1987 The Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that the above copyright notice and this paragraph are 7# duplicated in all such forms and that any documentation, 8# advertising materials, and other materials related to such 9# distribution and use acknowledge that the software was developed 10# by the University of California, Berkeley. The name of the 11# University may not be used to endorse or promote products derived 12# from this software without specific prior written permission. 13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 4.6 (Berkeley) 07/30/89 18# 19COMMON= ../common_source 20CFLAGS= -O -DNROFF -DVMUNIX -I${COMMON} 21VPATH= ${COMMON} 22LIBC= /lib/libc.a 23SRCS= ni.c nii.c n1.c n2.c n3.c n4.c n5.c n6.c n7.c n8.c n9.c n10.c \ 24 hytab.c ntab.c suftab.c 25OBJS= ni.o nii.o n1.o n2.o n3.o n4.o n5.o n6.o n7.o n8.o n9.o n10.o \ 26 hytab.o ntab.o suftab.o 27MAN= nroff.0 28 29all: nroff 30 31nroff: ${OBJS} ${LIBC} 32 ${CC} -o $@ ${OBJS} -lcompat 33 34hytab.o: ${COMMON}/hytab.c 35 ${CC} -R -c ${COMMON}/hytab.c 36 37suftab.o: ${COMMON}/suftab.c 38 ${CC} -R -c ${COMMON}/suftab.c 39 40ntab.o: ntab.c 41 ${CC} -R -c ntab.c 42 43clean: 44 rm -f ${OBJS} core nroff 45 46cleandir: clean 47 rm -f ${MAN} tags .depend 48 49depend: ${SRCS} 50 mkdep ${CFLAGS} ${SRCS} 51 52install: ${MAN} 53 install -s -o bin -g bin -m 755 nroff ${DESTDIR}/usr/bin/nroff 54 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 55 56lint: ${SRCS} 57 lint ${CFLAGS} ${SRCS} 58 59tags: ${SRCS} 60 ctags ${SRCS} 61