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.7 (Berkeley) 05/11/89 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 15all: compact uncompact 16 17compact: compact.o tree.o 18 ${CC} ${LDFLAGS} compact.o tree.o -o $@ 19 20uncompact: uncompact.o tree.o 21 ${CC} ${LDFLAGS} uncompact.o tree.o -o $@ 22 23install: compact.0 24# install -s -o bin -g bin -m 755 compact ${DESTDIR}/usr/old/compact 25 install -s -o bin -g bin -m 755 uncompact ${DESTDIR}/usr/old/uncompact 26 install -c -o bin -g bin -m 755 ccat.sh ${DESTDIR}/usr/old/ccat 27 install -c -o bin -g bin -m 755 compact.0 ${DESTDIR}${MDIR}/compact.0 28 (cd ${DESTDIR}${MDIR};rm -f ccat.0 uncompact.0) 29 ln ${DESTDIR}${MDIR}/compact.0 ${DESTDIR}${MDIR}/ccat.0 30 ln ${DESTDIR}${MDIR}/compact.0 ${DESTDIR}${MDIR}/uncompact.0 31 32clean: 33 rm -f compact uncompact ${OBJS} 34 35cleandir: clean 36 rm -f ${MAN} tags .depend 37 38depend: 39 mkdep ${SRCS} 40 41tags: 42 ctags ${SRCS} 43