|
|
1.1 root 1: #
2: # Copyright (c) 1987 Regents of the University of California.
3: # All rights reserved. The Berkeley software License Agreement
4: # specifies the terms and conditions for redistribution.
5: #
6: # @(#)Makefile 5.8 (Berkeley) 6/18/87
7: #
8: CFLAGS= -O -DBSD4_2 -DSACREDMEM=256000 -DUSERMEM=`cat USERMEM`
9: LIBC= /lib/libc.a
10: SRCS= compress.c
11: OBJS= compress.o
12:
13: all: compress
14:
15: compress: USERMEM ${OBJS} ${LIBC}
16: ${CC} ${CFLAGS} -o $@ ${OBJS}
17:
18: # USERMEM may have to be set by hand. It should contain the amount of
19: # available user memory in bytes. Set it to zero, for physical memory
20: # less than 1 Meg.
21: USERMEM:
22: sh usermem.sh > USERMEM
23:
24: # Temporarily don't delete USERMEM. When chroot'ed to /nbsd, usermem.sh
25: # fails totally.
26: clean: FRC
27: rm -f ${OBJS} core compress
28: # rm -f ${OBJS} core compress USERMEM
29:
30: depend: FRC
31: mkdep ${CFLAGS} ${SRCS}
32:
33: install: FRC
34: install -s -o bin -g bin -m 755 compress ${DESTDIR}/usr/ucb/compress
35: rm -f ${DESTDIR}/usr/ucb/uncompress ${DESTDIR}/usr/ucb/zcat
36: ln ${DESTDIR}/usr/ucb/compress ${DESTDIR}/usr/ucb/uncompress
37: ln ${DESTDIR}/usr/ucb/compress ${DESTDIR}/usr/ucb/zcat
38:
39: lint: FRC
40: lint ${CFLAGS} ${SRCS}
41:
42: tags: FRC
43: ctags ${SRCS}
44:
45: FRC:
46:
47: # DO NOT DELETE THIS LINE -- mkdep uses it.
48: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
49:
50: compress.o: compress.c /usr/include/stdio.h /usr/include/ctype.h
51: compress.o: /usr/include/signal.h /usr/include/machine/trap.h
52: compress.o: /usr/include/sys/types.h /usr/include/sys/stat.h
53:
54: # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.