config.mk revision 166130
1166130Srafan# This Makefile is shared by libncurses, libform, libmenu, libpanel. 2166130Srafan# 3166130Srafan# $FreeBSD: head/lib/ncurses/config.mk 166130 2007-01-20 07:46:45Z rafan $ 4166130Srafan 5166130SrafanNCURSES_DIR= ${.CURDIR}/../../../contrib/ncurses 6166130Srafan 7166130SrafanNCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h 8166130Srafan 9166130SrafanCFLAGS+= -I. 10166130Srafan.if exists(${.OBJDIR}/../ncurses${LIB_SUFFIX}) 11166130SrafanCFLAGS+= -I${.OBJDIR}/../ncurses${LIB_SUFFIX} 12166130Srafan.endif 13166130SrafanCFLAGS+= -I${.CURDIR}/../ncurses${LIB_SUFFIX} 14166130Srafan 15166130Srafan# for ${NCURSES_CFG_H} 16166130SrafanCFLAGS+= -I${.CURDIR}/../ncurses 17166130Srafan 18166130SrafanCFLAGS+= -I${NCURSES_DIR}/include 19166130SrafanCFLAGS+= -I${NCURSES_DIR}/ncurses 20166130Srafan 21166130SrafanCFLAGS+= -Wall 22166130Srafan 23166130SrafanCFLAGS+= -DNDEBUG 24166130Srafan 25166130SrafanCFLAGS+= -DHAVE_CONFIG_H 26166130Srafan 27166130Srafan# everyone needs this 28166130Srafan.PATH: ${NCURSES_DIR}/include 29166130Srafan 30166130Srafan# tools and directories 31166130SrafanAWK?= awk 32166130SrafanTERMINFODIR?= ${SHAREDIR}/misc 33166130Srafan 34166130Srafan# Generate headers 35166130Srafanncurses_def.h: MKncurses_def.sh ncurses_defs 36166130Srafan AWK=${AWK} sh ${NCURSES_DIR}/include/MKncurses_def.sh \ 37166130Srafan ${NCURSES_DIR}/include/ncurses_defs > ncurses_def.h 38