libiconv: we can now link mount_cd9660 and mount_msdos statically.
[dragonfly.git] / usr.bin / tar / Makefile
blob9d9ca0ed4d8a785ec3e3fbb4a328c574c8cfa49c
1 # $DragonFly: src/usr.bin/tar/Makefile,v 1.16 2008/07/12 14:57:33 pavalos Exp $
3 PROG= bsdtar
4 SRCS= bsdtar.c cmdline.c getdate.c matching.c read.c siginfo.c subst.c \
5 tree.c util.c write.c
6 DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBMD}
7 LDADD= -larchive -lbz2 -lz -lmd
8 .if !defined(NO_OPENSSL)
9 DPADD+= ${LIBCRYPTO}
10 LDADD+= -lcrypto
11 .endif
13 CONTRIBDIR= ${.CURDIR}/../../contrib/libarchive/tar
14 .PATH: ${CONTRIBDIR}
15 LIBARCHIVE_VERSION!= cat ${CONTRIBDIR}/../build/version
16 VERSION!= echo $$((${LIBARCHIVE_VERSION} / 1000000)).$$((${LIBARCHIVE_VERSION} / 1000 % 1000)).$$((${LIBARCHIVE_VERSION} % 1000))
17 CFLAGS+= -I${.OBJDIR} -I${.CURDIR}/../../lib/libarchive -I${CONTRIBDIR}
18 CFLAGS+= -DPLATFORM_CONFIG_H=\"config.h\"
19 CFLAGS+= -DBSDTAR_VERSION_STRING=\"${VERSION}\"
21 SYMLINKS= ${BINDIR}/bsdtar ${BINDIR}/tar
22 MLINKS= bsdtar.1 tar.1
24 .include <bsd.prog.mk>