xref: /original-bsd/usr.bin/wall/Makefile (revision 628a9852)
16cb0876fSbostic#
26cb0876fSbostic# Copyright (c) 1988 Regents of the University of California.
36cb0876fSbostic# All rights reserved.
46cb0876fSbostic#
56cb0876fSbostic# Redistribution and use in source and binary forms are permitted
66cb0876fSbostic# provided that the above copyright notice and this paragraph are
76cb0876fSbostic# duplicated in all such forms and that any documentation, advertising
86cb0876fSbostic# materials, and other materials related to such redistribution and
96cb0876fSbostic# use acknowledge that the software was developed by the University
106cb0876fSbostic# of California, Berkeley.  The name of the University may not be
116cb0876fSbostic# used to endorse or promote products derived from this software
126cb0876fSbostic# without specific prior written permission.  THIS SOFTWARE IS PROVIDED
136cb0876fSbostic# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
146cb0876fSbostic# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
156cb0876fSbostic# FITNESS FOR A PARTICULAR PURPOSE.
166cb0876fSbostic#
17*628a9852Sbostic# @(#)Makefile	5.3 (Berkeley) 04/03/90
186cb0876fSbostic#
196cb0876fSbostic
206cb0876fSbosticCFLAGS=	-O
216cb0876fSbosticLIBC=	/lib/libc.a
22*628a9852SbosticSRCS=	ttymsg.c wall.c
23*628a9852SbosticOBJS=	ttymsg.o wall.o
246cb0876fSbosticMAN=	wall.0
256cb0876fSbostic
266cb0876fSbosticall: wall
276cb0876fSbostic
28*628a9852Sbosticwall: ${LIBC} ${OBJS}
29*628a9852Sbostic	${CC} -o $@ ${CFLAGS} ${OBJS}
306cb0876fSbostic
316cb0876fSbosticclean:
326cb0876fSbostic	rm -f ${OBJS} core wall
336cb0876fSbostic
346cb0876fSbosticcleandir: clean
356cb0876fSbostic	rm -f ${MAN} tags .depend
366cb0876fSbostic
376cb0876fSbosticdepend: ${SRCS}
38*628a9852Sbostic	mkdep ${CFLAGS} ${SRCS}
396cb0876fSbostic
406cb0876fSbosticinstall: ${MAN}
410d2186c4Sbostic	install -s -o bin -g tty -m 2755 wall ${DESTDIR}/usr/bin
420d2186c4Sbostic	install -c -o bin -g bin -m 444 wall.0 ${DESTDIR}/usr/man/cat1
436cb0876fSbostic
446cb0876fSbosticlint: ${SRCS}
456cb0876fSbostic	lint ${CFLAGS} ${SRCS}
466cb0876fSbostic
476cb0876fSbostictags: ${SRCS}
486cb0876fSbostic	ctags ${SRCS}
49