-MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
-
-# full-write
-libtar_a_SOURCES += full-write.h full-write.c
-
-# getdate
-libtar_a_SOURCES += getdate.h getdate.y
-BUILT_SOURCES += getdate.c
-MAINTAINERCLEANFILES += getdate.c
-#
-# Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.
-$(srcdir)/getdate.c: getdate.y
- cd $(srcdir) && \
- $(YACC) $(YFLAGS) getdate.y && \
- mv -f y.tab.c getdate.c
-
-# getline
-libtar_a_SOURCES += getline.h
-EXTRA_DIST += getndelim2.h getndelim2.c
-
-# getopt
-libtar_a_SOURCES += getopt.h getopt.c getopt1.c
-
-# gettext
-libtar_a_SOURCES += gettext.h
-
-# hash
-libtar_a_SOURCES += hash.h hash.c
-
-# human
-libtar_a_SOURCES += human.h human.c
-
-# lchown
-libtar_a_SOURCES += lchown.h
-
-# modechange
-libtar_a_SOURCES += modechange.h modechange.c
-
-# pathmax
-libtar_a_SOURCES += pathmax.h
-
-# quote
-libtar_a_SOURCES += quote.h quote.c
-
-# quotearg
-libtar_a_SOURCES += quotearg.h quotearg.c
-
-# safe-read
-libtar_a_SOURCES += safe-read.h safe-read.c
-
-# safe-write
-libtar_a_SOURCES += safe-write.h safe-write.c
-
-# save-cwd
-libtar_a_SOURCES += save-cwd.h save-cwd.c
-
-# savedir
-libtar_a_SOURCES += savedir.h savedir.c
-
-# stdbool
-BUILT_SOURCES += $(STDBOOL_H)
-EXTRA_DIST += stdbool_.h
-
-# We need the following in order to create an <stdbool.h> when the system
-# doesn't have one that works.
-all-local $(lib_OBJECTS): $(STDBOOL_H)
-stdbool.h: stdbool_.h
- sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > $@-t
- mv $@-t $@
-MOSTLYCLEANFILES += stdbool.h stdbool.h-t
-
-# unlocked-io
-libtar_a_SOURCES += unlocked-io.h
-
-# xalloc
-libtar_a_SOURCES += xalloc.h xmalloc.c xstrdup.c
-
-# xgetcwd
-libtar_a_SOURCES += xgetcwd.h xgetcwd.c
-
-# xstrtol
-libtar_a_SOURCES += xstrtol.h xstrtol.c xstrtoul.c
-
-# xstrtoumax
-libtar_a_SOURCES += xstrtoumax.c
+BUILT_SOURCES += rmt-command.h
+CLEANFILES += rmt-command.h rmt-command.h-t
+
+noinst_HEADERS += system.h system-ioctl.h rmt.h paxlib.h stdopen.h
+libtar_a_SOURCES += \
+ paxerror.c paxexit.c paxlib.h paxnames.c \
+ prepargs.c prepargs.h \
+ rtapelib.c \
+ rmt.h \
+ stdopen.c stdopen.h \
+ system.h system-ioctl.h
+
+libtar_a_LIBADD += $(LIBOBJS)
+libtar_a_DEPENDENCIES += $(LIBOBJS)