Makefile.tmpl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Makefile for GNU tar library. -*- Makefile -*-
  2. # Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003, 2004,
  3. # 2005, 2006 Free 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., 51 Franklin Street, Fifth Floor, Boston, MA
  15. ## 02110-1301, USA.
  16. noinst_LIBRARIES = libtar.a
  17. noinst_HEADERS = system.h system-ioctl.h localedir.h rmt.h paxlib.h stdopen.h
  18. libtar_a_SOURCES = prepargs.c prepargs.h rtapelib.c paxerror.c paxexit.c paxnames.c stdopen.c
  19. localedir = $(datadir)/locale
  20. DISTCLEANFILES = localedir.h
  21. localedir.h : Makefile
  22. echo '#define LOCALEDIR "$(localedir)"' >$@
  23. echo "#ifndef DEFAULT_RMT_COMMAND" >> $@
  24. echo "# define DEFAULT_RMT_COMMAND \"$(DEFAULT_RMT_DIR)/`echo rmt | sed '$(transform)'`$(EXEEXT)\"" >> $@
  25. echo "#endif" >> $@
  26. rtapelib.o: localedir.h
  27. libtar_a_LIBADD = $(LIBOBJS) $(ALLOCA)
  28. libtar_a_DEPENDENCIES = $(libtar_a_LIBADD)
  29. BUILT_SOURCES =
  30. AM_CPPFLAGS =
  31. EXTRA_DIST = Makefile.tmpl
  32. MAINTAINERCLEANFILES =
  33. MOSTLYCLEANFILES =
  34. lib_OBJECTS = $(libtar_a_OBJECTS)
  35. # Special rule for getdate
  36. #
  37. # Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.
  38. $(srcdir)/getdate.c: getdate.y
  39. cd $(srcdir) && \
  40. $(YACC) $(YFLAGS) getdate.y && \
  41. mv -f y.tab.c getdate.c
  42. SUFFIXES = .o .c .h
  43. CLEANFILES =
  44. # gnulib modules