55aaafd8c7b99905f515299db06a56f3a7a083b7
[dragonfly.git] / usr.bin / xz / Makefile
1 PROG=   xz
2
3 LINKS=  ${BINDIR}/xz ${BINDIR}/unxz
4 LINKS+= ${BINDIR}/xz ${BINDIR}/xzcat
5 LINKS+= ${BINDIR}/xz ${BINDIR}/lzma
6 LINKS+= ${BINDIR}/xz ${BINDIR}/unlzma
7 LINKS+= ${BINDIR}/xz ${BINDIR}/lzcat
8 MLINKS= xz.1 unxz.1 \
9         xz.1 xzcat.1 \
10         xz.1 lzma.1 \
11         xz.1 unlzma.1 \
12         xz.1 lzcat.1
13
14 XZDIR=  ${.CURDIR}/../../contrib/xz/src
15
16 .PATH: ${XZDIR}/xz
17 SRCS=   args.c \
18         coder.c \
19         file_io.c \
20         hardware.c \
21         list.c \
22         main.c \
23         message.c \
24         options.c \
25         signals.c \
26         suffix.c \
27         util.c
28
29 .PATH: ${XZDIR}/common
30 SRCS+=  tuklib_open_stdxxx.c \
31         tuklib_progname.c \
32         tuklib_exit.c \
33         tuklib_cpucores.c \
34         tuklib_mbstr_width.c \
35         tuklib_mbstr_fw.c
36
37 WARNS?= 3
38 CSTD?=  gnu99
39 CFLAGS+= -DHAVE_CONFIG_H
40 CFLAGS+= -I${.CURDIR}/../../lib/liblzma -I${XZDIR}/common
41
42 DPADD=  ${LIBLZMA}
43 LDADD=  -llzma
44
45 .include <bsd.prog.mk>