Makefile.tmpl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Makefile for GNU tar library.
  2. # Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003, 2004
  3. # 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., 59 Temple Place - Suite 330, Boston, MA
  15. ## 02111-1307, USA.
  16. noinst_LIBRARIES = libtar.a
  17. noinst_HEADERS = system.h localedir.h rmt.h
  18. libtar_a_SOURCES = prepargs.c prepargs.h rtapelib.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 's,^.*/,,;$(transform)'`$(EXEEXT)\"" >> $@
  25. echo "#endif" >> $@
  26. libtar_a_LIBADD = $(LIBOBJS) $(ALLOCA)
  27. libtar_a_DEPENDENCIES = $(libtar_a_LIBADD)
  28. BUILT_SOURCES =
  29. EXTRA_DIST = Makefile.tmpl
  30. MAINTAINERCLEANFILES =
  31. MOSTLYCLEANFILES =
  32. lib_OBJECTS = $(libtar_a_OBJECTS)
  33. # Special rule for getdate
  34. #
  35. # Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.
  36. $(srcdir)/getdate.c: getdate.y
  37. cd $(srcdir) && \
  38. $(YACC) $(YFLAGS) getdate.y && \
  39. mv -f y.tab.c getdate.c
  40. # gnulib modules