mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-22 17:24:23 +01:00
83294a65d7
linkage is needed for the NOSHARED=YES case, so it is simplest to never depend on the automagic linkage for elf shared libraries. Reviewed by: jdp
36 lines
639 B
Makefile
36 lines
639 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 7/19/93
|
|
# $Id: Makefile,v 1.19 1998/08/30 17:02:51 gpalmer Exp $
|
|
|
|
PROG= su
|
|
SRCS= su.c
|
|
|
|
#LC_AUTH=-DLOGIN_CAP_AUTH
|
|
COPTS+= -DLOGIN_CAP $(LC_AUTH)
|
|
LDADD+= -lutil
|
|
DPADD+= ${LIBUTIL}
|
|
|
|
.if !defined(LC_AUTH)
|
|
COPTS+= -DSKEY
|
|
LDADD+= -lskey -lmd -lcrypt
|
|
DPADD+= ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
|
|
.endif
|
|
|
|
.if defined(WHEELSU)
|
|
COPTS+= -DWHEELSU
|
|
.endif
|
|
CFLAGS+= -Wall
|
|
|
|
.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4) \
|
|
&& !defined(LC_AUTH)
|
|
CFLAGS+=-DKERBEROS
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
LDADD+= -lkrb -ldes
|
|
DISTRIBUTION= krb
|
|
.endif
|
|
|
|
BINOWN= root
|
|
BINMODE=4555
|
|
INSTALLFLAGS=-fschg
|
|
|
|
.include <bsd.prog.mk>
|