summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/usub/Makefile
blob: 32983038317dd2adaabe426f3c9e20e2f0f30367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 malloc.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 -ltermcap -ltermlib -lcrypt -lm
DPADD+=		${LIBNCURSES} ${LIBTERMCAP} ${LIBTERMLIB} ${LIBCRYPT} ${LIBM}
CLEANFILES+=	curses.c
VPATH+=	${.CURDIR}/../perl
NOMAN=	yes

# If perl exists in none of these places, something is horribly wrong.
.if exists(${.CURDIR}/../perl/obj/perl)
PERL=${.CURDIR}/../perl/obj/perl
.endif
.if !defined(PERL) && exists(${.CURDIR}/../perl/perl)
PERL=${.CURDIR}/../perl/perl
.else
PERL=	/usr/bin/perl
.endif

curses.c: curses.mus
	${PERL} ${.CURDIR}/mus ${.CURDIR}/curses.mus > curses.c

.include "../../Makefile.inc"
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud