xref: /freebsd/usr.bin/su/Makefile (revision a8445737e740901f5f2c8d24c12ef7fc8b00134e)
1#	@(#)Makefile	8.1 (Berkeley) 7/19/93
2#	$Id: Makefile,v 1.19 1998/08/30 17:02:51 gpalmer Exp $
3
4PROG=	su
5SRCS=	su.c
6
7#LC_AUTH=-DLOGIN_CAP_AUTH
8COPTS+= -DLOGIN_CAP $(LC_AUTH)
9LDADD+= -lutil
10DPADD+= ${LIBUTIL}
11
12.if !defined(LC_AUTH)
13COPTS+=	-DSKEY
14LDADD+= -lskey -lmd -lcrypt
15DPADD+= ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
16.endif
17
18.if defined(WHEELSU)
19COPTS+=	-DWHEELSU
20.endif
21CFLAGS+= -Wall
22
23.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4) \
24	&& !defined(LC_AUTH)
25CFLAGS+=-DKERBEROS
26DPADD+=	${LIBKRB} ${LIBDES}
27LDADD+=	-lkrb -ldes
28DISTRIBUTION=	krb
29.endif
30
31BINOWN=	root
32BINMODE=4555
33INSTALLFLAGS=-fschg
34
35.include <bsd.prog.mk>
36