Commit | Line | Data |
---|---|---|
0da439bd KB |
1 | # |
2 | # Copyright (c) 1987 Regents of the University of California. | |
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 | |
9 | # software without specific written prior permission. This software | |
10 | # is provided ``as is'' without express or implied warranty. | |
11 | # | |
12 | # @(#)Makefile 5.1 (Berkeley) %G% | |
13 | # | |
14 | CFLAGS= -O | |
15 | LIBC= /lib/libc.a | |
16 | SRCS= cpio.c | |
17 | OBJS= | |
18 | ||
19 | all: cpio | |
20 | ||
21 | cpio: ${LIBC} | |
22 | ${CC} -o $@ ${CFLAGS} cpio.c | |
23 | ||
24 | clean: FRC | |
25 | rm -f ${OBJS} core cpio | |
26 | ||
27 | depend: FRC | |
28 | mkdep -p ${CFLAGS} ${SRCS} | |
29 | ||
30 | install: FRC | |
31 | install -s -o bin -g bin -m 755 PROG ${DESTDIR}/bin/cpio | |
32 | ||
33 | lint: FRC | |
34 | lint ${CFLAGS} ${SRCS} | |
35 | ||
36 | tags: FRC | |
37 | ctags ${SRCS} | |
38 | ||
39 | FRC: | |
40 | ||
41 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
42 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
43 | ||
44 | cpio: cpio.c /usr/include/errno.h /usr/include/fcntl.h /usr/include/memory.h | |
45 | cpio: /usr/include/stdio.h /usr/include/string.h /usr/include/strings.h | |
46 | cpio: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/varargs.h | |
47 | cpio: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h | |
48 | cpio: /usr/include/machine/machparam.h /usr/include/machine/endian.h | |
49 | cpio: /usr/include/sys/types.h /usr/include/sys/stat.h /usr/include/pwd.h | |
50 | ||
51 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |