freebsd-dev/gnu/usr.bin/perl/suidperl/Makefile

108 lines
2.6 KiB
Makefile
Raw Normal View History

#
# $Id: Makefile,v 1.2 1998/09/12 15:45:30 markm Exp $
#
PROG= suidperl
NOMAN= true
CFLAGS+=-I${PERL5SRC} -I${.OBJDIR} -DIAMSUID
SRCS= perlmain.c sperl.c config.h
NOSHARED= no
DPADD= lib/auto/DynaLoader/DynaLoader.a ${LIBPERL} ${LIBM} ${LIBCRYPT}
LDADD= lib/auto/DynaLoader/DynaLoader.a -lperl -lm -lcrypt
BINOWN= root
BINMODE=4511
CLEANFILES= config.h config.sh config_h.sh writemain writemain.sh \
Config.pm cflags cflags.sh myconfig perlmain.c miniperlmain.c
CLEANDIRS= lib ext Porting hints
.include <bsd.prog.mk>
HEADERS=EXTERN.h INTERN.h XSUB.h XSlock.h av.h bytecode.h byterun.h \
cc_runtime.h cop.h cv.h dosish.h embed.h embedvar.h fakethr.h form.h \
gv.h handy.h hv.h intrpvar.h iperlsys.h keywords.h mg.h nostdio.h \
objXSUB.h objpp.h op.h opcode.h patchlevel.h perl.h perlio.h \
perlsdio.h perlsfio.h perlvars.h perly.h pp.h pp_proto.h proto.h \
regcomp.h regexp.h regnodes.h scope.h sv.h thrdvar.h thread.h \
unixish.h util.h
${PROG}: lib/auto/DynaLoader/DynaLoader.a
config.h: config_h.sh config.sh
sh config_h.sh
config.sh: ${.CURDIR}/../libperl/config.SH-${OBJFORMAT}.${MACHINE_ARCH}
cp -p ${.OODATE} ${.TARGET}
config_h.sh: config_h.SH
cp -p ${.OODATE} ${.TARGET}
cflags.sh: cflags.SH
cp -p ${.OODATE} ${.TARGET}
cflags: cflags.sh
sh ${.OODATE}
lib:
@rm -rf lib
cp -rp ${PERL5SRC}/lib .
ext:
@rm -rf ext
cp -rp ${PERL5SRC}/ext .
Porting:
@rm -rf Porting
cp -rp ${PERL5SRC}/Porting .
hints:
@rm -rf hints
cp -rp ${PERL5SRC}/hints .
lib/re.pm: lib ext hints ext/re/re.pm
cat ${PERL5SRC}/ext/re/re.pm > ${.OBJDIR}/lib/re.pm
lib/Config.pm: Config.pm
@cp -p ${.OODATE} ${.TARGET}
myconfig: ${PERL5SRC}/myconfig
@ln -sf ${.OODATE} ${.TARGET}
Config.pm: myconfig config.sh lib ext hints Porting lib/re.pm
miniperl ${PERL5SRC}/configpm \
Config.pm Porting/Glossary myconfig config.sh
DEPEND_H=
.for I in ${HEADERS}
${.OBJDIR}/${I}: ${I}
@ln -sf ${.OODATE} ${.TARGET}
CLEANFILES+= ${.OBJDIR}/${I}
DEPEND_H+= ${.OBJDIR}/${I}
.endfor
lib/auto/DynaLoader/DynaLoader.a: cflags lib/Config.pm ${DEPEND_H}
cd ext/DynaLoader; \
miniperl -I../../lib Makefile.PL \
INSTALLDIRS=perl PERL_SRC=${.OBJDIR}; \
make -B config PERL_SRC=${.OBJDIR}; \
make -B all LINKTYPE=static PERL_SRC=${.OBJDIR}
${.OBJDIR}/miniperlmain.c: miniperlmain.c
@ln -sf ${.OODATE} ${.TARGET}
sperl.c: perl.c
@ln -sf ${.OODATE} ${.TARGET}
perlmain.c: ${.OBJDIR}/miniperlmain.c config.sh writemain config.h
sh writemain lib/auto/DynaLoader/DynaLoader.a > ${.TARGET}
writemain.sh: writemain.SH
@ln -sf ${.OODATE} ${.TARGET}
writemain: writemain.sh
sh ${.OODATE}
.PATH: ${PERL5SRC}