7
7
#
8
8
#
9
9
# 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 $
11
11
#
12
12
# NOTES
13
13
# Essentially all Postgres make files include this file and use the
35
35
#
36
36
#-------------------------------------------------------------------------
37
37
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
38
49
39
50
##############################################################################
40
51
#
@@ -61,33 +72,29 @@ LIBPQ= -L$(LIBPQDIR) -lpq
61
72
LIBPGTCL= -L$(LIBPGTCLDIR) -lpgtcl
62
73
LIBPGEASY= -L$(LIBPGEASYDIR) -lpgeasy
63
74
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)
84
95
POSTMANDIR= $(POSTGRESDIR)/man
85
-
86
- # Where the formatted documents (e.g., the reference manual) get installed.
87
96
POSTDOCDIR= $(POSTGRESDIR)/doc
88
-
89
- # Where the header files necessary to build frontend programs get installed.
90
- HEADERDIR= $(POSTGRESDIR)/include
97
+ HEADERDIR= $(includedir)
91
98
92
99
93
100
##############################################################################
@@ -105,6 +112,8 @@ ENFORCE_ALIGNMENT= true
105
112
#PROFILE= -p -non_shared
106
113
107
114
115
+ with_perl = @with_perl@
116
+
108
117
#
109
118
# Please do not edit USE_TCL and USE_TK by hand.
110
119
#
@@ -125,13 +134,21 @@ MULTIBYTE=@MULTIBYTE@
125
134
#
126
135
# For many ports, INSTALL is overridden below.
127
136
INSTALL= @INSTALL@
128
- RANLIB= @RANLIB@
129
137
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
130
146
INSTLOPTS= @INSTLOPTS@
131
147
INSTL_EXE_OPTS= @INSTL_EXE_OPTS@
132
148
INSTL_LIB_OPTS= @INSTL_LIB_OPTS@
133
149
INSTL_SHLIB_OPTS= @INSTL_SHLIB_OPTS@
134
150
151
+ RANLIB= @RANLIB@
135
152
136
153
#-------------------------------------------------------------
137
154
# See the subdirectory template for default settings for these
@@ -154,6 +171,8 @@ DLSUFFIX= @DLSUFFIX@
154
171
LN_S= @LN_S@
155
172
TAR= @tar@
156
173
GZCAT= @GZCAT@
174
+ PERL = @PERL@
175
+
157
176
158
177
##############################################################################
159
178
#
@@ -238,3 +257,13 @@ ifdef PROFILE
238
257
CFLAGS+= $(PROFILE)
239
258
LDFLAGS+= $(PROFILE)
240
259
endif
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
0 commit comments