xref: /original-bsd/old/talk/Makefile (revision 4b3fb397)
1#
2# Copyright (c) 1983, 1988 The Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17#	@(#)Makefile	5.4 (Berkeley) 07/30/89
18#
19DESTDIR=
20DOBJECT=talkd.o announce.o process.o table.o print.o
21TOBJECT=talk.o get_names.o display.o io.o ctl.o init_disp.o \
22	msgs.o get_addrs.o ctl_transact.o invite.o look_up.o
23DSOURCE=talkd.c announce.c process.c table.c print.c
24TSOURCE=talk.c get_names.c display.c io.c ctl.c init_disp.c \
25	msgs.c get_addrs.c ctl_transact.c invite.c look_up.c
26INCLUDE=talk.h ctl.h talk_ctl.h
27SOURCE= ${DSOURCE} ${TSOURCE}
28CFLAGS= -O
29
30all: talk talkd
31
32talkd: ${DOBJECT}
33	cc ${CFLAGS} -o talkd ${DOBJECT}
34
35talk:	${TOBJECT}
36	cc -o talk ${TOBJECT} -lcurses -ltermlib -lcompat
37
38${DOBJECT}: ctl.h
39${TOBJECT}: talk.h ctl.h talk_ctl.h
40
41install: talk talkd
42	install -g tty -m 2755 -s talk ${DESTDIR}/usr/old/talk
43	install -s talkd ${DESTDIR}/usr/libexec/talkd
44
45lint:
46	lint ${DSOURCE}
47
48clean:
49	rm -f *.o talk talkd
50
51cleandir: clean
52	rm -f ${MAN} tags .depend
53
54depend: ${SOURCE}
55	mkdep ${SOURCE}
56
57tags:	${SOURCE} ${INCLUDE}
58	ctags ${SOURCE} ${INCLUDE}
59