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 tuklib_mbstr_width.c \ 37 tuklib_mbstr_fw.c 38 39WARNS?= 3 40 41CFLAGS+= -DHAVE_CONFIG_H \ 42 -I${LZMALIBDIR} \ 43 -I${XZDIR}/common 44 45DPADD= ${LIBLZMA} 46LDADD= -llzma 47 48.include <bsd.prog.mk> 49