Makefile.in 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. # Makefile for libelf.
  2. # Copyright (C) 1995 - 2005 Michael Riepe
  3. #
  4. # This library is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Library General Public
  6. # License as published by the Free Software Foundation; either
  7. # version 2 of the License, or (at your option) any later version.
  8. #
  9. # This library 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 GNU
  12. # Library General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Library General Public
  15. # License along with this library; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  17. # @(#) $Id: Makefile.in,v 1.30 2008/05/23 08:17:56 michael Exp $
  18. instroot =
  19. prefix = @prefix@
  20. exec_prefix = @exec_prefix@
  21. libdir = @libdir@
  22. pkgdir = $(libdir)/pkgconfig
  23. MV = mv -f
  24. RM = rm -f
  25. LN_S = @LN_S@
  26. INSTALL = @INSTALL@
  27. INSTALL_DATA = @INSTALL_DATA@
  28. CC = @CC@
  29. CFLAGS = @CFLAGS@
  30. CPPFLAGS = @CPPFLAGS@
  31. LDFLAGS = @LDFLAGS@
  32. LIBS = @LIBS@
  33. # no user serviceable parts below
  34. PACKAGE = @PACKAGE@
  35. VERSION = @VERSION@
  36. SHELL = /bin/sh
  37. @SET_MAKE@
  38. srcdir = @srcdir@
  39. VPATH = @srcdir@
  40. SUBDIRS = lib @POSUB@
  41. DISTSUBDIRS = lib po
  42. DISTFILES = \
  43. acconfig.h aclocal.m4 ChangeLog config.guess config.h.in \
  44. config.sub configure configure.in COPYING.LIB INSTALL install-sh \
  45. Makefile.in mkinstalldirs README stamp-h.in VERSION libelf.pc.in
  46. all: all-recursive all-local
  47. check: check-recursive check-local
  48. install: install-recursive install-local
  49. uninstall: uninstall-recursive uninstall-local
  50. mostlyclean: mostlyclean-recursive mostlyclean-local
  51. clean: clean-recursive clean-local
  52. distclean: distclean-recursive distclean-local
  53. maintainer-clean: maintainer-clean-recursive maintainer-clean-local
  54. install-compat uninstall-compat:
  55. cd lib && $(MAKE) $@
  56. all-recursive check-recursive install-recursive uninstall-recursive \
  57. clean-recursive distclean-recursive mostlyclean-recursive \
  58. maintainer-clean-recursive:
  59. @subdirs="$(SUBDIRS)"; for subdir in $$subdirs; do \
  60. target=`echo $@|sed 's,-recursive,,'`; \
  61. echo making $$target in $$subdir; \
  62. (cd $$subdir && $(MAKE) $$target) || exit 1; \
  63. done
  64. all-local:
  65. check-local:
  66. install-local: $(srcdir)/mkinstalldirs libelf.pc
  67. $(SHELL) $(srcdir)/mkinstalldirs $(instroot)$(pkgdir)
  68. $(INSTALL_DATA) libelf.pc $(instroot)$(pkgdir)
  69. uninstall-local:
  70. $(RM) $(instroot)$(pkgdir)/libelf.pc
  71. mostlyclean-local:
  72. $(RM) *~ core errlist
  73. clean-local: mostlyclean-local
  74. distclean-local: clean-local
  75. $(RM) config.cache config.h config.log config.status stamp-h
  76. $(RM) Makefile
  77. $(RM) libelf.pc
  78. maintainer-clean-local: distclean-local
  79. @echo "This command is intended for maintainers to use;"
  80. @echo "it deletes files that may require special tools to rebuild."
  81. $(RM) config.h.in configure stamp-dist
  82. $(RM) -r $(distdir)
  83. # maintainer only
  84. MAINT = @MAINT@
  85. distdir = $(PACKAGE)-$(VERSION)
  86. DISTPERMS = --owner=root --group=root --numeric-owner
  87. $(MAINT)dist: ./stamp-dist
  88. $(MAINT)./stamp-dist: $(DISTFILES)
  89. $(RM) -r $(distdir)
  90. mkdir $(distdir)
  91. files="$(DISTFILES)"; for file in $$files; do \
  92. ln $(srcdir)/$$file $(distdir) || \
  93. cp -p $(srcdir)/$$file $(distdir) || exit 1; \
  94. done
  95. subdirs="$(DISTSUBDIRS)"; for subdir in $$subdirs; do \
  96. (cd $$subdir && $(MAKE) dist) || exit 1; \
  97. done
  98. cd $(distdir) && \
  99. find . -type f ! -name MANIFEST -exec wc -c {} \; | \
  100. sed 's, \./, ,' | sort -k2 >MANIFEST
  101. -$(RM) $(distdir).tar.gz.bak $(PACKAGE).tar.gz
  102. -$(MV) $(distdir).tar.gz $(distdir).tar.gz.bak
  103. tar cvohfz $(distdir).tar.gz $(DISTPERMS) $(distdir)
  104. $(LN_S) $(distdir).tar.gz $(PACKAGE).tar.gz
  105. $(RM) stamp-dist && echo timestamp > stamp-dist
  106. $(MAINT)check-dist:
  107. $(RM) -r disttest
  108. mkdir disttest
  109. @echo 'unset CC CFLAGS CPPFLAGS LDFLAGS LIBS' >disttest/config.site
  110. cd disttest && CONFIG_SITE=config.site ../$(distdir)/configure
  111. $(MAKE) -C disttest
  112. $(MAKE) -C disttest check
  113. $(MAKE) -C disttest dist
  114. .PHONY: tags
  115. tags:
  116. rm -f tags
  117. ctags lib/*.c lib/*.h
  118. TRACKFS = trackfs
  119. trackinstall:
  120. $(TRACKFS) -l install.log -b backup.cpio $(MAKE) install
  121. # For the justification of the following Makefile rules, see node
  122. # `Automatic Remaking' in GNU Autoconf documentation.
  123. $(MAINT)$(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/aclocal.m4
  124. $(RM) $(srcdir)/configure
  125. cd $(srcdir) && autoconf
  126. $(MAINT)$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
  127. $(MAINT)$(srcdir)/stamp-h.in: $(srcdir)/configure.in $(srcdir)/acconfig.h
  128. $(RM) $(srcdir)/config.h.in
  129. cd $(srcdir) && autoheader
  130. cd $(srcdir) && $(RM) stamp-h.in && echo timestamp > stamp-h.in
  131. $(MAINT)config.h: stamp-h
  132. $(MAINT)stamp-h: config.h.in config.status
  133. CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
  134. $(RM) stamp-h && echo timestamp > stamp-h
  135. $(MAINT)Makefile: Makefile.in config.status
  136. CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
  137. $(MAINT)lib/Makefile: lib/Makefile.in config.status
  138. CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
  139. $(MAINT)lib/sys_elf.h: lib/stamp-h
  140. $(MAINT)lib/stamp-h: lib/sys_elf.h.in config.status
  141. CONFIG_FILES= CONFIG_HEADERS=lib/sys_elf.h ./config.status
  142. $(RM) lib/stamp-h && echo timestamp > lib/stamp-h
  143. $(MAINT)po/Makefile: po/Makefile.in config.status
  144. CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
  145. $(MAINT)libelf.pc: libelf.pc.in config.status
  146. CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
  147. RECHECK_FLAGS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' \
  148. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)'
  149. $(MAINT)config.status: configure config.h.in VERSION
  150. $(RECHECK_FLAGS) ./config.status --recheck
  151. $(MAINT)reconfig:
  152. $(RM) config.cache
  153. $(RECHECK_FLAGS) ./config.status --recheck
  154. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  155. # Otherwise a system limit (for SysV at least) may be exceeded.
  156. .NOEXPORT: