makefile.in 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # -*- make -*-
  2. # This is the build directory make file, it sets the build directory
  3. # and runs the src makefile.
  4. ifndef NOISY
  5. .SILENT:
  6. endif
  7. include environment.mak
  8. SRCDIR=@top_srcdir@
  9. BUILD:=$(shell pwd)
  10. export BUILD
  11. # Chain to the parent make to do the actual building
  12. .PHONY: headers library clean veryclean all binary program doc \
  13. veryclean/local
  14. all headers library clean veryclean binary program doc:
  15. $(MAKE) -C $(SRCDIR) -f Makefile $@
  16. # Purge everything.
  17. .PHONY: maintainer-clean dist-clean pristine sanity distclean
  18. maintainer-clean dist-clean pristine sanity distclean:
  19. -rm -rf $(DIRS)
  20. -rm -f config.cache config.log config.status environment.mak makefile
  21. # Create the required directories and build the shims
  22. # The configure script fills in below, and then we do the right things..
  23. # This cannot go in the configure script since the directories have not yet
  24. # been created.. In any event I like the idea that you can change environment.mak
  25. # and run make dirs and have the shims updated.
  26. .PHONY: dirs
  27. dirs:
  28. $(MAKE) -C $(SRCDIR) -f Makefile $@
  29. ifeq ($(HAVE_C9X),yes)
  30. @rm -f include/inttypes.h > /dev/null 2>&1
  31. else
  32. @cp -p $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h
  33. endif
  34. ifeq ($(HAVE_STATVFS),yes)
  35. @rm -f include/statvfs.h > /dev/null 2>&1
  36. else
  37. @cp -p $(SRCDIR)/buildlib/statvfs.h.in include/statvfs.h
  38. ln -sf . include/sys
  39. endif
  40. ifeq ($(NEED_SOCKLEN_T_DEFINE),yes)
  41. @cp -p $(SRCDIR)/buildlib/netdb.h.in include/netdb.h
  42. else
  43. @rm -f include/netdb.h > /dev/null 2>&1
  44. endif
  45. rm -f include/python
  46. ln -sf $(PYTHONINCLUDE) include/python