Install GNU tar as gtar now in preparation for adding bsdtar.
[dragonfly.git] / gnu / usr.bin / tar / Makefile
1 # $FreeBSD: src/gnu/usr.bin/tar/Makefile,v 1.11.6.4 2002/07/14 13:19:46 sobomax Exp $
2 # $DragonFly: src/gnu/usr.bin/tar/Attic/Makefile,v 1.3 2004/11/10 00:01:54 joerg Exp $
3
4 TARDIR= ${.CURDIR}/../../../contrib/tar
5 .PATH: ${TARDIR}/lib ${TARDIR}/src
6
7 PROG=   gtar
8 .if !defined(WITH_BSDTAR)
9 SYMLINKS=       ${BINDIR}/gtar ${BINDIR}/tar
10 MLINKS= gtar.1 tar.1
11 .endif
12
13 SUBDIR= doc
14
15 # libtar SRCS
16 SRCS=   addext.c argmatch.c backupfile.c basename.c dirname.c error.c \
17         exclude.c full-write.c getdate.c getline.c getopt.c getopt1.c \
18         getstr.c hash.c human.c mktime.c modechange.c prepargs.c \
19         print-copyr.c quotearg.c safe-read.c save-cwd.c savedir.c unicodeio.c \
20         xgetcwd.c xmalloc.c xstrdup.c xstrtoul.c xstrtoumax.c strtoumax.c
21 SRCS+=  buffer.c compare.c create.c delete.c extract.c incremen.c list.c \
22         mangle.c misc.c names.c rtapelib.c tar.c update.c
23
24 CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR} -I${TARDIR}/lib -I${TARDIR}/src
25
26 NOSHARED?= YES
27
28 gtar.1: tar.1
29         cp ${.CURDIR}/tar.1 ${.TARGET}
30
31 CLEANFILES+=    gtar.1
32
33 .include <bsd.prog.mk>