Makefile.am 1.8 KB

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