kernel - Cleanup macros
[dragonfly.git] / usr.bin / bsdcat / Makefile
blob7b030ea94fc2b2c2c8fa32eb4b49253ae6f93833
1 PROG= bsdcat
2 SRCS= bsdcat.c cmdline.c
3 SRCS+= err.c
5 WARNS?= 2
6 DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA} ${LIBMD} ${LIBZ}
7 LDADD= -larchive -lbz2 -llzma -lmd -lz
9 CONTRIBDIR= ${.CURDIR}/../../contrib/libarchive/cat
10 .PATH: ${CONTRIBDIR} ${CONTRIBDIR}/../libarchive_fe
11 LIBARCHIVE_VERSION!= cat ${CONTRIBDIR}/../build/version
12 VERSION!= echo $$((${LIBARCHIVE_VERSION} / 1000000)).$$((${LIBARCHIVE_VERSION} / 1000 % 1000)).$$((${LIBARCHIVE_VERSION} % 1000))
13 CFLAGS+= -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR} -I${CONTRIBDIR}/../libarchive_fe
14 CFLAGS+= -DPLATFORM_CONFIG_H=\"config.h\"
15 CFLAGS+= -DBSDCAT_VERSION_STRING=\"${VERSION}\"
17 .include <bsd.prog.mk>