77#
88#
99# IDENTIFICATION
10- # $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.80 2000/06/19 16:58:35 petere Exp $
10+ # $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.81 2000/06/27 00:30:48 petere Exp $
1111#
1212# NOTES
1313# Essentially all Postgres make files include this file and use the
3535#
3636#-------------------------------------------------------------------------
3737
38+ ifndef SRCDIR
39+ # This should be changed once we have separate build dirs.
40+ top_srcdir = $(top_builddir)
41+ ifeq ($(top_builddir), $(top_srcdir))
42+ srcdir = .
43+ else
44+ srcdir = $(top_srcdir)/$(subdir)
45+ endif
46+ VPATH = $(srcdir)
47+ SRCDIR = $(top_builddir)/src
48+ endif
3849
3950##############################################################################
4051#
@@ -61,33 +72,29 @@ LIBPQ= -L$(LIBPQDIR) -lpq
6172LIBPGTCL= -L$(LIBPGTCLDIR) -lpgtcl
6273LIBPGEASY= -L$(LIBPGEASYDIR) -lpgeasy
6374
64- #For convenience, POSTGRESDIR is where BINDIR, and LIBDIR
65- # and other target destinations are rooted. Of course, each of these is
66- # changable separately.
67- POSTGRESDIR = @prefix @
68-
69- # Where the postgres executables live (changeable by just putting them
70- # somewhere else and putting that directory in your shell PATH)
71- BINDIR= $(POSTGRESDIR)/bin
72-
73- # Where libpq.a gets installed. You must put it where your loader will
74- # look for it if you wish to use the -lpq convention. Otherwise you
75- # can just put the absolute pathname to the library at the end of your
76- # command line.
77- LIBDIR= $(POSTGRESDIR)/lib
78-
79- # Where the database templates are stored
80- #
81- TEMPLATEDIR = $(POSTGRESDIR)/lib
82-
83- # Where the man pages (suitable for use with "man") get installed.
75+ #installation directories
76+
77+ prefix = @prefix@
78+ exec_prefix = @exec_prefix @
79+ bindir = @bindir@
80+ sbindir = @sbindir@
81+ libexecdir = @libexecdir@
82+ datadir = @datadir@
83+ sysconfdir = @sysconfdir@
84+ sharedstatedir = @sharedstatedir@
85+ localstatedir = @localstatedir@
86+ libdir = @libdir@
87+ includedir = @includedir@
88+
89+ # old variable names for installation directories
90+
91+ POSTGRESDIR= $(prefix)
92+ BINDIR = $(bindir)
93+ LIBDIR= $(libdir)
94+ TEMPLATEDIR= $(libdir)
8495POSTMANDIR= $(POSTGRESDIR)/man
85-
86- # Where the formatted documents (e.g., the reference manual) get installed.
8796POSTDOCDIR= $(POSTGRESDIR)/doc
88-
89- # Where the header files necessary to build frontend programs get installed.
90- HEADERDIR= $(POSTGRESDIR)/include
97+ HEADERDIR= $(includedir)
9198
9299
93100##############################################################################
@@ -105,6 +112,8 @@ ENFORCE_ALIGNMENT= true
105112#PROFILE= -p -non_shared
106113
107114
115+ with_perl = @with_perl@
116+
108117#
109118# Please do not edit USE_TCL and USE_TK by hand.
110119#
@@ -125,13 +134,21 @@ MULTIBYTE=@MULTIBYTE@
125134#
126135# For many ports, INSTALL is overridden below.
127136INSTALL= @INSTALL@
128- RANLIB= @RANLIB@
129137
138+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
139+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
140+ INSTALL_DATA = @INSTALL_DATA@
141+ INSTALL_SHLIB = @INSTALL_SHLIB@
142+
143+ mkinstalldirs = @mkinstalldirs@
144+
145+ # don't use these any more
130146INSTLOPTS= @INSTLOPTS@
131147INSTL_EXE_OPTS= @INSTL_EXE_OPTS@
132148INSTL_LIB_OPTS= @INSTL_LIB_OPTS@
133149INSTL_SHLIB_OPTS= @INSTL_SHLIB_OPTS@
134150
151+ RANLIB= @RANLIB@
135152
136153#-------------------------------------------------------------
137154# See the subdirectory template for default settings for these
@@ -154,6 +171,8 @@ DLSUFFIX= @DLSUFFIX@
154171LN_S= @LN_S@
155172TAR= @tar@
156173GZCAT= @GZCAT@
174+ PERL = @PERL@
175+
157176
158177##############################################################################
159178#
@@ -238,3 +257,13 @@ ifdef PROFILE
238257 CFLAGS+= $(PROFILE)
239258 LDFLAGS+= $(PROFILE)
240259endif
260+
261+
262+ # substitute implementations of the C library
263+ STRERROR = @STRERROR@
264+ STRERROR2 = @STRERROR2@
265+ SNPRINTF = @SNPRINTF@
266+ STRDUP = @STRDUP@
267+
268+ .DEFAULT: all
269+ .PHONY: all install installdirs uninstall dep depend clean distclean maintainer-clean