You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #-------------------------------------------------------------------------
  2. #
  3. # Makefile for src
  4. #
  5. # Copyright (c) 1994, Regents of the University of California
  6. #
  7. # src/Makefile
  8. #
  9. #-------------------------------------------------------------------------
  10. subdir = src
  11. top_builddir = ..
  12. include Makefile.global
  13. SUBDIRS = \
  14. common \
  15. port \
  16. timezone \
  17. backend \
  18. backend/utils/mb/conversion_procs \
  19. backend/snowball \
  20. include \
  21. interfaces \
  22. backend/replication/libpqwalreceiver \
  23. backend/replication/pgoutput \
  24. fe_utils \
  25. bin \
  26. pl \
  27. makefiles \
  28. test/regress \
  29. test/isolation \
  30. test/perl
  31. ifeq ($(with_llvm), yes)
  32. SUBDIRS += backend/jit/llvm
  33. endif
  34. # There are too many interdependencies between the subdirectories, so
  35. # don't attempt parallel make here.
  36. .NOTPARALLEL:
  37. $(recurse)
  38. install: install-local
  39. install-local: installdirs-local
  40. $(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
  41. $(INSTALL_DATA) Makefile.port '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.port'
  42. $(INSTALL_DATA) $(srcdir)/Makefile.shlib '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.shlib'
  43. $(INSTALL_DATA) $(srcdir)/nls-global.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/nls-global.mk'
  44. installdirs: installdirs-local
  45. installdirs-local:
  46. $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
  47. uninstall: uninstall-local
  48. uninstall-local:
  49. rm -f $(addprefix '$(DESTDIR)$(pgxsdir)/$(subdir)'/, Makefile.global Makefile.port Makefile.shlib nls-global.mk)
  50. distprep:
  51. $(MAKE) -C test/isolation $@
  52. clean:
  53. $(MAKE) -C test $@
  54. $(MAKE) -C tutorial NO_PGXS=1 $@
  55. $(MAKE) -C test/isolation $@
  56. $(MAKE) -C test/thread $@
  57. distclean maintainer-clean:
  58. $(MAKE) -C test $@
  59. $(MAKE) -C tutorial NO_PGXS=1 $@
  60. $(MAKE) -C test/isolation $@
  61. $(MAKE) -C test/thread $@
  62. rm -f Makefile.port Makefile.global
  63. .PHONY: install-local installdirs-local uninstall-local