freebsd-dev/gnu/usr.bin/perl/usub/Makefile
Jordan K. Hubbard f74e1ace9c Also check for Satoshi's TMPDIR location of perl when looking around for it.
Clean up an .ifdef which was probably doing the wrong thing in the case
where user wants to override PERL.
Submitted by:	jhay
1998-05-29 06:16:44 +00:00

36 lines
957 B
Makefile

PROG= curseperl
# From perl
SRCS+= array.c cmd.c cons.c consarg.c doarg.c doio.c dolist.c dump.c
SRCS+= eval.c form.c hash.c perl.c perly.c regcomp.c regexec.c
SRCS+= stab.c str.c toke.c util.c
# Local to us.
SRCS+= usersub.c curses.c
CFLAGS+= -DDEBUGGING -I${.CURDIR}/../perl
LDADD+= -lncurses -lmytinfo -lcrypt -lm
DPADD+= ${LIBNCURSES} ${LIBMYTINFO} ${LIBCRYPT} ${LIBM}
CLEANFILES+= curses.c
VPATH+= ${.CURDIR}/../perl
NOMAN= yes
# If perl exists in none of these places, something is horribly wrong.
.if !defined(PERL)
.if exists(${.OBJDIR}/../../../../tmp/usr/bin/perl)
PERL=${.OBJDIR}/../../../../tmp/usr/bin/perl
.elif exists(${.OBJDIR}/../perl/perl)
PERL=${.OBJDIR}/../perl/perl
.elif exists(${.CURDIR}/../perl/perl)
PERL=${.CURDIR}/../perl/perl
.else
PERL= ${DESTDIR}/usr/bin/perl
.endif
.endif
curses.c: curses.mus
${PERL} ${.CURDIR}/mus ${.CURDIR}/curses.mus > curses.c
.include "../../Makefile.inc"
.include <bsd.prog.mk>