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