| 1 | # |
| 2 | # @(#)Makefile 5.2 (Berkeley) %G% |
| 3 | # |
| 4 | # if you have bugs in your C compiler dont use -O |
| 5 | COMFLAGS=-DBSD4_2 -O -DSACREDMEM=256000 |
| 6 | BIN=${DESTDIR}/usr/ucb |
| 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 |
| 18 | cp compress $(BIN) |
| 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 |