xref: /freebsd/usr.bin/xzdec/Makefile (revision 81ad83880dcc267b198c781929dd9a009f98c5f7)
1*81ad8388SMartin Matuska# $FreeBSD$
2*81ad8388SMartin Matuska
3*81ad8388SMartin MatuskaPROG=	xzdec
4*81ad8388SMartin Matuska
5*81ad8388SMartin MatuskaLINKS=	${BINDIR}/xzdec ${BINDIR}/lzdec
6*81ad8388SMartin Matuska
7*81ad8388SMartin MatuskaMLINKS= xzdec.1 lzmadec.1
8*81ad8388SMartin Matuska
9*81ad8388SMartin MatuskaXZDIR=	${.CURDIR}/../../contrib/xz/src
10*81ad8388SMartin MatuskaLZMALIBDIR=	${.CURDIR}/../../lib/liblzma
11*81ad8388SMartin Matuska
12*81ad8388SMartin Matuska.PATH: ${XZDIR}/xzdec
13*81ad8388SMartin Matuska
14*81ad8388SMartin MatuskaSRCS=	xzdec.c
15*81ad8388SMartin Matuska
16*81ad8388SMartin Matuska.PATH: ${XZDIR}/common
17*81ad8388SMartin Matuska
18*81ad8388SMartin MatuskaSRCS+=	tuklib_progname.c \
19*81ad8388SMartin Matuska	tuklib_exit.c
20*81ad8388SMartin Matuska
21*81ad8388SMartin MatuskaWARNS?=	3
22*81ad8388SMartin Matuska
23*81ad8388SMartin MatuskaCFLAGS+=	-DHAVE_CONFIG_H \
24*81ad8388SMartin Matuska		-I${LZMALIBDIR} \
25*81ad8388SMartin Matuska		-I${XZDIR}/common \
26*81ad8388SMartin Matuska		-I${XZDIR}/liblzma/api
27*81ad8388SMartin Matuska
28*81ad8388SMartin MatuskaDPADD=	${LIBLZMA}
29*81ad8388SMartin MatuskaLDADD=	-llzma
30*81ad8388SMartin Matuska
31*81ad8388SMartin Matuska.include <bsd.prog.mk>
32