e6facc0d0d
libskey contains references to _crypt and can't resolve it unless -lcrypt occurs after it in the link command. This only occurs when linking statically.
24 lines
402 B
Makefile
24 lines
402 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 7/19/93
|
|
|
|
PROG= su
|
|
SRCS= su.c
|
|
|
|
CFLAGS+=-DSKEY
|
|
|
|
LDADD= -lskey -lmd -lcrypt
|
|
DPADD= ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
|
|
|
|
.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS) \
|
|
|| defined(MAKE_EBONES))
|
|
CFLAGS+=-DKERBEROS
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
LDADD+= -lkrb -ldes
|
|
DISTRIBUTION= krb
|
|
.endif
|
|
|
|
BINOWN= root
|
|
BINMODE=4555
|
|
INSTALLFLAGS=-fschg
|
|
|
|
.include <bsd.prog.mk>
|