2017-04-10 21:13:46 +03:00
|
|
|
# $NetBSD: Makefile,v 1.2 2017/04/10 18:13:46 christos Exp $
|
|
|
|
|
2017-04-10 05:28:23 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2017-04-10 21:13:46 +03:00
|
|
|
WARNS=5
|
|
|
|
|
2017-04-10 05:28:23 +03:00
|
|
|
PROG= bc
|
|
|
|
BINDIR= /usr/bin
|
|
|
|
|
|
|
|
SRCDIR= ${.CURDIR}/../dist
|
|
|
|
.PATH: ${SRCDIR}
|
|
|
|
|
|
|
|
SRCS= global.c load.c util.c execute.c main.c number.c storage.c \
|
|
|
|
bc.y scan.l warranty.c
|
|
|
|
|
|
|
|
CPPFLAGS+= -I. -I${SRCDIR} -D_POSIX_SOURCE
|
|
|
|
CFLAGS+= -funsigned-char
|
|
|
|
LFLAGS+= -I8
|
2017-04-10 21:13:46 +03:00
|
|
|
YHEADER= 1
|
2017-04-10 05:28:23 +03:00
|
|
|
|
|
|
|
LDADD+= -ll -ledit -ltermcap
|
|
|
|
DPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP}
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|