opnsense-src/gnu/usr.bin/perl/miniperl/Makefile
Peter Wemm b36bb32876 When setproctitle() moved from libutil to libc, we forgot to back the
change out that made libperl.so dynamically depend on libutil.so to pick
up setproctitle() in its old location.  This breaks changes involving
incomptabable libc's because ld looks for the dynamic dependency
(which it has no business doing anyway) in the wrong place - /usr/lib!
2001-02-13 05:19:56 +00:00

32 lines
628 B
Makefile

# $FreeBSD$
PROG= miniperl
NOMAN= true
CFLAGS+=-I${PERL5SRC} -I${.OBJDIR} -DPERL_EXTERNAL_GLOB
SRCS= miniperlmain.c opmini.c config.h
# Miniperl _must_ be static!!
NOSHARED= yes
.if exists(${.OBJDIR}/../libperl/)
MYLIBPERL= ${.OBJDIR}/../libperl/libperl.a
.else
MYLIBPERL= ${.CURDIR}/../libperl/libperl.a
.endif
DPADD= ${MYLIBPERL} ${LIBM} ${LIBCRYPT}
LDADD= ${MYLIBPERL} -lm -lcrypt
build-tools: cleandepend
cd ${.CURDIR} && ${MAKE} ${PROG}
NO_PERL_SCRIPT_MAKE= true
.include <bsd.prog.mk>
.PATH: ${PERL5SRC}
opmini.c: op.c
ln -sf ${.OODATE} ${.TARGET}
config.h: links
@sh config_h.sh
CLEANFILES+= opmini.c config.h