1# $FreeBSD$ 2 3PROG= xz 4 5LINKS= ${BINDIR}/xz ${BINDIR}/unxz 6LINKS+= ${BINDIR}/xz ${BINDIR}/lzma 7LINKS+= ${BINDIR}/xz ${BINDIR}/unlzma 8LINKS+= ${BINDIR}/xz ${BINDIR}/xzcat 9LINKS+= ${BINDIR}/xz ${BINDIR}/lzcat 10 11MLINKS= xz.1 unxz.1 xz.1 lzma.1 xz.1 unlzma.1 xz.1 xzcat.1 xz.1 lzcat.1 12 13XZDIR= ${.CURDIR}/../../contrib/xz/src 14LZMALIBDIR= ${.CURDIR}/../../lib/liblzma 15 16.PATH: ${XZDIR}/xz 17 18SRCS= args.c \ 19 coder.c \ 20 file_io.c \ 21 hardware.c \ 22 list.c \ 23 main.c \ 24 message.c \ 25 options.c \ 26 signals.c \ 27 suffix.c \ 28 util.c 29 30.PATH: ${XZDIR}/common 31 32SRCS+= tuklib_open_stdxxx.c \ 33 tuklib_progname.c \ 34 tuklib_exit.c \ 35 tuklib_cpucores.c 36 37WARNS?= 3 38 39CFLAGS+= -DHAVE_CONFIG_H \ 40 -I${LZMALIBDIR} \ 41 -I${XZDIR}/common 42 43DPADD= ${LIBLZMA} 44LDADD= -llzma 45 46.include <bsd.prog.mk> 47