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