summaryrefslogtreecommitdiff
path: root/databases/postgresql81/files/Makefile.custom
blob: db523bcd7f1a52d10bf94ed0d884ba14d8254e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $NetBSD: Makefile.custom,v 1.1.1.1 2006/03/20 14:45:49 uebayasi Exp $
#
# This file is included at the end of Makefile.global, which is included
# by every sub-Makefile in the build tree.  Makefiles for shared
# libraries include Makefile.global then Makefile.shlib.
#

# Override any OS-specific locations for where to put SQL man pages.
sqlmansect = 7

# Override installation paths to avoid logic in Makefile.global.
includedir = $(prefix)/include
libdir = $(exec_prefix)/lib
pkglibdir = $(libdir)/postgresql
pkgincludedir = $(includedir)/postgresql

# INSTALLED_LIBPQ is passed in from the environment and tells the build
# system how to link to an installed libpq.*.
#
ifdef INSTALLED_LIBPQ
libpq = -lpq
else
ifdef LIBTOOL
libpq = -L$(libpq_builddir)/.libs -lpq
endif
endif

# In pkgsrc, libpython is always present as a shared library.
shared_libpython = yes

# $(libpq_builddir)/libpq.a is used in several places as a dependency,
# but if we're building with libtool, then we don't actually want to
# create that file since it will mess up the re-linking process.
# Declare it to be phony to prevent GNU make from thinking it's a
# target.
#
ifdef LIBTOOL
.PHONY: $(libpq_builddir)/libpq.a
endif