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