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