1# 2# Copyright (c) 1987 The Regents of the University of California. 3# All rights reserved. 4# 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.11 (Berkeley) 07/20/89 18# 19CFLAGS= -O -DBSD4_2 -DSACREDMEM=256000 -DUSERMEM=`cat USERMEM` 20LIBC= /lib/libc.a 21SRCS= compress.c 22OBJS= 23MAN= compress.0 24 25all: compress 26 27compress: USERMEM ${LIBC} 28 ${CC} ${CFLAGS} -o $@ $@.c -lcompat 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. 33USERMEM: FRC 34 sh usermem.sh > USERMEM 35 36clean: 37 rm -f ${OBJS} core compress 38 39cleandir: clean 40 rm -f ${MAN} tags .depend 41 42depend: ${SRCS} 43 mkdep -p ${CFLAGS} ${SRCS} 44 45install: ${MAN} 46 install -s -o bin -g bin -m 755 compress ${DESTDIR}/usr/bin 47 rm -f ${DESTDIR}/usr/bin/uncompress ${DESTDIR}/usr/bin/zcat 48 ln ${DESTDIR}/usr/bin/compress ${DESTDIR}/usr/bin/uncompress 49 ln ${DESTDIR}/usr/bin/compress ${DESTDIR}/usr/bin/zcat 50 rm -f ${DESTDIR}/usr/man/cat1/uncompress.0 \ 51 ${DESTDIR}/usr/man/cat1/zcat.0 52 install -c -o bin -g bin -m 444 compress.0 ${DESTDIR}/usr/man/cat1 53 ln ${DESTDIR}/usr/man/cat1/compress.0 \ 54 ${DESTDIR}/usr/man/cat1/uncompress.0 55 ln ${DESTDIR}/usr/man/cat1/compress.0 ${DESTDIR}/usr/man/cat1/zcat.0 56 57lint: ${SRCS} 58 lint ${CFLAGS} ${SRCS} 59 60tags: ${SRCS} 61 ctags ${SRCS} 62 63FRC: 64