Makefile.am 1.7 KB

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