BSD 4_3_Tahoe release
[unix-history] / usr / src / usr.bin / xsend / Makefile
CommitLineData
ca67e7b4
C
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6# @(#)Makefile 4.4 (Berkeley) 6/19/87
6ab0e22a
C
7#
8CFLAGS= -O
ca67e7b4
C
9LIBC= /lib/libc.a
10SRCS= enroll.c lib.c xget.c xsend.c
11OBJS= enroll.o lib.o xget.o xsend.o
12
13all: enroll xsend xget
14
15enroll: enroll.o lib.o ${LIBC}
16 ${CC} enroll.o lib.o -lmp -o $@
17
18xget: xget.o lib.o ${LIBC}
19 ${CC} xget.o lib.o -lmp -o $@
20
21xsend: xsend.o lib.o ${LIBC}
22 ${CC} xsend.o lib.o -lmp -o $@
23
24clean: FRC
25 rm -f ${OBJS} core enroll xsend xget
6ab0e22a 26
ca67e7b4
C
27depend: FRC
28 mkdep ${CFLAGS} ${SRCS}
6ab0e22a 29
ca67e7b4
C
30install: FRC
31 install -s -o bin -g bin -m 755 enroll ${DESTDIR}/usr/bin/enroll
32 install -s -o bin -g bin -m 755 xget ${DESTDIR}/usr/bin/xget
33 install -s -o bin -g bin -m 755 xsend ${DESTDIR}/usr/bin/xsend
6ab0e22a 34
ca67e7b4
C
35lint: FRC
36 lint ${CFLAGS} enroll.c lib.c
37 lint ${CFLAGS} xget.c lib.c
38 lint ${CFLAGS} xsend.c lib.c
6ab0e22a 39
ca67e7b4
C
40tags: FRC
41 ctags enroll.c lib.c
42 ctags -a xget.c
43 ctags -a xsend.c
44 sort -o tags tags
6ab0e22a 45
ca67e7b4 46FRC:
6ab0e22a 47
ca67e7b4
C
48# DO NOT DELETE THIS LINE -- mkdep uses it.
49# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
6ab0e22a 50
ca67e7b4
C
51enroll.o: enroll.c xmail.h /usr/include/stdio.h /usr/include/mp.h
52enroll.o: /usr/include/pwd.h /usr/include/sys/types.h
53lib.o: lib.c xmail.h /usr/include/stdio.h /usr/include/mp.h
54xget.o: xget.c xmail.h /usr/include/stdio.h /usr/include/mp.h
55xget.o: /usr/include/sys/types.h /usr/include/sys/dir.h /usr/include/ctype.h
56xget.o: /usr/include/pwd.h /usr/include/sys/stat.h
57xsend.o: xsend.c xmail.h /usr/include/stdio.h /usr/include/mp.h
58xsend.o: /usr/include/sys/types.h /usr/include/pwd.h /usr/include/sys/stat.h
59xsend.o: /usr/include/sys/dir.h
6ab0e22a 60
ca67e7b4 61# IF YOU PUT ANYTHING HERE IT WILL GO AWAY