file reorg, pathnames.h, paths.h
[unix-history] / usr / src / old / compact / Makefile
CommitLineData
61c06ae9
KB
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#
7abf8d65 6# @(#)Makefile 4.7 (Berkeley) %G%
61c06ae9 7#
fb0aa8d0 8DESTDIR=
61c06ae9
KB
9CFLAGS=-O
10SRCS= compact.c tree.c uncompact.c
11OBJS= compact.o tree.o uncompact.o
12MDIR= /usr/man/cat.old
13LINKS=
14
fb0aa8d0
BS
15all: compact uncompact
16
17compact: compact.o tree.o
61c06ae9 18 ${CC} ${LDFLAGS} compact.o tree.o -o $@
fb0aa8d0
BS
19
20uncompact: uncompact.o tree.o
61c06ae9 21 ${CC} ${LDFLAGS} uncompact.o tree.o -o $@
dc2aa3c2 22
61c06ae9
KB
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
fb0aa8d0
BS
31
32clean:
61c06ae9
KB
33 rm -f compact uncompact ${OBJS}
34
7abf8d65
KB
35cleandir: clean
36 rm -f ${MAN} tags .depend
37
61c06ae9
KB
38depend:
39 mkdep ${SRCS}
40
41tags:
42 ctags ${SRCS}