1.include <src.opts.mk> 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= ${SRCTOP}/contrib/xz/src 14LZMALIBDIR= ${SRCTOP}/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 mytime.c \ 26 options.c \ 27 sandbox.c \ 28 signals.c \ 29 suffix.c \ 30 util.c 31 32.PATH: ${XZDIR}/common 33 34SRCS+= tuklib_open_stdxxx.c \ 35 tuklib_progname.c \ 36 tuklib_exit.c \ 37 tuklib_cpucores.c \ 38 tuklib_mbstr_width.c \ 39 tuklib_mbstr_fw.c 40 41WARNS?= 3 42 43CFLAGS+= -DHAVE_CONFIG_H \ 44 -I${LZMALIBDIR} \ 45 -I${XZDIR}/common 46 47LIBADD= lzma 48 49.include <bsd.prog.mk> 50