Commit | Line | Data |
---|---|---|
2e7ad030 KF |
1 | # |
2 | # Copyright (c) 1988 Regents of the University of California. | |
3 | # All rights reregisterded. | |
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, advertising | |
8 | # materials, and other materials related to such redistribution and | |
9 | # use acknowledge that the software was developed by the University | |
10 | # of California, Berkeley. The name of the University may not be | |
11 | # used to endorse or promote products derived from this software | |
12 | # without specific prior written permission. THIS SOFTWARE IS PROVIDED | |
13 | # ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | |
14 | # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND | |
15 | # FITNESS FOR A PARTICULAR PURPOSE. | |
16 | # | |
17 | # @(#)Makefile 5.3 (Berkeley) 9/20/88 | |
18 | # | |
19 | ||
89f0e586 | 20 | CFLAGS= -O -DKERBEROS |
2e7ad030 | 21 | LIBC= /lib/libc.a |
2e7ad030 | 22 | SRC1= registerd.c |
89f0e586 | 23 | OBJ1= registerd.o |
2e7ad030 | 24 | SRC2= register.c |
89f0e586 | 25 | OBJ2= register.o |
2e7ad030 | 26 | SRC3= make_keypair.c |
89f0e586 | 27 | OBJ3= make_keypair.o |
c250119d | 28 | OBJS= register.o registerd.o make_keypair.o |
2e7ad030 KF |
29 | MAN= register.0 registerd.0 make_keypair.0 |
30 | ||
31 | all: registerd register make_keypair | |
32 | ||
89f0e586 KF |
33 | registerd: ${OBJ1} ${LIBC} |
34 | ${CC} -o $@ ${CFLAGS} ${SRC1} -lutil -lkdb -lkrb -ldes -lkrb | |
2e7ad030 | 35 | |
89f0e586 KF |
36 | register: ${OBJ2} ${LIBC} |
37 | ${CC} -o $@ ${CFLAGS} ${SRC2} -lutil -lkrb -ldes -lkrb | |
2e7ad030 | 38 | |
89f0e586 KF |
39 | make_keypair: ${OBJ3} ${LIBC} |
40 | ${CC} -o $@ ${CFLAGS} ${SRC3} -lutil -lkdb -lkrb -ldes | |
2e7ad030 KF |
41 | |
42 | clean: | |
43 | rm -f ${OBJS} core registerd register make_keypair | |
44 | ||
45 | cleandir: clean | |
46 | rm -f ${MAN} tags .depend | |
47 | ||
48 | depend: ${SRC1} ${SRC2} ${SRC3} | |
49 | mkdep -p ${CFLAGS} ${SRC1} ${SRC2} ${SRC3} | |
50 | ||
89f0e586 KF |
51 | #install: ${MAN} |
52 | install: | |
53 | install -s -o bin -g bin -m 755 registerd ${DESTDIR}/usr/libexec | |
54 | install -s -o root -g bin -m 4755 register ${DESTDIR}/usr/athena/register | |
2e7ad030 KF |
55 | install -c -o bin -g bin -m 444 registerd.0 ${DESTDIR}/usr/man/cat8 |
56 | install -c -o bin -g bin -m 444 register.0 ${DESTDIR}/usr/man/cat1 | |
57 | install -c -o bin -g bin -m 444 make_keypair.0 ${DESTDIR}/usr/man/cat8 | |
58 | ||
59 | lint: ${SRC1} ${SRC2} ${SRC3} | |
60 | lint ${CFLAGS} ${SRC1} ${SRC2} ${SRC3} | |
61 | ||
62 | tags: ${SRC1} ${SRC2} ${SRC3} | |
63 | ctags ${SRC1} ${SRC2} ${SRC3} |