xref: /freebsd/usr.bin/xz/Makefile (revision 98be8199837bb404b8158d703daff14a02df984a)
181ad8388SMartin Matuska# $FreeBSD$
281ad8388SMartin Matuska
381ad8388SMartin MatuskaPROG=	xz
481ad8388SMartin Matuska
581ad8388SMartin MatuskaLINKS=	${BINDIR}/xz ${BINDIR}/unxz
681ad8388SMartin MatuskaLINKS+=	${BINDIR}/xz ${BINDIR}/lzma
781ad8388SMartin MatuskaLINKS+=	${BINDIR}/xz ${BINDIR}/unlzma
881ad8388SMartin MatuskaLINKS+=	${BINDIR}/xz ${BINDIR}/xzcat
981ad8388SMartin MatuskaLINKS+=	${BINDIR}/xz ${BINDIR}/lzcat
1081ad8388SMartin Matuska
1181ad8388SMartin MatuskaMLINKS= xz.1 unxz.1 xz.1 lzma.1 xz.1 unlzma.1 xz.1 xzcat.1 xz.1 lzcat.1
1281ad8388SMartin Matuska
1381ad8388SMartin MatuskaXZDIR=	${.CURDIR}/../../contrib/xz/src
1481ad8388SMartin MatuskaLZMALIBDIR=	${.CURDIR}/../../lib/liblzma
1581ad8388SMartin Matuska
1681ad8388SMartin Matuska.PATH: ${XZDIR}/xz
1781ad8388SMartin Matuska
1881ad8388SMartin MatuskaSRCS=	args.c \
1981ad8388SMartin Matuska	coder.c \
2081ad8388SMartin Matuska	file_io.c \
2181ad8388SMartin Matuska	hardware.c \
2281ad8388SMartin Matuska	list.c \
2381ad8388SMartin Matuska	main.c \
2481ad8388SMartin Matuska	message.c \
2581ad8388SMartin Matuska	options.c \
2681ad8388SMartin Matuska	signals.c \
2781ad8388SMartin Matuska	suffix.c \
2881ad8388SMartin Matuska	util.c
2981ad8388SMartin Matuska
3081ad8388SMartin Matuska.PATH: ${XZDIR}/common
3181ad8388SMartin Matuska
3281ad8388SMartin MatuskaSRCS+=	tuklib_open_stdxxx.c \
3381ad8388SMartin Matuska	tuklib_progname.c \
3481ad8388SMartin Matuska	tuklib_exit.c \
3581ad8388SMartin Matuska	tuklib_cpucores.c
3681ad8388SMartin Matuska
3781ad8388SMartin MatuskaWARNS?=	3
3881ad8388SMartin Matuska
3981ad8388SMartin MatuskaCFLAGS+=	-DHAVE_CONFIG_H \
4081ad8388SMartin Matuska		-I${LZMALIBDIR} \
41*98be8199SMartin Matuska		-I${XZDIR}/common
4281ad8388SMartin Matuska
4381ad8388SMartin MatuskaDPADD=	${LIBLZMA}
4481ad8388SMartin MatuskaLDADD=	-llzma
4581ad8388SMartin Matuska
4681ad8388SMartin Matuska.include <bsd.prog.mk>
47