Commit | Line | Data |
---|---|---|
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 | 8 | DESTDIR= |
61c06ae9 KB |
9 | CFLAGS=-O |
10 | SRCS= compact.c tree.c uncompact.c | |
11 | OBJS= compact.o tree.o uncompact.o | |
12 | MDIR= /usr/man/cat.old | |
13 | LINKS= | |
14 | ||
fb0aa8d0 BS |
15 | all: compact uncompact |
16 | ||
17 | compact: compact.o tree.o | |
61c06ae9 | 18 | ${CC} ${LDFLAGS} compact.o tree.o -o $@ |
fb0aa8d0 BS |
19 | |
20 | uncompact: uncompact.o tree.o | |
61c06ae9 | 21 | ${CC} ${LDFLAGS} uncompact.o tree.o -o $@ |
dc2aa3c2 | 22 | |
61c06ae9 KB |
23 | install: 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 | |
32 | clean: | |
61c06ae9 KB |
33 | rm -f compact uncompact ${OBJS} |
34 | ||
7abf8d65 KB |
35 | cleandir: clean |
36 | rm -f ${MAN} tags .depend | |
37 | ||
61c06ae9 KB |
38 | depend: |
39 | mkdep ${SRCS} | |
40 | ||
41 | tags: | |
42 | ctags ${SRCS} |