X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FMakefile.tmpl;h=59542e71791b6a70eb02b5ba218815881f18020c;hb=edff14952222e22320950e7c7785c07406a04d55;hp=0806a7438ffa6234e19d7babcd69ccb1228d5869;hpb=8ad16912cfbec7fc3c61c1f7b8bb354773356cd2;p=chaz%2Ftar diff --git a/lib/Makefile.tmpl b/lib/Makefile.tmpl index 0806a74..59542e7 100644 --- a/lib/Makefile.tmpl +++ b/lib/Makefile.tmpl @@ -1,7 +1,7 @@ -# Makefile for GNU tar library. +# Makefile for GNU tar library. -*- Makefile -*- -# Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003, 2004 -# Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003, 2004, +# 2005, 2006 Free Software Foundation, Inc. ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -15,12 +15,23 @@ ## 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. noinst_LIBRARIES = libtar.a +noinst_HEADERS = system.h system-ioctl.h localedir.h rmt.h paxlib.h stdopen.h +libtar_a_SOURCES = prepargs.c prepargs.h rtapelib.c paxerror.c paxexit.c paxnames.c stdopen.c -libtar_a_SOURCES = prepargs.c prepargs.h +localedir = $(datadir)/locale + +DISTCLEANFILES = localedir.h +localedir.h : Makefile + echo '#define LOCALEDIR "$(localedir)"' >$@ + echo "#ifndef DEFAULT_RMT_COMMAND" >> $@ + echo "# define DEFAULT_RMT_COMMAND \"$(DEFAULT_RMT_DIR)/`echo rmt | sed '$(transform)'`$(EXEEXT)\"" >> $@ + echo "#endif" >> $@ + +rtapelib.o: localedir.h libtar_a_LIBADD = $(LIBOBJS) $(ALLOCA) libtar_a_DEPENDENCIES = $(libtar_a_LIBADD) @@ -39,5 +50,6 @@ $(srcdir)/getdate.c: getdate.y $(YACC) $(YFLAGS) getdate.y && \ mv -f y.tab.c getdate.c +SUFFIXES = .o .c .h +CLEANFILES = # gnulib modules -