1# $FreeBSD$ 2 3# This Makefile is shared by libncurses, libform, libmenu, libpanel. 4 5NCURSES_DIR= ${SRCTOP}/contrib/ncurses 6NCURSES_MAJOR= 6 7NCURSES_MINOR= 2 8NCURSES_PATCH= 20210220 9 10CFLAGS+= -D_XOPEN_SOURCE_EXTENDED 11NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h 12 13CFLAGS+= -I. 14CFLAGS+= -I${.CURDIR:H}/ncurses 15 16# for ${NCURSES_CFG_H} 17CFLAGS+= -I${.CURDIR:H}/ncurses 18 19CFLAGS+= -I${NCURSES_DIR}/include 20CFLAGS+= -I${NCURSES_DIR}/ncurses 21CFLAGS+= -I${.OBJDIR:H}/ncurses/ 22 23CFLAGS+= -Wall 24 25CFLAGS+= -DNDEBUG 26 27CFLAGS+= -DHAVE_CONFIG_H 28 29# everyone needs this 30.PATH: ${NCURSES_DIR}/include 31 32# tools and directories 33AWK?= awk 34TERMINFODIR?= ${SHAREDIR}/misc 35 36# Generate headers 37ncurses_def.h: MKncurses_def.sh ncurses_defs 38 AWK=${AWK} sh ${NCURSES_DIR}/include/MKncurses_def.sh \ 39 ${NCURSES_DIR}/include/ncurses_defs > ncurses_def.h 40 41# Manual pages filter 42MANFILTER= sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \ 43 -e 's%@DATADIR@%/usr/share%g' \ 44 -e 's%@NCURSES_OSPEED@%${NCURSES_OSPEED}%g' \ 45 -e 's%@NCURSES_MAJOR@%${NCURSES_MAJOR}%g' \ 46 -e 's%@NCURSES_MINOR@%${NCURSES_MINOR}%g' \ 47 -e 's%@NCURSES_PATCH@%${NCURSES_PATCH}%g' \ 48 -e 's%@TPUT@%tput%g' \ 49 -e 's%@TSET@%tset%g' \ 50 -e 's%@RESET@%reset%g' \ 51 -e 's%@CLEAR@%clear%g' \ 52 -e 's%@TABS@%tabs%g' \ 53 -e 's%@TIC@%tic%g' \ 54 -e 's%@TOE@%toe%g' \ 55 -e 's%@INFOCMP@%infocmp%g' \ 56 -e 's%@CAPTOINFO@%captoinfo%g' \ 57 -e 's%@INFOTOCAP@%infotocap%g' 58