77#
88#
99# IDENTIFICATION
10- # $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.82 1997/01/05 21:16:54 bryanh Exp $
10+ # $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.83 1997/01/06 10:09:04 bryanh Exp $
1111#
1212# NOTES
1313# Essentially all Postgres make files include this file and use the
4545# of the port.
4646
4747# The name of the port. Valid choices are:
48+ # aix IBM on AIX 3.2.5
4849# alpha DEC Alpha AXP on OSF/1 2.0
50+ # BSD44_derived OSs derived from 4.4-lite BSD (NetBSD, FreeBSD)
51+ # bsdi BSD/OS 2.0, 2.01, 2.1
52+ # dgux DG/UX 5.4R3.10
4953# hpux HP PA-RISC on HP-UX 9.0
5054# i386_solaris i386 Solaris
51- # sparc_solaris SUN SPARC on Solaris 2.4
52- # sunos4 SUN SPARC on SunOS 4.1.3
53- # ultrix4 DEC MIPS on Ultrix 4.4
55+ # irix5 SGI MIPS on IRIX 5.3 or better
5456# linux Intel x86 on Linux 1.2 and Linux ELF
5557# (For non-ELF Linux, see LINUX_ELF below).
56- # BSD44_derived OSs derived from 4.4-lite BSD (NetBSD, FreeBSD)
57- # bsdi BSD/OS 2.0, 2.01, 2.1
58- # aix IBM on AIX 3.2.5
59- # irix5 SGI MIPS on IRIX 5.3
60- # dgux DG/UX 5.4R3.10
61- # Some hooks are provided for
62- # svr4 Intel x86 on Intel SVR4
6358# next Motorola MC68K or Intel x86 on NeXTSTEP 3.2
64- # but these are guaranteed not to work as of yet.
59+ # sparc_solaris SUN SPARC on Solaris 2.4
60+ # sunos4 SUN SPARC on SunOS 4.1.3
61+ # svr4 Intel x86 on Intel SVR4
62+ # ultrix4 DEC MIPS on Ultrix 4.4
6563#
6664# Note that portname is defined here to be UNDEFINED to remind you
6765# to change it in Makefile.custom.
@@ -110,9 +108,6 @@ POSTDOCDIR= $(POSTGRESDIR)/doc
110108# Where the header files necessary to build frontend programs get installed.
111109HEADERDIR= $(POSTGRESDIR)/include
112110
113- # The port to run the postmaster on
114- POSTPORT= 5432
115-
116111# NAMEDATALEN is the max length for system identifiers (e.g. table names,
117112# attribute names, function names, etc.)
118113#
@@ -159,11 +154,11 @@ ENFORCE_ALIGNMENT= true
159154# and READLINE_LIBDIR to reflect the location of the readline and history
160155# headers and libraries.
161156#
162- # USE_READLINE=true
157+ USE_READLINE=false
163158
164159# directories for the readline and history libraries.
165- READLINE_INC= -I/home/tools/include
166- READLINE_LIB= -L/home/tools/lib -lreadline
160+ # READLINE_INC= -I/home/tools/include
161+ # READLINE_LIB= -L/home/tools/lib -lreadline
167162
168163# use the following if your readline has a separate history lib
169164#HISTORY_INC= -I/home/tools/include -I/home/tools/include/readline
@@ -515,16 +510,16 @@ RANLIB= touch
515510
516511INSTALL= /usr/ucb/install
517512
518- #
519- # Random things that must be passed everywhere to enable
520- # everything to compile. :-/
521- #
522- # The extra -I flag is to scoop up extra BSD-emulating headers.
513+ #
514+ # Random things that must be passed everywhere to enable
515+ # everything to compile. :-/
516+ #
517+ # The extra -I flag is to scoop up extra BSD-emulating headers.
523518# This needs to be fixed. Things other than the backend should not be
524- # accessing headers in the backend directory.
525- CFLAGS_BE= -I$(SRCDIR)/backend/port/sparc_solaris
526- LDADD_BE= -lsocket -lnsl -ll -ldl
527- LD_ADD= -lsocket -lnsl
519+ # accessing headers in the backend directory.
520+ CFLAGS_BE= -I$(SRCDIR)/backend/port/sparc_solaris
521+ LDADD_BE= -lsocket -lnsl -ll -ldl
522+ LD_ADD= -lsocket -lnsl
528523
529524ifeq ($(CC), cc)
530525CFLAGS_SL= -K PIC
@@ -548,14 +543,18 @@ LDADD_BE= -ll
548543# RANLIB is not used on IRIX 5
549544RANLIB= touch
550545
551- INSTALL= /sbin/bsdinst
546+ #If you have GNU install, by all means set CUSTOM_INSTALL to that in
547+ #Makefile.custom. If you read the man page for /usr/bin/X11/bsdinst,
548+ #you will see it is not intended for end user use. It chowns the files
549+ #it installs to root.
550+ INSTALL= /usr/bin/X11/bsdinst
552551
553552INSTLOPTS= -m 444
554553INSTL_EXE_OPTS= -m 555
555554INSTL_LIB_OPTS= -m 664
556555
557556%.so: %.o
558- $(LD) -G -Bdynamic -o $@ $<
557+ $(LD) -G -Bdynamic -o $@ $< $(LD_ADD)
559558
560559DASH_N=''
561560BACKSLASH_C='\\\\c'
@@ -706,6 +705,11 @@ endif
706705
707706# This goes here so that customization in Makefile.custom is effective
708707##############################################################################
708+
709+ ifeq($(CUSTOM_INSTALL),)
710+ INSTALL= $(CUSTOM_INSTALL)
711+ endif
712+
709713#
710714# Flags for CC and LD.
711715