Commit | Line | Data |
---|---|---|
64d06f2f | 1 | # |
19cf05b3 | 2 | # @(#)Makefile 5.3 (Berkeley) %G% |
64d06f2f KM |
3 | # |
4 | # if you have bugs in your C compiler dont use -O | |
5 | COMFLAGS=-DBSD4_2 -O -DSACREDMEM=256000 | |
e182e612 | 6 | BIN=${DESTDIR}/usr/ucb |
64d06f2f KM |
7 | |
8 | compress : compress.c USERMEM | |
9 | cc $(COMFLAGS) -DUSERMEM=`cat USERMEM` -o compress compress.c | |
10 | ||
11 | # USERMEM may have to be set by hand. It should contain the amount of | |
12 | # available user memory in bytes. Set it to zero, for physical memory | |
13 | # less than 1 Meg. | |
14 | USERMEM: | |
15 | sh usermem.sh > USERMEM | |
16 | ||
17 | install: compress | |
19cf05b3 | 18 | install -s compress $(BIN) |
64d06f2f KM |
19 | rm -f $(BIN)/uncompress $(BIN)/zcat |
20 | ln $(BIN)/compress $(BIN)/uncompress | |
21 | ln $(BIN)/compress $(BIN)/zcat | |
22 | ||
23 | clean: | |
24 | rm -f compress USERMEM |