xref: /original-bsd/old/athena/register/Makefile (revision 29d43723)
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
20CDEFS=	-DKERBEROS
21CFLAGS=	-O
22LIBC=	/lib/libc.a
23KLIB=	/usr/local/lib/libkrb.a
24DESLIB=	/usr/local/lib/libdes.a
25KDBLIB=	/usr/local/lib/libkrb_dbm.a
26INCDIR=	/usr/include/kerberos
27SRC1=	registerd.c
28SRC2=	register.c
29SRC3=	make_keypair.c
30OBJS=	register.o registerd.o make_keypair.o
31MAN=	register.0 registerd.0 make_keypair.0
32
33all: registerd register make_keypair
34
35registerd: ${SRC1} ${LIBC} ${KLIB} ${DESLIB} registerd.c
36	${CC} -o $@ -I${INCDIR} ${CFLAGS} ${CDEFS} ${SRC1} ../lib/des_rw.o -lutil -lkrb -lkrb_dbm -ldes
37
38register: ${SRC2} ${LIBC} ${KLIB} ${DESLIB} register.c
39	${CC} -o $@ -I${INCDIR} ${CFLAGS} ${CDEFS} ${SRC2} ../lib/des_rw.o -lutil -lkrb -ldes
40
41make_keypair: ${SRC3} ${LIBC} ${KLIB} ${DESLIB} make_keypair.c
42	${CC} -o $@ -I${INCDIR} ${CFLAGS} ${CDEFS} ${SRC3} ../lib/des_rw.o -lutil -lkrb -lkrb_dbm -ldes
43
44clean:
45	rm -f ${OBJS} core registerd register make_keypair
46
47cleandir: clean
48	rm -f ${MAN} tags .depend
49
50depend: ${SRC1} ${SRC2} ${SRC3}
51	mkdep -p ${CFLAGS} ${SRC1} ${SRC2} ${SRC3}
52
53install: ${MAN}
54	install -s -o bin -g bin -m 755 registerd ${DESTDIR}/etc/registerd
55	install -s -o root -g bin -m 4755 register ${DESTDIR}/usr/local/register
56	install -c -o bin -g bin -m 444 registerd.0 ${DESTDIR}/usr/man/cat8
57	install -c -o bin -g bin -m 444 register.0 ${DESTDIR}/usr/man/cat1
58	install -c -o bin -g bin -m 444 make_keypair.0 ${DESTDIR}/usr/man/cat8
59
60lint: ${SRC1} ${SRC2} ${SRC3}
61	lint ${CFLAGS} ${SRC1} ${SRC2} ${SRC3}
62
63tags: ${SRC1} ${SRC2} ${SRC3}
64	ctags ${SRC1} ${SRC2} ${SRC3}
65