Commit | Line | Data |
---|---|---|
64d06f2f | 1 | # |
8b71f68d | 2 | # @(#)Makefile 5.5 (Berkeley) %G% |
64d06f2f | 3 | # |
64d06f2f | 4 | COMFLAGS=-DBSD4_2 -O -DSACREDMEM=256000 |
e182e612 | 5 | BIN=${DESTDIR}/usr/ucb |
64d06f2f | 6 | |
12072753 | 7 | compress: compress.c USERMEM |
64d06f2f KM |
8 | cc $(COMFLAGS) -DUSERMEM=`cat USERMEM` -o compress compress.c |
9 | ||
10 | # USERMEM may have to be set by hand. It should contain the amount of | |
11 | # available user memory in bytes. Set it to zero, for physical memory | |
12 | # less than 1 Meg. | |
13 | USERMEM: | |
14 | sh usermem.sh > USERMEM | |
15 | ||
16 | install: compress | |
19cf05b3 | 17 | install -s compress $(BIN) |
64d06f2f KM |
18 | rm -f $(BIN)/uncompress $(BIN)/zcat |
19 | ln $(BIN)/compress $(BIN)/uncompress | |
20 | ln $(BIN)/compress $(BIN)/zcat | |
21 | ||
8b71f68d JL |
22 | # Temporarily don't delete USERMEM. When chroot'ed to /nbsd, usermem.sh |
23 | # fails totally. | |
64d06f2f | 24 | clean: |
8b71f68d JL |
25 | rm -f compress core errs |
26 | # rm -f compress USERMEM core errs |