aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-06-04 21:16:18 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-06-04 21:16:18 +0000
commit9bdd177911202b8c9bac1592fea44789fdb54870 (patch)
treefd15fe60e0e776235dcc9edc0f0786a1c972a4e2 /gnu
parent741a21e8c799bd085f47e0025e979b2078fb0b91 (diff)
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/tar/Makefile22
-rw-r--r--gnu/usr.bin/tar/Makefile.inc12
-rw-r--r--gnu/usr.bin/tar/doc/Makefile5
-rw-r--r--gnu/usr.bin/tar/lib/Makefile17
4 files changed, 23 insertions, 33 deletions
diff --git a/gnu/usr.bin/tar/Makefile b/gnu/usr.bin/tar/Makefile
index c839cd473ed21..6afb9cc3c6d19 100644
--- a/gnu/usr.bin/tar/Makefile
+++ b/gnu/usr.bin/tar/Makefile
@@ -1,5 +1,23 @@
# $FreeBSD$
-SUBDIR= lib tar doc
+TARDIR= ${.CURDIR}/../../../contrib/tar
+.PATH: ${TARDIR}/lib ${TARDIR}/src
-.include <bsd.subdir.mk>
+PROG= tar
+
+SUBDIR+= doc
+
+# libtar SRCS
+SRCS= addext.c argmatch.c backupfile.c basename.c dirname.c error.c \
+ exclude.c full-write.c getdate.c getline.c getopt.c getopt1.c \
+ getstr.c hash.c human.c mktime.c modechange.c prepargs.c \
+ print-copyr.c quotearg.c safe-read.c save-cwd.c savedir.c unicodeio.c \
+ xgetcwd.c xmalloc.c xstrdup.c xstrtoul.c xstrtoumax.c
+SRCS+= buffer.c compare.c create.c delete.c extract.c incremen.c list.c \
+ mangle.c misc.c names.c rtapelib.c tar.c update.c
+
+CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR} -I${TARDIR}/lib -I${TARDIR}/src
+
+NOSHARED?= YES
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/tar/Makefile.inc b/gnu/usr.bin/tar/Makefile.inc
deleted file mode 100644
index 42dcec242f468..0000000000000
--- a/gnu/usr.bin/tar/Makefile.inc
+++ /dev/null
@@ -1,12 +0,0 @@
-# $FreeBSD$
-
-TARDIR= ${.CURDIR}/../../../../contrib/tar
-TARCFLAGS= -DHAVE_CONFIG_H -I${.CURDIR}/.. -I${TARDIR}/lib
-
-# Inherit BINDIR from one level up.
-.if !target(__foobar__)
-__foobar__:
-.if exists(../Makefile.inc)
-.include "../Makefile.inc"
-.endif
-.endif
diff --git a/gnu/usr.bin/tar/doc/Makefile b/gnu/usr.bin/tar/doc/Makefile
index abe0b9308bdc1..6f59f98796b2b 100644
--- a/gnu/usr.bin/tar/doc/Makefile
+++ b/gnu/usr.bin/tar/doc/Makefile
@@ -1,8 +1,9 @@
# $FreeBSD$
+TARDIR= ${.CURDIR}/../../../../contrib/tar
+.PATH: ${TARDIR}/doc
+
INFO= tar
MAKEINFOFLAGS= -I${TARDIR}/doc
.include <bsd.info.mk>
-
-.PATH: ${TARDIR}/doc
diff --git a/gnu/usr.bin/tar/lib/Makefile b/gnu/usr.bin/tar/lib/Makefile
deleted file mode 100644
index c896a53ce2684..0000000000000
--- a/gnu/usr.bin/tar/lib/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
-# $FreeBSD$
-
-LIB= tar
-INTERNALLIB= YES
-
-SRCS= addext.c argmatch.c backupfile.c basename.c dirname.c error.c \
- exclude.c full-write.c getdate.c getopt.c getopt1.c getstr.c \
- getline.c hash.c human.c mktime.c modechange.c msleep.c prepargs.c \
- print-copyr.c quote.c quotearg.c safe-read.c save-cwd.c savedir.c \
- unicodeio.c xgetcwd.c xmalloc.c xstrdup.c \
- xstrtoimax.c xstrtoul.c xstrtoumax.c
-
-CFLAGS+= ${TARCFLAGS}
-
-.include <bsd.lib.mk>
-
-.PATH: ${TARDIR}/lib