ecf85f0379
CURDIR it has been built without an obj directory; however if it is in neither of those places, we expect it to be in DESTDIR. Yes Bruce, I know this is broken because the host is not supposed to be the same as the target, but we need to get the hosted build working properly first before even attempting a cross compiled operating system build. That will need to concept of TOOLSDIR or something that can be mapped to DESTDIR in the case of a hosted build and set to the installed tools in a cross compiled build. Later, later, later!
32 lines
850 B
Makefile
32 lines
850 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 exists(${.OBJDIR}/../perl/perl)
|
|
PERL=${.OBJDIR}/../perl/perl
|
|
.elif !defined(PERL) && exists(${.CURDIR}/../perl/perl)
|
|
PERL=${.CURDIR}/../perl/perl
|
|
.else
|
|
PERL= ${DESTDIR}/usr/bin/perl
|
|
.endif
|
|
|
|
curses.c: curses.mus
|
|
${PERL} ${.CURDIR}/mus ${.CURDIR}/curses.mus > curses.c
|
|
|
|
.include "../../Makefile.inc"
|
|
.include <bsd.prog.mk>
|