1 .
include "${.CURDIR:H}/config.mk"
4 LINKS
= ${LIBDIR}/libncurses.
${LD_so} ${LIBDIR}/libcurses.
${LD_so}
5 SYMLINKS
= libcurses.
${LD_so} ${LIBDIR}/libcurses.so
6 SYMLINKS
+= libcurses.
${LD_so} ${LIBDIR}/libcurses.so.
${SHLIB_MAJOR}
7 SYMLINKS
+= curses.h
${INCDIR}/ncurses.h
9 # does not include init_keytry.h, which is generated later
26 BUILDFIRST
= ${GENHDRS} init_keytry.h
27 # includes generated <init_keytry.h>
28 COPTS.init_keytry.c
+= -I.
32 ${NCURSES_INC}/termcap.h \
33 ${NCURSES_INC}/unctrl.h \
34 ${NCURSES_INC}/ncurses_dll.h \
43 cat
${NCURSES_INC}/curses.head
>$@
44 AWK
=${AWK} ${SHELL} ${NCURSES_INC}/MKkey_defs.sh
${TERMINFO_CAPS} >> $@
45 ${SHELL} -c
'if test "cchar_t" = "cchar_t" ; then cat ${NCURSES_INC}/curses.wide >> $@ ; fi'
46 cat
${NCURSES_INC}/curses.tail
>> $@
48 hashsize.h
: MKhashsize.sh Caps
49 ${SHELL} ${NCURSES_INC}/MKhashsize.sh
${TERMINFO_CAPS} > $@
51 ncurses_def.h
: ncurses_defs MKncurses_def.sh
52 AWK
=${AWK} ${SHELL} ${NCURSES_INC}/MKncurses_def.sh
${NCURSES_INC}/ncurses_defs
> $@
54 parametrized.h
: MKparametrized.sh Caps
55 AWK
=${AWK} ${SHELL} ${NCURSES_INC}/MKparametrized.sh
${TERMINFO_CAPS} > $@
57 names.c
: MKnames.awk Caps
58 ${AWK} -f
${NCURSES_TINFO}/MKnames.awk bigstrings
=${USE_BIG_STRINGS} ${TERMINFO_CAPS} >$@
60 codes.c
: MKcodes.awk Caps
61 ${AWK} -f
${NCURSES_TINFO}/MKcodes.awk bigstrings
=${USE_BIG_STRINGS} ${TERMINFO_CAPS} >$@
63 fallback.c
: MKfallback.sh Caps
64 ${SHELL} -e
${NCURSES_TINFO}/MKfallback.sh
${TERMINFO} ${TERMINFO_SRC} ${TIC_PATH} >$@
66 lib_gen.c
: MKlib_gen.sh curses.h
67 ${SHELL} -e
${NCURSES_BASE}/MKlib_gen.sh
"${CPP} ${CFLAGS}" ${AWK} generated
< curses.h
>$@
69 init_keytry.h
: make_keys keys.list
70 .
/make_keys keys.list
>$@
72 keys.list
: MKkeys_list.sh Caps
73 AWK
=${AWK} ${SHELL} ${NCURSES_TINFO}/MKkeys_list.sh
${TERMINFO_CAPS} | LC_ALL
=C
sort >$@
75 expanded.c
: curses.priv.h MKexpanded.sh
76 ${SHELL} -e
${NCURSES_SERIAL}/MKexpanded.sh
"${CPP} ${CFLAGS}" >$@
78 # includes <names.c> so add -I.
79 make_keys
: ${GENHDRS} make_keys.c names.c
80 ${CC} -o
$@
${CFLAGS} -I.
${NCURSES_TINFO}/make_keys.c
82 make_hash
: ${GENHDRS} \
86 ${CC} -o
$@
${CFLAGS} ${NCURSES_TINFO}/make_hash.c
88 # expects 'make_hash' in PATH
89 comp_captab.c
: ${GENHDRS} \
94 PATH
=.
:${PATH} ${SHELL} -e
${NCURSES_TINFO}/MKcaptab.sh
${AWK} ${USE_BIG_STRINGS} ${NCURSES_TINFO}/MKcaptab.awk
${TERMINFO_CAPS} >$@
96 lib_keyname.c
: keys.list MKkeyname.awk
97 ${AWK} -f
${NCURSES_BASE}/MKkeyname.awk bigstrings
=${USE_BIG_STRINGS} keys.list
>$@
99 unctrl.c
: MKunctrl.awk
100 echo |
${AWK} -f
${NCURSES_BASE}/MKunctrl.awk bigstrings
=${USE_BIG_STRINGS} >$@
102 SRCS
= ${GENHDRS} ${GENSRCS}
289 ${INSTALL} -d
${INC_INSTALL_OWN} -m
755 ${DESTDIR}${INCSDIR}
290 ${INSTALL} ${INC_COPY} ${INC_INSTALL_OWN} -m
${INCMODE} ${INCS} ${DESTDIR}${INCSDIR}
294 @
test -d
${DESTDIR}/usr
/lib
/pkgconfig || \
295 mkdir
-p
${DESTDIR}/usr
/lib
/pkgconfig
296 ${INSTALL} ${INSTALL_COPY} -o
${SHAREOWN} -g
${SHAREGRP} \
297 -m
0644 ${NCURSES_SRC}/ncurses.
pc ${DESTDIR}/usr
/lib
/pkgconfig
/
300 tabset
= std stdcrt vt100 vt300
303 ${INSTALL} ${INSTALL_COPY} -o
${BINOWN} -g
${BINGRP} \
304 -m
555 ${NCURSES_DIR}/misc
/ncurses-config
${DESTDIR}/usr
/bin
/
305 @
test -d
${DESTDIR}/usr
/share
/tabset || \
306 mkdir
-p
${DESTDIR}/usr
/share
/tabset
307 @for i in
${tabset}; do \
308 j
="${INSTALL} ${INSTALL_COPY} ${INC_INSTALL_OWN} -m 0644 ${NCURSES_DIR}/misc/tabset/$$i \
309 ${DESTDIR}/usr/share/tabset"; \
315 CLEANFILES
= ${GENSRCS} ${GENHDRS} fallback.c lib_gen.c init_keytry.h keys.list make_hash \
316 make_keys make_hash.dep make_keys.dep
319 SHLIB_LDADD
+= -M
${NCURSES_SRC}/mapfile
320 realbuild
: ${MAPFILE}
322 afterinstall
: incinstall pc_files misc_files
324 @set
${SYMLINKS}; ${_SYMLINKS_SCRIPT}
326 .
include <bsd.lib.mk
>