BSD 4_3_Tahoe release
[unix-history] / usr / src / bin / cpio / Makefile
CommitLineData
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#
19CFLAGS= -O
20LIBC= /lib/libc.a
21SRCS= cpio.c
22OBJS=
cc036353
KB
23MAN= 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
32all: cpio
33
34cpio: ${LIBC}
35 ${CC} -o $@ ${CFLAGS} cpio.c
36
ca67e7b4
C
37clean: FRC
38 rm -f ${OBJS} ${MAN} core cpio
0da439bd 39
ca67e7b4 40depend: FRC
0da439bd
KB
41 mkdep -p ${CFLAGS} ${SRCS}
42
ca67e7b4
C
43install: ${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 48lint: FRC
0da439bd
KB
49 lint ${CFLAGS} ${SRCS}
50
ca67e7b4 51tags: FRC
0da439bd 52 ctags ${SRCS}
ca67e7b4
C
53
54FRC:
55
56# DO NOT DELETE THIS LINE -- mkdep uses it.
57# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
58
59cpio: cpio.c /usr/include/errno.h /usr/include/fcntl.h /usr/include/memory.h
60cpio: /usr/include/stdio.h /usr/include/string.h /usr/include/strings.h
61cpio: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/varargs.h
62cpio: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h
63cpio: /usr/include/machine/machparam.h /usr/include/machine/endian.h
64cpio: /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