xref: /original-bsd/usr.sbin/mkproto/Makefile (revision ccea1194)
1*ccea1194Sbostic#
2*ccea1194Sbostic# Copyright (c) 1988 Regents of the University of California.
3*ccea1194Sbostic# All rights reserved.
4*ccea1194Sbostic#
5*ccea1194Sbostic# Redistribution and use in source and binary forms are permitted
6*ccea1194Sbostic# provided that the above copyright notice and this paragraph are
7*ccea1194Sbostic# duplicated in all such forms and that any documentation, advertising
8*ccea1194Sbostic# materials, and other materials related to such redistribution and
9*ccea1194Sbostic# use acknowledge that the software was developed by the University
10*ccea1194Sbostic# of California, Berkeley.  The name of the University may not be
11*ccea1194Sbostic# used to endorse or promote products derived from this software
12*ccea1194Sbostic# without specific prior written permission.  THIS SOFTWARE IS PROVIDED
13*ccea1194Sbostic# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
14*ccea1194Sbostic# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
15*ccea1194Sbostic# FITNESS FOR A PARTICULAR PURPOSE.
16*ccea1194Sbostic#
17*ccea1194Sbostic# @(#)Makefile	5.1 (Berkeley) 10/19/88
18*ccea1194Sbostic#
19*ccea1194Sbostic
20*ccea1194SbosticCFLAGS=	-O
21*ccea1194SbosticLIBC=	/lib/libc.a
22*ccea1194SbosticSRCS=	mkproto.c
23*ccea1194SbosticOBJS=
24*ccea1194SbosticMAN=	mkproto.0
25*ccea1194Sbostic
26*ccea1194Sbosticall: mkproto
27*ccea1194Sbostic
28*ccea1194Sbosticmkproto: ${LIBC}
29*ccea1194Sbostic	${CC} -o $@ ${CFLAGS} $@.c
30*ccea1194Sbostic
31*ccea1194Sbosticclean:
32*ccea1194Sbostic	rm -f ${OBJS} core mkproto
33*ccea1194Sbostic
34*ccea1194Sbosticcleandir: clean
35*ccea1194Sbostic	rm -f ${MAN} tags .depend
36*ccea1194Sbostic
37*ccea1194Sbosticdepend: ${SRCS}
38*ccea1194Sbostic	mkdep -p ${CFLAGS} ${SRCS}
39*ccea1194Sbostic
40*ccea1194Sbosticinstall: ${MAN}
41*ccea1194Sbostic	install -s -o bin -g bin -m 755 mkproto ${DESTDIR}/etc
42*ccea1194Sbostic	install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
43*ccea1194Sbostic
44*ccea1194Sbosticlint: ${SRCS}
45*ccea1194Sbostic	lint ${CFLAGS} ${SRCS}
46*ccea1194Sbostic
47*ccea1194Sbostictags: ${SRCS}
48*ccea1194Sbostic	ctags ${SRCS}
49