Increase NUM_AUXILIARY_PROCS, now that the startup process can co-exist
[PostgreSQL.git] / src / include / Makefile
blob62edd3a5965fb6eb75a8c55c19714f8386f938f9
1 #-------------------------------------------------------------------------
3 # Makefile for src/include
5 # 'make install' installs whole contents of src/include.
7 # $PostgreSQL$
9 #-------------------------------------------------------------------------
11 subdir = src/include
12 top_builddir = ../..
13 include $(top_builddir)/src/Makefile.global
16 all: pg_config.h pg_config_os.h
19 # Subdirectories containing headers for server-side dev
20 SUBDIRS = access bootstrap catalog commands executor lib libpq mb \
21 nodes optimizer parser postmaster regex rewrite storage tcop \
22 snowball snowball/libstemmer tsearch tsearch/dicts utils \
23 port port/win32 port/win32_msvc port/win32_msvc/sys \
24 port/win32/arpa port/win32/netinet port/win32/sys \
25 portability
27 # Install all headers
28 install: all installdirs
29 # These headers are needed by the public headers of the interfaces.
30 $(INSTALL_DATA) $(srcdir)/postgres_ext.h '$(DESTDIR)$(includedir)'
31 $(INSTALL_DATA) $(srcdir)/libpq/libpq-fs.h '$(DESTDIR)$(includedir)/libpq'
32 $(INSTALL_DATA) pg_config.h '$(DESTDIR)$(includedir)'
33 $(INSTALL_DATA) pg_config_os.h '$(DESTDIR)$(includedir)'
34 $(INSTALL_DATA) $(srcdir)/pg_config_manual.h '$(DESTDIR)$(includedir)'
35 # These headers are needed by the not-so-public headers of the interfaces.
36 $(INSTALL_DATA) $(srcdir)/c.h '$(DESTDIR)$(includedir_internal)'
37 $(INSTALL_DATA) $(srcdir)/port.h '$(DESTDIR)$(includedir_internal)'
38 $(INSTALL_DATA) $(srcdir)/postgres_fe.h '$(DESTDIR)$(includedir_internal)'
39 $(INSTALL_DATA) $(srcdir)/libpq/pqcomm.h '$(DESTDIR)$(includedir_internal)/libpq'
40 # These headers are needed for server-side development
41 $(INSTALL_DATA) pg_config.h '$(DESTDIR)$(includedir_server)'
42 $(INSTALL_DATA) pg_config_os.h '$(DESTDIR)$(includedir_server)'
43 # We don't use INSTALL_DATA for performance reasons --- there are a lot of files
44 cp $(srcdir)/*.h '$(DESTDIR)$(includedir_server)'/ || exit; \
45 chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/*.h || exit; \
46 for dir in $(SUBDIRS); do \
47 cp $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir/ || exit; \
48 chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$dir/*.h || exit; \
49 done
51 installdirs:
52 $(mkinstalldirs) '$(DESTDIR)$(includedir)/libpq' '$(DESTDIR)$(includedir_internal)/libpq'
53 $(mkinstalldirs) $(addprefix '$(DESTDIR)$(includedir_server)'/, $(SUBDIRS))
56 uninstall:
57 rm -f $(addprefix '$(DESTDIR)$(includedir)'/, pg_config.h pg_config_os.h pg_config_manual.h postgres_ext.h libpq/libpq-fs.h)
58 rm -f $(addprefix '$(DESTDIR)$(includedir_internal)'/, c.h port.h postgres_fe.h libpq/pqcomm.h)
59 # heuristic...
60 rm -rf $(addprefix '$(DESTDIR)$(includedir_server)'/, $(SUBDIRS) *.h)
63 clean:
64 rm -f utils/fmgroids.h parser/gram.h utils/probes.h
66 distclean maintainer-clean: clean
67 rm -f pg_config.h dynloader.h pg_config_os.h stamp-h