date and time created 88/03/29 15:14:21 by bostic
[unix-history] / usr / src / old / cpio / Makefile
CommitLineData
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#
14CFLAGS= -O
15LIBC= /lib/libc.a
16SRCS= cpio.c
17OBJS=
18
19all: cpio
20
21cpio: ${LIBC}
22 ${CC} -o $@ ${CFLAGS} cpio.c
23
24clean: FRC
25 rm -f ${OBJS} core cpio
26
27depend: FRC
28 mkdep -p ${CFLAGS} ${SRCS}
29
30install: FRC
31 install -s -o bin -g bin -m 755 PROG ${DESTDIR}/bin/cpio
32
33lint: FRC
34 lint ${CFLAGS} ${SRCS}
35
36tags: FRC
37 ctags ${SRCS}
38
39FRC:
40
41# DO NOT DELETE THIS LINE -- mkdep uses it.
42# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
43
44cpio: cpio.c /usr/include/errno.h /usr/include/fcntl.h /usr/include/memory.h
45cpio: /usr/include/stdio.h /usr/include/string.h /usr/include/strings.h
46cpio: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/varargs.h
47cpio: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h
48cpio: /usr/include/machine/machparam.h /usr/include/machine/endian.h
49cpio: /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