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