autofs: disable by default
[unleashed.git] / bin / tic / Makefile
blob1147ff37b09ef2e97f7c00f58b27845f77d81d5c
1 .include <unleashed.mk>
3 NCURSES_DIR= ${SRCTOP}/contrib/ncurses
4 TERMINFO_CAPS= ${NCURSES_DIR}/include/Caps
5 PROGSDIR= ${NCURSES_DIR}/progs
6 .PATH: ${PROGSDIR}
8 PROG= tic
10 CFLAGS+= -D_XOPEN_SOURCE_EXTENDED
11 CFLAGS+= -DENABLE_WIDEC
12 CFLAGS+= -DSET_NCURSES_CH_T=cchar_t
13 CFLAGS+= -DSET_NEED_WCHAR_H=1
14 CFLAGS+= -I${PROGSDIR}
15 CFLAGS+= -I.
16 CFLAGS+= -I${NCURSES_DIR}/include
17 CFLAGS+= -I${.CURDIR}
18 CFLAGS+= -I${.OBJDIR}
20 LDADD= -lncurses
22 ncurses_def.h:
23 AWK=awk sh ${NCURSES_DIR}/include/MKncurses_def.sh \
24 ${NCURSESDIR}/include/ncurses_defs > $@
26 parametrized.h:
27 AWK=awk sh ${NCURSES_DIR}/include/MKparametrized.sh \
28 ${TERMINFO_CAPS} > $@
30 _termsortc= termsort.c
31 beforedepend: termsort.c
33 ${_termsortc}:
34 sh ${PROGSDIR}/MKtermsort.sh awk ${TERMINFO_CAPS} > termsort.c
36 tic.o: ${PROGSDIR}/tic.c
37 ${CC} ${CFLAGS} -c ${PROGSDIR}/tic.c -o $@
39 transform.o: ${PROGSDIR}/transform.c
40 ${CC} ${CFLAGS} -c ${PROGSDIR}/transform.c -o $@
42 dump_entry.o: ${PROGSDIR}/dump_entry.c ${_termsortc}
43 ${CC} ${CFLAGS} -c ${PROGSDIR}/dump_entry.c -o $@
45 CLEANFILES= ncurses_def.h parametrized.h termsort.c clear.dep
47 SRCS= ncurses_def.h parametrized.h
49 SRCS+= tic.c dump_entry.c tparm_type.c transform.c
51 afterinstall:
52 cd ${DESTDIR}/usr/bin && ln -f tic captoinfo
54 .include <bsd.prog.mk>