]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - lib/ncurses/config.mk
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / lib / ncurses / config.mk
1 # $FreeBSD$
2
3 # This Makefile is shared by libncurses, libform, libmenu, libpanel.
4
5 NCURSES_DIR=    ${.CURDIR}/../../../contrib/ncurses
6
7 .if defined(ENABLE_WIDEC)
8 LIB_SUFFIX=     w
9 CFLAGS+=        -D_XOPEN_SOURCE_EXTENDED -DENABLE_WIDEC
10 NCURSES_CFG_H=  ${.CURDIR}/../ncurses/ncurses_cfg.h
11 .else
12 LIB_SUFFIX=
13 NCURSES_CFG_H=  ${.CURDIR}/ncurses_cfg.h
14 .endif
15
16 CFLAGS+=        -I.
17 .if exists(${.OBJDIR}/../ncurses${LIB_SUFFIX})
18 CFLAGS+=        -I${.OBJDIR}/../ncurses${LIB_SUFFIX}
19 .endif
20 CFLAGS+=        -I${.CURDIR}/../ncurses${LIB_SUFFIX}
21
22 # for ${NCURSES_CFG_H}
23 CFLAGS+=        -I${.CURDIR}/../ncurses
24
25 CFLAGS+=        -I${NCURSES_DIR}/include
26 CFLAGS+=        -I${NCURSES_DIR}/ncurses
27
28 CFLAGS+=        -Wall
29
30 CFLAGS+=        -DNDEBUG
31
32 CFLAGS+=        -DHAVE_CONFIG_H
33
34 # everyone needs this
35 .PATH:          ${NCURSES_DIR}/include
36
37 # tools and directories
38 AWK?=           awk
39 TERMINFODIR?=   ${SHAREDIR}/misc
40
41 # Generate headers
42 ncurses_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
46 # Manual pages filter
47 MANFILTER=      sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \
48                     -e 's%@DATADIR@%/usr/share%g' \
49                     -e 's%@NCURSES_OSPEED@%${NCURSES_OSPEED}%g' \
50                     -e 's%@NCURSES_MAJOR@%${NCURSES_MAJOR}%g' \
51                     -e 's%@NCURSES_MINOR@%${NCURSES_MINOR}%g' \
52                     -e 's%@NCURSES_PATCH@%${NCURSES_PATCH}%g' \
53                     -e 's%@TIC@%tic%g' \
54                     -e 's%@INFOCMP@%infocmp%g'