1 # $DragonFly: src/usr.bin/tar/Makefile,v 1.16 2008/07/12 14:57:33 pavalos Exp $
4 SRCS
= bsdtar.c cmdline.c getdate.c matching.c read.c siginfo.c
subst.c \
6 DPADD
= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBMD}
7 LDADD
= -larchive
-lbz2
-lz
-lmd
8 .if
!defined
(NO_OPENSSL
)
13 CONTRIBDIR
= ${.CURDIR
}/..
/..
/contrib
/libarchive
/tar
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
>