add -a flag
[unix-history] / usr / src / usr.bin / compress / Makefile
CommitLineData
64d06f2f 1#
09148f8e
KB
2# Copyright (c) 1987 The Regents of the University of California.
3# All rights reserved.
64d06f2f 4#
09148f8e
KB
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 5.9 (Berkeley) %G%
568afd31 18#
c4aa80ff 19CFLAGS= -O -DBSD4_2 -DSACREDMEM=256000 -DUSERMEM=`cat USERMEM`
568afd31
KB
20LIBC= /lib/libc.a
21SRCS= compress.c
09148f8e
KB
22OBJS=
23MAN= compress.0
568afd31
KB
24
25all: compress
64d06f2f 26
09148f8e
KB
27compress: USERMEM ${LIBC}
28 ${CC} ${CFLAGS} -o $@ $@.c
64d06f2f
KM
29
30# USERMEM may have to be set by hand. It should contain the amount of
31# available user memory in bytes. Set it to zero, for physical memory
32# less than 1 Meg.
09148f8e 33USERMEM: FRC
64d06f2f
KM
34 sh usermem.sh > USERMEM
35
09148f8e 36clean:
568afd31 37 rm -f ${OBJS} core compress
568afd31 38
09148f8e
KB
39cleandir: clean
40 rm -f ${MAN} tags .depend
41
42depend: ${SRCS}
43 mkdep -p ${CFLAGS} ${SRCS}
568afd31 44
09148f8e 45install: ${MAN}
568afd31
KB
46 install -s -o bin -g bin -m 755 compress ${DESTDIR}/usr/ucb/compress
47 rm -f ${DESTDIR}/usr/ucb/uncompress ${DESTDIR}/usr/ucb/zcat
48 ln ${DESTDIR}/usr/ucb/compress ${DESTDIR}/usr/ucb/uncompress
49 ln ${DESTDIR}/usr/ucb/compress ${DESTDIR}/usr/ucb/zcat
09148f8e
KB
50 rm -f ${DESTDIR}/usr/man/cat1/uncompress.0 ${DESTDIR}/usr/man/cat1/zcat.0
51 install -c -o bin -g bin -m 444 compress.0 ${DESTDIR}/usr/man/cat1
52 ln ${DESTDIR}/usr/man/cat1/compress.0 ${DESTDIR}/usr/man/cat1/uncompress.0
53 ln ${DESTDIR}/usr/man/cat1/compress.0 ${DESTDIR}/usr/man/cat1/zcat.0
568afd31 54
09148f8e 55lint: ${SRCS}
568afd31
KB
56 lint ${CFLAGS} ${SRCS}
57
09148f8e 58tags: ${SRCS}
568afd31
KB
59 ctags ${SRCS}
60
61FRC: