1 # Makefile for GNU tar library. -*- Makefile -*-
3 # Copyright 1994-1997, 1999-2001, 2003-2007, 2009-2010, 2013-2014 Free
4 # Software Foundation, Inc.
6 # This file is part of GNU tar.
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 noinst_LIBRARIES=libtar.a
22 rmt-command.h : Makefile
23 $(AM_V_GEN)rm -f $@-t $@
24 $(AM_V_at)echo "#ifndef DEFAULT_RMT_COMMAND" >> $@-t
25 $(AM_V_at)echo "# define DEFAULT_RMT_COMMAND \"$(DEFAULT_RMT_DIR)/`echo rmt | sed '$(transform)'`$(EXEEXT)\"" >> $@-t
26 $(AM_V_at)echo "#endif" >> $@-t
28 BUILT_SOURCES = rmt-command.h
29 CLEANFILES = rmt-command.h rmt-command.h-t
30 AM_CPPFLAGS = -I$(top_srcdir)/gnu -I../ -I../gnu
31 AM_CFLAGS = $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS)
43 paxerror.c paxexit-status.c paxlib.h paxnames.c \
44 prepargs.c prepargs.h \
48 system.h system-ioctl.h \
53 BUILT_SOURCES += attr/xattr.h
54 attr/xattr.h: attr-xattr.in.h $(top_builddir)/config.status
55 $(AM_V_at)$(MKDIR_P) attr
56 $(AM_V_GEN)rm -f $@-t $@ && \
57 cp $(srcdir)/attr-xattr.in.h attr/xattr.h
60 MOSTLYCLEANFILES = attr/xattr.h
62 EXTRA_DIST = attr-xattr.in.h