summaryrefslogtreecommitdiffstats
path: root/lib/ncurses/config.mk
blob: 7bc7d012203a07a42ce13fd970190cf4d1931544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $FreeBSD$

# This Makefile is shared by libncurses, libform, libmenu, libpanel.

NCURSES_DIR=	${.CURDIR}/../../../contrib/ncurses

.if defined(ENABLE_WIDEC)
LIB_SUFFIX=	w
CFLAGS+=	-D_XOPEN_SOURCE_EXTENDED -DENABLE_WIDEC
NCURSES_CFG_H=	${.CURDIR}/../ncurses/ncurses_cfg.h
.else
LIB_SUFFIX=
NCURSES_CFG_H=	${.CURDIR}/ncurses_cfg.h
.endif

CFLAGS+=	-I.
.if exists(${.OBJDIR}/../ncurses${LIB_SUFFIX})
CFLAGS+=	-I${.OBJDIR}/../ncurses${LIB_SUFFIX}
.endif
CFLAGS+=	-I${.CURDIR}/../ncurses${LIB_SUFFIX}

# for ${NCURSES_CFG_H}
CFLAGS+=	-I${.CURDIR}/../ncurses

CFLAGS+=	-I${NCURSES_DIR}/include
CFLAGS+=	-I${NCURSES_DIR}/ncurses

CFLAGS+=	-Wall

CFLAGS+=	-DNDEBUG

CFLAGS+=	-DHAVE_CONFIG_H

# everyone needs this
.PATH:		${NCURSES_DIR}/include

# tools and directories
AWK?=		awk
TERMINFODIR?=	${SHAREDIR}/misc

# Generate headers
ncurses_def.h:	MKncurses_def.sh ncurses_defs
	AWK=${AWK} sh ${NCURSES_DIR}/include/MKncurses_def.sh \
	    ${NCURSES_DIR}/include/ncurses_defs > ncurses_def.h
OpenPOWER on IntegriCloud