usr.sbin/autofs: Best effort to maintain mounttab and mountdtab
[dragonfly.git] / usr.bin / tic / Makefile
1 NCURSESDIR=     ${.CURDIR}/../../contrib/ncurses
2 TERMINFO_CAPS=  ${NCURSESDIR}/include/Caps
3 PROGSDIR=       ${NCURSESDIR}/progs
4 .PATH:          ${PROGSDIR}
5
6 PROG=           tic
7
8 CFLAGS+=        -DENABLE_WIDEC
9 CFLAGS+=        -DSET_NCURSES_CH_T=cchar_t
10 CFLAGS+=        -DSET_NEED_WCHAR_H=1
11 CFLAGS+=        -I${PROGSDIR}
12 CFLAGS+=        -I.
13 CFLAGS+=        -I${NCURSESDIR}/include
14 CFLAGS+=        -I${.CURDIR}/../../lib/libncurses/include
15 CFLAGS+=        -I${.CURDIR}
16 CFLAGS+=        -I${.OBJDIR}
17
18 DPADD=          ${LIBNCURSESW}
19 LDADD=          -lprivate_ncursesw
20 CFLAGS+=        -I${_SHLIBDIRPREFIX}/usr/include/priv/ncurses
21 LDFLAGS+=       ${PRIVATELIB_LDFLAGS}
22
23 term.h:
24         awk -f ${.CURDIR}/../../lib/libncurses/include/MKterm.h.awk ${TERMINFO_CAPS} \
25           > ${.TARGET}.new
26         sh ${NCURSESDIR}/include/edit_cfg.sh ${.CURDIR}/../../lib/libncurses/include/ncurses_cfg.h \
27           ${.TARGET}.new
28         mv -f ${.TARGET}.new ${.TARGET}
29
30 ncurses_def.h:
31         AWK=awk sh ${NCURSESDIR}/include/MKncurses_def.sh \
32           ${NCURSESDIR}/include/ncurses_defs > ${.TARGET}
33
34 parametrized.h:
35         AWK=awk sh ${NCURSESDIR}/include/MKparametrized.sh \
36           ${TERMINFO_CAPS} > ${.TARGET}
37
38 beforedepend:   termsort.c
39
40 termsort.c:
41         sh ${PROGSDIR}/MKtermsort.sh awk ${TERMINFO_CAPS} > termsort.c
42
43 tic.o: ${PROGSDIR}/tic.c
44         ${CC} ${CFLAGS} -c ${PROGSDIR}/tic.c -o ${.TARGET}
45
46 transform.o: ${PROGSDIR}/transform.c
47         ${CC} ${CFLAGS} -c ${PROGSDIR}/transform.c -o ${.TARGET}
48
49 dump_entry.o: ${PROGSDIR}/dump_entry.c termsort.c
50         ${CC} ${CFLAGS} -c ${PROGSDIR}/dump_entry.c -o ${.TARGET}
51
52 CLEANFILES=     ncurses_def.h parametrized.h term.h termsort.c
53
54 SRCS=   ncurses_def.h parametrized.h term.h
55 SRCS+=  tic.c dump_entry.c tparm_type.c transform.c
56
57 .include <bsd.prog.mk>