file reorg, pathnames.h, paths.h
[unix-history] / usr / src / libexec / talkd / Makefile
CommitLineData
d0aeaf5a 1#
b8c620d6 2# Copyright (c) 1987 Regents of the University of California.
9e678aa5 3# All rights reserved.
d0aeaf5a 4#
9e678aa5 5# Redistribution and use in source and binary forms are permitted
b8c620d6
KB
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
9e678aa5 16#
7abf8d65 17# @(#)Makefile 5.9 (Berkeley) %G%
771a3d9d 18#
d2748719
KB
19CFLAGS= -O
20LIBC= /lib/libc.a
595cdd5e 21SRCS= talkd.c announce.c process.c table.c print.c
d2748719 22OBJS= talkd.o announce.o process.o table.o print.o
0ad3842e 23MAN= talkd.0
91d646c5 24
d2748719
KB
25all: talkd
26
0ad3842e 27talkd: ${OBJS} ${LIBC}
d2748719
KB
28 ${CC} -o $@ ${CFLAGS} ${OBJS}
29
0ad3842e 30clean:
d2748719
KB
31 rm -f ${OBJS} core talkd
32
0ad3842e
KB
33cleandir: clean
34 rm -f ${MAN} tags .depend
35
36depend: ${SRCS}
d2748719
KB
37 mkdep ${CFLAGS} ${SRCS}
38
0ad3842e 39install: ${MAN}
7abf8d65 40 install -s -o bin -g bin -m 755 talkd ${DESTDIR}/usr/libexec/ntalkd
0ad3842e 41 install -c -o bin -g bin -m 444 talkd.0 ${DESTDIR}/usr/man/cat8
d2748719 42
0ad3842e 43lint: ${SRCS}
d2748719
KB
44 lint ${CFLAGS} ${SRCS}
45
0ad3842e 46tags: ${SRCS}
d2748719 47 ctags ${SRCS}