Commit | Line | Data |
---|---|---|
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 | # |
8 | CFLAGS= -O | |
ca67e7b4 C |
9 | LIBC= /lib/libc.a |
10 | SRCS= enroll.c lib.c xget.c xsend.c | |
11 | OBJS= enroll.o lib.o xget.o xsend.o | |
12 | ||
13 | all: enroll xsend xget | |
14 | ||
15 | enroll: enroll.o lib.o ${LIBC} | |
16 | ${CC} enroll.o lib.o -lmp -o $@ | |
17 | ||
18 | xget: xget.o lib.o ${LIBC} | |
19 | ${CC} xget.o lib.o -lmp -o $@ | |
20 | ||
21 | xsend: xsend.o lib.o ${LIBC} | |
22 | ${CC} xsend.o lib.o -lmp -o $@ | |
23 | ||
24 | clean: FRC | |
25 | rm -f ${OBJS} core enroll xsend xget | |
6ab0e22a | 26 | |
ca67e7b4 C |
27 | depend: FRC |
28 | mkdep ${CFLAGS} ${SRCS} | |
6ab0e22a | 29 | |
ca67e7b4 C |
30 | install: 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 |
35 | lint: 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 |
40 | tags: 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 | 46 | FRC: |
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 |
51 | enroll.o: enroll.c xmail.h /usr/include/stdio.h /usr/include/mp.h |
52 | enroll.o: /usr/include/pwd.h /usr/include/sys/types.h | |
53 | lib.o: lib.c xmail.h /usr/include/stdio.h /usr/include/mp.h | |
54 | xget.o: xget.c xmail.h /usr/include/stdio.h /usr/include/mp.h | |
55 | xget.o: /usr/include/sys/types.h /usr/include/sys/dir.h /usr/include/ctype.h | |
56 | xget.o: /usr/include/pwd.h /usr/include/sys/stat.h | |
57 | xsend.o: xsend.c xmail.h /usr/include/stdio.h /usr/include/mp.h | |
58 | xsend.o: /usr/include/sys/types.h /usr/include/pwd.h /usr/include/sys/stat.h | |
59 | xsend.o: /usr/include/sys/dir.h | |
6ab0e22a | 60 | |
ca67e7b4 | 61 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |