mirror of https://github.com/postgres/postgres
Install include/port header files, and fix PGXS build to use them.
Fabien COELHO
This commit is contained in:
parent
86b5545260
commit
e5f7a9f404
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
# 'make install' installs whole contents of src/include.
|
# 'make install' installs whole contents of src/include.
|
||||||
#
|
#
|
||||||
# $PostgreSQL: pgsql/src/include/Makefile,v 1.17 2004/11/09 06:23:50 neilc Exp $
|
# $PostgreSQL: pgsql/src/include/Makefile,v 1.18 2004/11/17 17:16:13 tgl Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -18,7 +18,8 @@ all: pg_config.h pg_config_os.h
|
||||||
|
|
||||||
# Subdirectories containing headers for server-side dev
|
# Subdirectories containing headers for server-side dev
|
||||||
SUBDIRS = access bootstrap catalog commands executor lib libpq mb \
|
SUBDIRS = access bootstrap catalog commands executor lib libpq mb \
|
||||||
nodes optimizer parser port regex rewrite storage tcop utils
|
nodes optimizer parser port regex rewrite storage tcop utils \
|
||||||
|
port port/win32 port/win32/arpa port/win32/netinet port/win32/sys
|
||||||
|
|
||||||
# Install all headers
|
# Install all headers
|
||||||
install: all installdirs
|
install: all installdirs
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $PostgreSQL: pgsql/src/makefiles/Makefile.win32,v 1.5 2004/10/27 19:14:07 momjian Exp $
|
# $PostgreSQL: pgsql/src/makefiles/Makefile.win32,v 1.6 2004/11/17 17:16:17 tgl Exp $
|
||||||
|
|
||||||
# Use replacement include files for those missing on Win32
|
# Use replacement include files for those missing on Win32
|
||||||
override CPPFLAGS+="-I$(top_srcdir)/src/include/port/win32"
|
override CPPFLAGS+="-I$(top_srcdir)/src/include/port/win32"
|
||||||
|
@ -35,3 +35,14 @@ endif
|
||||||
ifneq (,$(findstring src/pl/plpython,$(subdir)))
|
ifneq (,$(findstring src/pl/plpython,$(subdir)))
|
||||||
override CPPFLAGS+= -DUSE_DL_IMPORT
|
override CPPFLAGS+= -DUSE_DL_IMPORT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# special win32 headers are provided here
|
||||||
|
ifdef PGXS
|
||||||
|
override CPPFLAGS+= -I$(includedir_server)/port/win32
|
||||||
|
endif
|
||||||
|
|
||||||
|
# it is better to install shared-libraries anyway?
|
||||||
|
# may be overriden with make MAKE_DLL=false install
|
||||||
|
ifndef MAKE_DLL
|
||||||
|
MAKE_DLL = true
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue