Commit | Line | Data |
---|---|---|
0da439bd | 1 | # |
cc036353 | 2 | # Copyright (c) 1988 Regents of the University of California. |
0da439bd KB |
3 | # All rights reserved. |
4 | # | |
5 | # Redistribution and use in source and binary forms are permitted | |
57a981eb KB |
6 | # provided that the above copyright notice and this paragraph are |
7 | # duplicated in all such forms and that any documentation, | |
8 | # advertising materials, and other materials related to such | |
9 | # distribution and use acknowledge that the software was developed | |
10 | # by the University of California, Berkeley. The name of the | |
11 | # University may not be used to endorse or promote products derived | |
12 | # from this software without specific prior written permission. | |
13 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
0da439bd | 16 | # |
ca67e7b4 | 17 | # @(#)Makefile 5.3 (Berkeley) 7/9/88 |
0da439bd KB |
18 | # |
19 | CFLAGS= -O | |
20 | LIBC= /lib/libc.a | |
21 | SRCS= cpio.c | |
22 | OBJS= | |
cc036353 KB |
23 | MAN= cpio.0 cpio_format.0 |
24 | ||
ca67e7b4 C |
25 | .SUFFIXES: .5 .1 .0 |
26 | ||
27 | .1.0: | |
28 | ${DESTDIR}/usr/man/manroff $*.1 > $*.0 | |
29 | .5.0: | |
30 | ${DESTDIR}/usr/man/manroff $*.5 > $*.0 | |
31 | ||
0da439bd KB |
32 | all: cpio |
33 | ||
34 | cpio: ${LIBC} | |
35 | ${CC} -o $@ ${CFLAGS} cpio.c | |
36 | ||
ca67e7b4 C |
37 | clean: FRC |
38 | rm -f ${OBJS} ${MAN} core cpio | |
0da439bd | 39 | |
ca67e7b4 | 40 | depend: FRC |
0da439bd KB |
41 | mkdep -p ${CFLAGS} ${SRCS} |
42 | ||
ca67e7b4 C |
43 | install: ${MAN} FRC |
44 | install -s -o bin -g bin -m 755 cpio ${DESTDIR}/bin/cpio | |
45 | install -c -o bin -g bin -m 444 cpio.0 ${DESTDIR}/usr/man/cat1/cpio.0 | |
46 | install -c -o bin -g bin -m 444 cpio_format.0 ${DESTDIR}/usr/man/cat5/cpio.0 | |
0da439bd | 47 | |
ca67e7b4 | 48 | lint: FRC |
0da439bd KB |
49 | lint ${CFLAGS} ${SRCS} |
50 | ||
ca67e7b4 | 51 | tags: FRC |
0da439bd | 52 | ctags ${SRCS} |
ca67e7b4 C |
53 | |
54 | FRC: | |
55 | ||
56 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
57 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
58 | ||
59 | cpio: cpio.c /usr/include/errno.h /usr/include/fcntl.h /usr/include/memory.h | |
60 | cpio: /usr/include/stdio.h /usr/include/string.h /usr/include/strings.h | |
61 | cpio: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/varargs.h | |
62 | cpio: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h | |
63 | cpio: /usr/include/machine/machparam.h /usr/include/machine/endian.h | |
64 | cpio: /usr/include/sys/types.h /usr/include/sys/stat.h /usr/include/pwd.h | |
65 | ||
66 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |