1# @(#)Makefile 8.1 (Berkeley) 7/19/93 2# $FreeBSD$ 3 4PROG= init 5MAN8= init.8 6BINMODE=500 7INSTALLFLAGS=-fschg 8CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT 9 10.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) 11DISTRIBUTION=des 12DPADD= ${LIBUTIL} ${DESCRYPTOBJDIR}/libdescrypt.a 13LDADD= -lutil -L${DESCRYPTOBJDIR} -ldescrypt 14.else 15DPADD= ${LIBUTIL} ${SCRYPTOBJDIR}/libscrypt.a 16LDADD= -lutil -L${SCRYPTOBJDIR} -lscrypt 17.endif 18 19.if exists(${.OBJDIR}/../../lib/libcrypt) 20SCRYPTOBJDIR= ${.OBJDIR}/../../lib/libcrypt 21.else 22SCRYPTOBJDIR= ${.CURDIR}/../../lib/libcrypt 23.endif 24 25.if exists (${.CURDIR}/../../secure) 26 27.if exists(${.OBJDIR}/../../secure/lib/libcrypt) 28DESCRYPTOBJDIR= ${.OBJDIR}/../../secure/lib/libcrypt 29.else 30DESCRYPTOBJDIR= ${.CURDIR}/../../secure/lib/libcrypt 31.endif 32 33.endif 34 35beforeinstall: 36.if exists(${DESTDIR}${BINDIR}/${PROG}) 37 -chflags noschg ${DESTDIR}${BINDIR}/${PROG} 38 mv ${DESTDIR}${BINDIR}/${PROG} ${DESTDIR}${BINDIR}/${PROG}.bak 39.endif 40 41.include <bsd.prog.mk> 42