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