Makefile.global.in currently should reflect what Makefile.global
in v6.0 does...
This commit is contained in:
parent
83267ffa4f
commit
ef239de03f
@ -7,14 +7,21 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.1 1997/01/23 22:50:10 scrappy Exp $
|
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.2 1997/01/23 23:48:08 scrappy Exp $
|
||||||
#
|
#
|
||||||
# NOTES
|
# NOTES
|
||||||
# Essentially all Postgres make files include this file and use the
|
# Essentially all Postgres make files include this file and use the
|
||||||
# variables it sets. To
|
# variables it sets.
|
||||||
# override the default setting, create a Makefile.custom in this
|
#
|
||||||
|
# To override the default setting, create a Makefile.custom in this
|
||||||
# directory and put your defines there. (Makefile.custom is included
|
# directory and put your defines there. (Makefile.custom is included
|
||||||
# near the end of this file.)
|
# near the end of this file). Sometimes, a variable gets set in
|
||||||
|
# Makefile.global after Makefile.custom has been included, so you can't
|
||||||
|
# simply set that variable in Makefile.custom. In those cases, there is
|
||||||
|
# often another variable (like CUSTOM_COPT) that you can set in
|
||||||
|
# Makefile.custom that influences the later setting of the true variable
|
||||||
|
# of interest (like CFLAGS) by Makefile.global.
|
||||||
|
#
|
||||||
#
|
#
|
||||||
# If you change any of these defines you probably have to
|
# If you change any of these defines you probably have to
|
||||||
# make clean; make
|
# make clean; make
|
||||||
@ -38,23 +45,21 @@
|
|||||||
# of the port.
|
# of the port.
|
||||||
|
|
||||||
# The name of the port. Valid choices are:
|
# The name of the port. Valid choices are:
|
||||||
|
# aix IBM on AIX 3.2.5
|
||||||
# alpha DEC Alpha AXP on OSF/1 2.0
|
# alpha DEC Alpha AXP on OSF/1 2.0
|
||||||
# hpux HP PA-RISC on HP-UX 9.0
|
|
||||||
# i386_solaris i386 Solaris
|
|
||||||
# sparc_solaris SUN SPARC on Solaris 2.4
|
|
||||||
# sparc SUN SPARC on SunOS 4.1.3
|
|
||||||
# ultrix4 DEC MIPS on Ultrix 4.4
|
|
||||||
# linux Intel x86 on Linux 1.2 and Linux ELF
|
|
||||||
# (For non-ELF Linux, see LINUX_ELF below).
|
|
||||||
# BSD44_derived OSs derived from 4.4-lite BSD (NetBSD, FreeBSD)
|
# BSD44_derived OSs derived from 4.4-lite BSD (NetBSD, FreeBSD)
|
||||||
# bsdi BSD/OS 2.0, 2.01, 2.1
|
# bsdi BSD/OS 2.0, 2.01, 2.1
|
||||||
# aix IBM on AIX 3.2.5
|
|
||||||
# irix5 SGI MIPS on IRIX 5.3
|
|
||||||
# dgux DG/UX 5.4R3.10
|
# dgux DG/UX 5.4R3.10
|
||||||
# Some hooks are provided for
|
# hpux HP PA-RISC on HP-UX 9.0
|
||||||
|
# i386_solaris i386 Solaris
|
||||||
|
# irix5 SGI MIPS on IRIX 5.3
|
||||||
|
# linux Intel x86 on Linux 1.2 and Linux ELF
|
||||||
|
# (For non-ELF Linux, see LINUX_ELF below).
|
||||||
|
# nextstep Motorola MC68K or Intel x86 on NeXTSTEP 3.2 or greater
|
||||||
|
# sparc_solaris SUN SPARC on Solaris 2.4
|
||||||
|
# sunos4 SUN SPARC on SunOS 4.1.3
|
||||||
# svr4 Intel x86 on Intel SVR4
|
# svr4 Intel x86 on Intel SVR4
|
||||||
# next Motorola MC68K or Intel x86 on NeXTSTEP 3.2
|
# ultrix4 DEC MIPS on Ultrix 4.4
|
||||||
# but these are guaranteed not to work as of yet.
|
|
||||||
#
|
#
|
||||||
# Note that portname is defined here to be UNDEFINED to remind you
|
# Note that portname is defined here to be UNDEFINED to remind you
|
||||||
# to change it in Makefile.custom.
|
# to change it in Makefile.custom.
|
||||||
@ -94,7 +99,6 @@ LIBDIR= $(POSTGRESDIR)/lib
|
|||||||
#
|
#
|
||||||
IPCS=@ipcs@
|
IPCS=@ipcs@
|
||||||
IPCRM=@ipcrm@
|
IPCRM=@ipcrm@
|
||||||
#IPCSDIR= /usr/bin
|
|
||||||
|
|
||||||
# Where the man pages (suitable for use with "man") get installed.
|
# Where the man pages (suitable for use with "man") get installed.
|
||||||
POSTMANDIR= $(POSTGRESDIR)/man
|
POSTMANDIR= $(POSTGRESDIR)/man
|
||||||
@ -105,9 +109,6 @@ POSTDOCDIR= $(POSTGRESDIR)/doc
|
|||||||
# Where the header files necessary to build frontend programs get installed.
|
# Where the header files necessary to build frontend programs get installed.
|
||||||
HEADERDIR= $(POSTGRESDIR)/include
|
HEADERDIR= $(POSTGRESDIR)/include
|
||||||
|
|
||||||
# The port to run the postmaster on
|
|
||||||
POSTPORT= 5432
|
|
||||||
|
|
||||||
# NAMEDATALEN is the max length for system identifiers (e.g. table names,
|
# NAMEDATALEN is the max length for system identifiers (e.g. table names,
|
||||||
# attribute names, function names, etc.)
|
# attribute names, function names, etc.)
|
||||||
#
|
#
|
||||||
@ -133,24 +134,17 @@ OIDNAMELEN= 36
|
|||||||
# (that is, prepend '#', don't set it to "0" or "no").
|
# (that is, prepend '#', don't set it to "0" or "no").
|
||||||
|
|
||||||
# Compile libpq++
|
# Compile libpq++
|
||||||
# NAT: autoconf can check if we have a cplusplus compiler and will
|
|
||||||
# NAT: define HAVE_Cplusplus for us
|
|
||||||
#HAVE_Cplusplus= true
|
|
||||||
@HAVECXX@
|
@HAVECXX@
|
||||||
|
|
||||||
# Commenting out CASSERT will make things go a LOT faster, but you will
|
# Commenting out CASSERT will make things go a LOT faster, but you will
|
||||||
# also loose a lot of useful error-checking.
|
# also loose a lot of useful error-checking.
|
||||||
# NAT: autoconf doesn't deal with CASSERT: this is a user choice.
|
|
||||||
CASSERT= true
|
CASSERT= true
|
||||||
|
|
||||||
# Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to
|
# Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to
|
||||||
# multi-byte types to generate a bus error.
|
# multi-byte types to generate a bus error.
|
||||||
# NAT: autoconf doesn't deal with ENFORCE_ALIGNMENT. Should it test for
|
|
||||||
# NAT: it and only set it if it has to?).
|
|
||||||
ENFORCE_ALIGNMENT= true
|
ENFORCE_ALIGNMENT= true
|
||||||
|
|
||||||
# Comment out PROFILE to generate a profile version of the binaries
|
# Comment out PROFILE to generate a profile version of the binaries
|
||||||
# NAT: autoconf doesn't deal with PROFILE: this is a user choice.
|
|
||||||
#PROFILE= -p -non_shared
|
#PROFILE= -p -non_shared
|
||||||
|
|
||||||
# About the use of readline in psql:
|
# About the use of readline in psql:
|
||||||
@ -161,12 +155,9 @@ ENFORCE_ALIGNMENT= true
|
|||||||
# and READLINE_LIBDIR to reflect the location of the readline and history
|
# and READLINE_LIBDIR to reflect the location of the readline and history
|
||||||
# headers and libraries.
|
# headers and libraries.
|
||||||
#
|
#
|
||||||
# NAT: autoconf will check for libreadline and will define USE_READLINE
|
|
||||||
# NAT: appropriately, and hopefully take care of the inc and lib too.
|
|
||||||
@USE_READLINE@
|
@USE_READLINE@
|
||||||
|
|
||||||
# directories for the readline and history libraries.
|
# directories for the readline and history libraries.
|
||||||
# [automagically taken care of by autoconf?]
|
|
||||||
#READLINE_INC= -I/home/tools/include
|
#READLINE_INC= -I/home/tools/include
|
||||||
#READLINE_LIB= -L/home/tools/lib -lreadline
|
#READLINE_LIB= -L/home/tools/lib -lreadline
|
||||||
|
|
||||||
@ -174,14 +165,17 @@ ENFORCE_ALIGNMENT= true
|
|||||||
#HISTORY_INC= -I/home/tools/include -I/home/tools/include/readline
|
#HISTORY_INC= -I/home/tools/include -I/home/tools/include/readline
|
||||||
#HISTORY_LIB= -L/home/tools/lib -lhistory
|
#HISTORY_LIB= -L/home/tools/lib -lhistory
|
||||||
|
|
||||||
|
# curses is required by readline. Ncurses has obsoleted curses, and may
|
||||||
|
# in fact be what goes by the name "curses" on this system.
|
||||||
|
|
||||||
|
CURSES_LIB= -L/home/tools/lib -lcurses
|
||||||
|
|
||||||
# If you plan to use Kerberos for authentication...
|
# If you plan to use Kerberos for authentication...
|
||||||
#
|
#
|
||||||
# Comment out KRBVERS if you do not use Kerberos.
|
# Comment out KRBVERS if you do not use Kerberos.
|
||||||
# Set KRBVERS to "4" for Kerberos v4, "5" for Kerberos v5.
|
# Set KRBVERS to "4" for Kerberos v4, "5" for Kerberos v5.
|
||||||
# XXX Edit the default Kerberos variables below!
|
# XXX Edit the default Kerberos variables below!
|
||||||
#
|
#
|
||||||
# NAT: I don't know how to deal with kerberos in autoconf.
|
|
||||||
|
|
||||||
#KRBVERS= 5
|
#KRBVERS= 5
|
||||||
|
|
||||||
# Globally pass Kerberos file locations.
|
# Globally pass Kerberos file locations.
|
||||||
@ -217,7 +211,6 @@ endif
|
|||||||
# USE_TCL= true
|
# USE_TCL= true
|
||||||
# customize these to your site's needs
|
# customize these to your site's needs
|
||||||
#
|
#
|
||||||
# NAT: I don't know how to deal with TCL in autoconf.
|
|
||||||
TCL_INCDIR= /home/tools/include
|
TCL_INCDIR= /home/tools/include
|
||||||
TCL_LIBDIR= /home/tools/lib
|
TCL_LIBDIR= /home/tools/lib
|
||||||
TCL_LIB= -ltcl7.5
|
TCL_LIB= -ltcl7.5
|
||||||
@ -292,8 +285,6 @@ endif
|
|||||||
#
|
#
|
||||||
# AR
|
# AR
|
||||||
|
|
||||||
# NAT: I am unsure how to write a test for AROPT=cq vs AROPT=crs, because
|
|
||||||
# NAT: I don't know what it does ;-)
|
|
||||||
ifneq (,$(findstring /$(PORTNAME)/, /BSD44_derived/bsdi/sparc/))
|
ifneq (,$(findstring /$(PORTNAME)/, /BSD44_derived/bsdi/sparc/))
|
||||||
AROPT = cq
|
AROPT = cq
|
||||||
else
|
else
|
||||||
@ -311,21 +302,16 @@ DLSUFFIX= .so
|
|||||||
#
|
#
|
||||||
# CC
|
# CC
|
||||||
#
|
#
|
||||||
# NAT: autoconf tests for CC
|
|
||||||
CC= @CC@
|
CC= @CC@
|
||||||
|
|
||||||
#
|
#
|
||||||
# LEX
|
# LEX
|
||||||
#
|
#
|
||||||
# NAT: autoconf tests for LEX and LEXLIB. I've removed the -L and
|
|
||||||
# NAT: am unsure how to get it back with autoconf.
|
|
||||||
LEX= @LEX@
|
LEX= @LEX@
|
||||||
LD_ADD_BE = @LEXLIB@
|
LD_ADD_BE = @LEXLIB@
|
||||||
|
|
||||||
# SHARED LIBRARIES
|
# SHARED LIBRARIES
|
||||||
#
|
#
|
||||||
# NAT: I am unsure how to write an autoconf test for shared library
|
|
||||||
# NAT: flags and rules.
|
|
||||||
CFLAGS_SL= -fpic -DPIC
|
CFLAGS_SL= -fpic -DPIC
|
||||||
|
|
||||||
%.so: %.o
|
%.so: %.o
|
||||||
@ -681,6 +667,11 @@ endif
|
|||||||
|
|
||||||
# This goes here so that customization in Makefile.custom is effective
|
# This goes here so that customization in Makefile.custom is effective
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifneq ($(CUSTOM_INSTALL),)
|
||||||
|
INSTALL= $(CUSTOM_INSTALL)
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Flags for CC and LD.
|
# Flags for CC and LD.
|
||||||
|
|
||||||
@ -708,14 +699,18 @@ endif
|
|||||||
# Common values for COPT are: -g for debuggable binaries, -m486 if you are
|
# Common values for COPT are: -g for debuggable binaries, -m486 if you are
|
||||||
# using a i486 or better.
|
# using a i486 or better.
|
||||||
|
|
||||||
ifneq ($(CUSTOM_COPT),)
|
ifneq ($(CUSTOM_CC),)
|
||||||
COPT= $(CUSTOM_COPT)
|
CC= $(CUSTOM_CC)
|
||||||
else
|
|
||||||
ifeq ($(CC), gcc)
|
|
||||||
COPT= -O2 -Werror
|
|
||||||
else
|
|
||||||
COPT= -O
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(CUSTOM_COPT),)
|
||||||
|
COPT= $(CUSTOM_COPT)
|
||||||
|
else
|
||||||
|
ifeq ($(CC), gcc)
|
||||||
|
COPT= -O2 -Werror
|
||||||
|
else
|
||||||
|
COPT= -O
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user