freebsd-nq/gnu/usr.bin/perl/suidperl/Makefile
Warner Losh 9a88e86cbe Always build and install suidperl. Only install suidperl setuid when
ENABLE_SUIDPERL is set to true.  When perl is updated to remove the
fork mail code, additional warnings will enable the users to know what
is gonig on and how to correct it.  Markm will make those commits as
part of his perl patch integration.  suidperl is installed with
execute permissions so that markm's added error messages wil be seen
by the user.
2000-08-13 01:40:06 +00:00

39 lines
803 B
Makefile

# $FreeBSD$
PROG= suidperl
NOMAN= true
CFLAGS+=-I${PERL5SRC} -I${.OBJDIR} -DPERL_CORE
CFLAGS+=-DIAMSUID
SRCS= perlmain.c config.h
SRCS+= sperl.c
NOSHARED= no
LDFLAGS=-Wl,-E
DPADD= ${DYNALOADER} ${LIBPERL} ${LIBM} ${LIBCRYPT} ${LIBMD}
LDADD= ${DYNALOADER} -lperl -lm -lcrypt -lmd
LINKS= ${BINDIR}/${PROG} ${BINDIR}/sperl5 \
${BINDIR}/${PROG} ${BINDIR}/sperl${VERSION}
BINOWN= root
.if defined(ENABLE_SUIDPERL) && ${ENABLE_SUIDPERL} == "true"
BINMODE=4511
.else
BINMODE=511
.endif
CLEANFILES= Config.pm perlmain.c \
autosplit ext.libs
CLEANFILES+= sperl.c
.include <bsd.prog.mk>
beforedepend all: scripts
${PROG}: scripts autosplit ${DYNALOADER}
perlmain.c: scripts autosplit
sh writemain ${DYNALOADER} > ${.TARGET}
.PATH: ${PERL5SRC}
sperl.c: ${PERL5SRC}/perl.c
ln -sf ${.OODATE} ${.TARGET}