xref: /original-bsd/usr.bin/xsend/xsend/Makefile (revision c0f053f7)
1#
2# Copyright (c) 1987 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17#	@(#)Makefile	4.6 (Berkeley) 05/11/89
18#
19CFLAGS=	-O
20LIBC=	/lib/libc.a
21SRCS=	enroll.c lib.c xget.c xsend.c
22OBJS=	enroll.o lib.o xget.o xsend.o
23MAN=	xsend.0
24
25all: enroll xsend xget
26
27enroll: enroll.o lib.o ${LIBC}
28	${CC} enroll.o lib.o -lmp -o $@
29
30xget: xget.o lib.o ${LIBC}
31	${CC} xget.o lib.o -lmp -o $@
32
33xsend: xsend.o lib.o ${LIBC}
34	${CC} xsend.o lib.o -lmp -o $@
35
36clean:
37	rm -f ${OBJS} core enroll xsend xget
38
39cleandir: clean
40	rm -f ${MAN} tags .depend
41
42depend: ${SRCS}
43	mkdep ${CFLAGS} ${SRCS}
44
45install: ${MAN}
46	install -s -o bin -g bin -m 755 enroll xget xsend \
47	    ${DESTDIR}/usr/bin
48	install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
49	rm -f ${DESTDIR}/usr/man/cat1/enroll.0
50	rm -f ${DESTDIR}/usr/man/cat1/xget.0
51	ln ${DESTDIR}/usr/man/cat1/xsend.0 ${DESTDIR}/usr/man/cat1/enroll.0
52	ln ${DESTDIR}/usr/man/cat1/xsend.0 ${DESTDIR}/usr/man/cat1/xget.0
53
54lint: ${SRCS}
55	lint ${CFLAGS} enroll.c lib.c
56	lint ${CFLAGS} xget.c lib.c
57	lint ${CFLAGS} xsend.c lib.c
58
59tags: ${SRCS
60	ctags enroll.c lib.c
61	ctags -a xget.c
62	ctags -a xsend.c
63	sort -o tags tags
64