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 4.6 (Berkeley) 07/30/87 7# 8DESTDIR= 9CFLAGS=-O 10SRCS= compact.c tree.c uncompact.c 11OBJS= compact.o tree.o uncompact.o 12MDIR= /usr/man/cat.old 13LINKS= 14 15.SUFFIXES: .1 .0 16 17.1.0: 18 /usr/man/manroff $*.1 > $*.0 19 20all: compact uncompact 21 22compact: compact.o tree.o 23 ${CC} ${LDFLAGS} compact.o tree.o -o $@ 24 25uncompact: uncompact.o tree.o 26 ${CC} ${LDFLAGS} uncompact.o tree.o -o $@ 27 28install: compact.0 29# install -s -o bin -g bin -m 755 compact ${DESTDIR}/usr/old/compact 30 install -s -o bin -g bin -m 755 uncompact ${DESTDIR}/usr/old/uncompact 31 install -c -o bin -g bin -m 755 ccat.sh ${DESTDIR}/usr/old/ccat 32 install -c -o bin -g bin -m 755 compact.0 ${DESTDIR}${MDIR}/compact.0 33 (cd ${DESTDIR}${MDIR};rm -f ccat.0 uncompact.0) 34 ln ${DESTDIR}${MDIR}/compact.0 ${DESTDIR}${MDIR}/ccat.0 35 ln ${DESTDIR}${MDIR}/compact.0 ${DESTDIR}${MDIR}/uncompact.0 36 37clean: 38 rm -f compact uncompact ${OBJS} 39 40depend: 41 mkdep ${SRCS} 42 43tags: 44 ctags ${SRCS} 45 46# DO NOT DELETE THIS LINE -- mkdep uses it. 47# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 48 49compact.o: compact.c /usr/include/strings.h compact.h /usr/include/sys/param.h 50compact.o: /usr/include/sys/types.h /usr/include/signal.h 51compact.o: /usr/include/machine/trap.h /usr/include/machine/machparam.h 52compact.o: /usr/include/sys/stat.h /usr/include/sys/dir.h /usr/include/stdio.h 53tree.o: tree.c compact.h /usr/include/sys/param.h /usr/include/sys/types.h 54tree.o: /usr/include/signal.h /usr/include/machine/trap.h 55tree.o: /usr/include/machine/machparam.h /usr/include/sys/stat.h 56tree.o: /usr/include/sys/dir.h /usr/include/stdio.h 57uncompact.o: uncompact.c compact.h /usr/include/sys/param.h 58uncompact.o: /usr/include/sys/types.h /usr/include/signal.h 59uncompact.o: /usr/include/machine/trap.h /usr/include/machine/machparam.h 60uncompact.o: /usr/include/sys/stat.h /usr/include/sys/dir.h 61uncompact.o: /usr/include/stdio.h /usr/include/strings.h 62 63# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 64