## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-## 02111-1307, USA.
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+## 02110-1301, USA.
bin_PROGRAMS = tar
-libexec_PROGRAMS = @RMT@
-EXTRA_PROGRAMS = rmt
-noinst_HEADERS = arith.h common.h rmt.h system.h tar.h
-rmt_SOURCES = rmt.c
-tar_SOURCES = buffer.c compare.c create.c delete.c extract.c \
- xheader.c incremen.c list.c mangle.c misc.c names.c rtapelib.c tar.c update.c
+noinst_HEADERS = arith.h common.h tar.h
+tar_SOURCES = \
+ buffer.c\
+ compare.c\
+ create.c\
+ delete.c\
+ extract.c\
+ xheader.c\
+ incremen.c\
+ list.c\
+ mangle.c\
+ misc.c\
+ names.c\
+ sparse.c\
+ system.c\
+ tar.c\
+ update.c\
+ utf8.c
+
+INCLUDES = -I$(top_srcdir)/lib -I../ -I../lib
+
+tar.o: ../lib/localedir.h
+
+LDADD = ../lib/libtar.a $(LIBINTL) $(LIBICONV)
-localedir = $(datadir)/locale
-INCLUDES = -I$(top_srcdir)/lib -I../lib
-
-DISTCLEANFILES = localedir.h
-localedir.h : Makefile
- echo '#define LOCALEDIR "$(localedir)"' >$@
-rmt.o tar.o : localedir.h
-
-LDADD = ../lib/libtar.a $(LIBINTL)
-
-rmt_LDADD = $(LDADD) $(LIB_SETSOCKOPT)
tar_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)