Makefile.am 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # Makefile for GNU tar library.
  2. # Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003 Free
  3. # Software Foundation, Inc.
  4. ## This program 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 2, or (at your option)
  7. ## any later version.
  8. ## This program 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, write to the Free Software
  14. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  15. ## 02111-1307, USA.
  16. noinst_LIBRARIES = libtar.a
  17. libtar_a_SOURCES = prepargs.c prepargs.h
  18. libtar_a_LIBADD = $(LIBOBJS) $(ALLOCA)
  19. libtar_a_DEPENDENCIES = $(libtar_a_LIBADD)
  20. BUILT_SOURCES =
  21. EXTRA_DIST =
  22. MAINTAINERCLEANFILES =
  23. MOSTLYCLEANFILES =
  24. # gnulib modules
  25. # alloca
  26. EXTRA_DIST += alloca_.h
  27. all-local $(lib_OBJECTS): @ALLOCA_H@
  28. alloca.h: alloca_.h
  29. cp $(srcdir)/alloca_.h alloca.h-t
  30. mv alloca.h-t alloca.h
  31. MOSTLYCLEANFILES += alloca.h alloca.h-t
  32. # argmatch
  33. libtar_a_SOURCES += argmatch.h argmatch.c
  34. # backupfile
  35. libtar_a_SOURCES += backupfile.h backupfile.c addext.c
  36. # dirname
  37. libtar_a_SOURCES += dirname.h dirname.c basename.c stripslash.c
  38. # exclude
  39. libtar_a_SOURCES += exclude.h exclude.c
  40. # fnmatch
  41. EXTRA_DIST += fnmatch_.h fnmatch_loop.c
  42. all-local $(lib_OBJECTS): @FNMATCH_H@
  43. fnmatch.h: fnmatch_.h
  44. cp $(srcdir)/fnmatch_.h fnmatch.h-t
  45. mv fnmatch.h-t fnmatch.h
  46. MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
  47. # full-write
  48. libtar_a_SOURCES += full-write.h full-write.c
  49. # getdate
  50. libtar_a_SOURCES += getdate.h getdate.y
  51. BUILT_SOURCES += getdate.c
  52. MAINTAINERCLEANFILES += getdate.c
  53. #
  54. # Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.
  55. $(srcdir)/getdate.c: getdate.y
  56. cd $(srcdir) && \
  57. $(YACC) $(YFLAGS) getdate.y && \
  58. mv -f y.tab.c getdate.c
  59. # getline
  60. libtar_a_SOURCES += getline.h
  61. # getopt
  62. libtar_a_SOURCES += getopt.h getopt.c getopt1.c
  63. # gettext
  64. libtar_a_SOURCES += gettext.h
  65. # hash
  66. libtar_a_SOURCES += hash.h hash.c
  67. # human
  68. libtar_a_SOURCES += human.h human.c
  69. # exitfail
  70. libtar_a_SOURCES += exitfail.h exitfail.c
  71. # lchown
  72. libtar_a_SOURCES += lchown.h
  73. # modechange
  74. libtar_a_SOURCES += modechange.h modechange.c
  75. # pathmax
  76. libtar_a_SOURCES += pathmax.h
  77. # quote
  78. libtar_a_SOURCES += quote.h quote.c
  79. # quotearg
  80. libtar_a_SOURCES += quotearg.h quotearg.c
  81. # safe-read
  82. libtar_a_SOURCES += safe-read.h safe-read.c
  83. # safe-write
  84. libtar_a_SOURCES += safe-write.h safe-write.c
  85. # save-cwd
  86. libtar_a_SOURCES += save-cwd.h save-cwd.c
  87. # savedir
  88. libtar_a_SOURCES += savedir.h savedir.c
  89. # stdbool
  90. EXTRA_DIST += stdbool_.h
  91. all-local $(lib_OBJECTS): $(STDBOOL_H)
  92. stdbool.h: stdbool_.h
  93. sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > stdbool.h-t
  94. mv stdbool.h-t stdbool.h
  95. MOSTLYCLEANFILES += stdbool.h stdbool.h-t
  96. # unlocked-io
  97. libtar_a_SOURCES += unlocked-io.h
  98. # xalloc
  99. libtar_a_SOURCES += xalloc.h xmalloc.c xstrdup.c
  100. # xgetcwd
  101. libtar_a_SOURCES += xgetcwd.h xgetcwd.c
  102. # xstrtol
  103. libtar_a_SOURCES += xstrtol.h xstrtol.c xstrtoul.c
  104. # xstrtoumax
  105. libtar_a_SOURCES += xstrtoumax.c