X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/64d06f2f9b6247b8da1ef4145cf1d27d9c7da888..b528bd5ed8699a06cb9cbefbfd628df883cf352f:/usr/src/usr.bin/compress/Makefile diff --git a/usr/src/usr.bin/compress/Makefile b/usr/src/usr.bin/compress/Makefile index f1b4af670f..f09f0fb083 100644 --- a/usr/src/usr.bin/compress/Makefile +++ b/usr/src/usr.bin/compress/Makefile @@ -1,24 +1,63 @@ # -# @(#)Makefile 5.1 (Berkeley) %G% +# Copyright (c) 1987 The Regents of the University of California. +# All rights reserved. # -# if you have bugs in your C compiler dont use -O -COMFLAGS=-DBSD4_2 -O -DSACREDMEM=256000 -BIN=${DESTDIR}/usr/local +# Redistribution and use in source and binary forms are permitted +# provided that the above copyright notice and this paragraph are +# duplicated in all such forms and that any documentation, +# advertising materials, and other materials related to such +# distribution and use acknowledge that the software was developed +# by the University of California, Berkeley. The name of the +# University may not be used to endorse or promote products derived +# from this software without specific prior written permission. +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# @(#)Makefile 5.10 (Berkeley) %G% +# +CFLAGS= -O -DBSD4_2 -DSACREDMEM=256000 -DUSERMEM=`cat USERMEM` +LIBC= /lib/libc.a +SRCS= compress.c +OBJS= +MAN= compress.0 + +all: compress -compress : compress.c USERMEM - cc $(COMFLAGS) -DUSERMEM=`cat USERMEM` -o compress compress.c +compress: USERMEM ${LIBC} + ${CC} ${CFLAGS} -o $@ $@.c # USERMEM may have to be set by hand. It should contain the amount of # available user memory in bytes. Set it to zero, for physical memory # less than 1 Meg. -USERMEM: +USERMEM: FRC sh usermem.sh > USERMEM -install: compress - cp compress $(BIN) - rm -f $(BIN)/uncompress $(BIN)/zcat - ln $(BIN)/compress $(BIN)/uncompress - ln $(BIN)/compress $(BIN)/zcat - clean: - rm -f compress USERMEM + rm -f ${OBJS} core compress + +cleandir: clean + rm -f ${MAN} tags .depend + +depend: ${SRCS} + mkdep -p ${CFLAGS} ${SRCS} + +install: ${MAN} + install -s -o bin -g bin -m 755 compress ${DESTDIR}/usr/bin + rm -f ${DESTDIR}/usr/bin/uncompress ${DESTDIR}/usr/bin/zcat + ln ${DESTDIR}/usr/bin/compress ${DESTDIR}/usr/bin/uncompress + ln ${DESTDIR}/usr/bin/compress ${DESTDIR}/usr/bin/zcat + rm -f ${DESTDIR}/usr/man/cat1/uncompress.0 \ + ${DESTDIR}/usr/man/cat1/zcat.0 + install -c -o bin -g bin -m 444 compress.0 ${DESTDIR}/usr/man/cat1 + ln ${DESTDIR}/usr/man/cat1/compress.0 \ + ${DESTDIR}/usr/man/cat1/uncompress.0 + ln ${DESTDIR}/usr/man/cat1/compress.0 ${DESTDIR}/usr/man/cat1/zcat.0 + +lint: ${SRCS} + lint ${CFLAGS} ${SRCS} + +tags: ${SRCS} + ctags ${SRCS} + +FRC: