1# This Makefile is shared by libncurses, libform, libmenu, libpanel. 2# 3# $FreeBSD$ 4 5NCURSES_DIR= ${.CURDIR}/../../../contrib/ncurses 6 7NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h 8 9CFLAGS+= -I. 10.if exists(${.OBJDIR}/../ncurses${LIB_SUFFIX}) 11CFLAGS+= -I${.OBJDIR}/../ncurses${LIB_SUFFIX} 12.endif 13CFLAGS+= -I${.CURDIR}/../ncurses${LIB_SUFFIX} 14 15# for ${NCURSES_CFG_H} 16CFLAGS+= -I${.CURDIR}/../ncurses 17 18CFLAGS+= -I${NCURSES_DIR}/include 19CFLAGS+= -I${NCURSES_DIR}/ncurses 20 21CFLAGS+= -Wall 22 23CFLAGS+= -DNDEBUG 24 25CFLAGS+= -DHAVE_CONFIG_H 26 27# everyone needs this 28.PATH: ${NCURSES_DIR}/include 29 30# tools and directories 31AWK?= awk 32TERMINFODIR?= ${SHAREDIR}/misc 33 34# Generate headers 35ncurses_def.h: MKncurses_def.sh ncurses_defs 36 AWK=${AWK} sh ${NCURSES_DIR}/include/MKncurses_def.sh \ 37 ${NCURSES_DIR}/include/ncurses_defs > ncurses_def.h 38