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 | |
6 | # provided that this notice is preserved and that due credit is given | |
7 | # to the University of California at Berkeley. The name of the University | |
8 | # may not be used to endorse or promote products derived from this | |
cc036353 | 9 | # software without specific prior written permission. This software |
0da439bd KB |
10 | # is provided ``as is'' without express or implied warranty. |
11 | # | |
cc036353 | 12 | # @(#)Makefile 5.2 (Berkeley) %G% |
0da439bd KB |
13 | # |
14 | CFLAGS= -O | |
15 | LIBC= /lib/libc.a | |
16 | SRCS= cpio.c | |
17 | OBJS= | |
cc036353 KB |
18 | MAN= cpio.0 cpio_format.0 |
19 | ||
20 | .SUFFIXES: .5 .1 .0 | |
21 | ||
22 | .1.0: | |
23 | ${DESTDIR}/usr/man/manroff $*.1 > $*.0 | |
24 | .5.0: | |
25 | ${DESTDIR}/usr/man/manroff $*.5 > $*.0 | |
0da439bd KB |
26 | |
27 | all: cpio | |
28 | ||
29 | cpio: ${LIBC} | |
30 | ${CC} -o $@ ${CFLAGS} cpio.c | |
31 | ||
32 | clean: FRC | |
cc036353 | 33 | rm -f ${OBJS} ${MAN} core cpio |
0da439bd KB |
34 | |
35 | depend: FRC | |
36 | mkdep -p ${CFLAGS} ${SRCS} | |
37 | ||
cc036353 KB |
38 | install: ${MAN} FRC |
39 | install -s -o bin -g bin -m 755 cpio ${DESTDIR}/bin/cpio | |
40 | install -c -o bin -g bin -m 444 cpio.0 ${DESTDIR}/usr/man/cat1/cpio.0 | |
41 | install -c -o bin -g bin -m 444 cpio_format.0 ${DESTDIR}/usr/man/cat5/cpio.0 | |
0da439bd KB |
42 | |
43 | lint: FRC | |
44 | lint ${CFLAGS} ${SRCS} | |
45 | ||
46 | tags: FRC | |
47 | ctags ${SRCS} | |
48 | ||
49 | FRC: | |
50 | ||
51 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
52 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
53 | ||
54 | cpio: cpio.c /usr/include/errno.h /usr/include/fcntl.h /usr/include/memory.h | |
55 | cpio: /usr/include/stdio.h /usr/include/string.h /usr/include/strings.h | |
56 | cpio: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/varargs.h | |
57 | cpio: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h | |
58 | cpio: /usr/include/machine/machparam.h /usr/include/machine/endian.h | |
59 | cpio: /usr/include/sys/types.h /usr/include/sys/stat.h /usr/include/pwd.h | |
60 | ||
61 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |