Merge commit '8dff7262702aa449609f24db11ec821f1fa34bf6'
[unleashed.git] / bin / clear / Makefile
blobf1541fca2a09a0ef4485a3159091c6fa865ca91b
1 .include <unleashed.mk>
3 NCURSES_DIR= ${SRCTOP}/contrib/ncurses
4 PROGSDIR= ${NCURSES_DIR}/progs
5 .PATH: ${PROGSDIR}
7 PROG= clear
9 CFLAGS+= -D_XOPEN_SOURCE_EXTENDED
10 CFLAGS+= -DENABLE_WIDEC
11 CFLAGS+= -DSET_NCURSES_CH_T=cchar_t
12 CFLAGS+= -DSET_NEED_WCHAR_H=1
13 CFLAGS+= -I${PROGSDIR}
14 CFLAGS+= -I.
15 CFLAGS+= -I${NCURSES_DIR}/include
16 CFLAGS+= -I${.CURDIR}
17 CFLAGS+= -I${.OBJDIR}
19 LDADD= -lncurses
21 clear.o: ${PROGSDIR}/clear.c
22 ${CC} ${CFLAGS} -c ${PROGSDIR}/clear.c -o $@
24 clear_cmd.o: ${PROGSDIR}/clear_cmd.c
25 ${CC} ${CFLAGS} -c ${PROGSDIR}/clear_cmd.c -o $@
27 tty_settings.o: ${PROGSDIR}/tty_settings.c
28 ${CC} ${CFLAGS} -c ${PROGSDIR}/tty_settings.c -o $@
30 SRCS+= clear.c clear_cmd.c tty_settings.c
32 .include <bsd.prog.mk>