Skip to content

Commit ef239de

Browse files
committed
Makefile.global.in currently should reflect what Makefile.global
in v6.0 does...
1 parent 83267ff commit ef239de

File tree

1 file changed

+47
-52
lines changed

1 file changed

+47
-52
lines changed

src/Makefile.global.in

Lines changed: 47 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,31 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.1 1997/01/23 22:50:10 scrappy Exp $
10+
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.2 1997/01/23 23:48:08 scrappy Exp $
1111
#
1212
# NOTES
13-
# Essentially all Postgres make files include this file and use the
14-
# variables it sets. To
15-
# override the default setting, create a Makefile.custom in this
13+
# Essentially all Postgres make files include this file and use the
14+
# variables it sets.
15+
#
16+
# To override the default setting, create a Makefile.custom in this
1617
# directory and put your defines there. (Makefile.custom is included
17-
# near the end of this file.)
18+
# near the end of this file). Sometimes, a variable gets set in
19+
# Makefile.global after Makefile.custom has been included, so you can't
20+
# simply set that variable in Makefile.custom. In those cases, there is
21+
# often another variable (like CUSTOM_COPT) that you can set in
22+
# Makefile.custom that influences the later setting of the true variable
23+
# of interest (like CFLAGS) by Makefile.global.
24+
#
1825
#
19-
# If you change any of these defines you probably have to
26+
# If you change any of these defines you probably have to
2027
# make clean; make
21-
# since no dependencies are created for these. (of course you can
28+
# since no dependencies are created for these. (of course you can
2229
# be crafty and check what files really depend on them and just remake
2330
# those).
24-
#
25-
# Before including this file, you must set the SRCDIR variable to the
26-
# path of the top of the Postgres source tree (the directory that
27-
# contains this file).
31+
#
32+
# Before including this file, you must set the SRCDIR variable to the
33+
# path of the top of the Postgres source tree (the directory that
34+
# contains this file).
2835
#
2936
#-------------------------------------------------------------------------
3037

@@ -38,23 +45,21 @@
3845
# of the port.
3946

4047
# The name of the port. Valid choices are:
48+
# aix IBM on AIX 3.2.5
4149
# 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
4253
# hpux HP PA-RISC on HP-UX 9.0
4354
# i386_solaris i386 Solaris
44-
# sparc_solaris SUN SPARC on Solaris 2.4
45-
# sparc SUN SPARC on SunOS 4.1.3
46-
# ultrix4 DEC MIPS on Ultrix 4.4
55+
# irix5 SGI MIPS on IRIX 5.3
4756
# linux Intel x86 on Linux 1.2 and Linux ELF
4857
# (For non-ELF Linux, see LINUX_ELF below).
49-
# BSD44_derived OSs derived from 4.4-lite BSD (NetBSD, FreeBSD)
50-
# bsdi BSD/OS 2.0, 2.01, 2.1
51-
# aix IBM on AIX 3.2.5
52-
# irix5 SGI MIPS on IRIX 5.3
53-
# dgux DG/UX 5.4R3.10
54-
# Some hooks are provided for
58+
# nextstep Motorola MC68K or Intel x86 on NeXTSTEP 3.2 or greater
59+
# sparc_solaris SUN SPARC on Solaris 2.4
60+
# sunos4 SUN SPARC on SunOS 4.1.3
5561
# svr4 Intel x86 on Intel SVR4
56-
# next Motorola MC68K or Intel x86 on NeXTSTEP 3.2
57-
# but these are guaranteed not to work as of yet.
62+
# ultrix4 DEC MIPS on Ultrix 4.4
5863
#
5964
# Note that portname is defined here to be UNDEFINED to remind you
6065
# to change it in Makefile.custom.
@@ -94,7 +99,6 @@ LIBDIR= $(POSTGRESDIR)/lib
9499
#
95100
IPCS=@ipcs@
96101
IPCRM=@ipcrm@
97-
#IPCSDIR= /usr/bin
98102

99103
# Where the man pages (suitable for use with "man") get installed.
100104
POSTMANDIR= $(POSTGRESDIR)/man
@@ -105,9 +109,6 @@ POSTDOCDIR= $(POSTGRESDIR)/doc
105109
# Where the header files necessary to build frontend programs get installed.
106110
HEADERDIR= $(POSTGRESDIR)/include
107111

108-
# The port to run the postmaster on
109-
POSTPORT= 5432
110-
111112
# NAMEDATALEN is the max length for system identifiers (e.g. table names,
112113
# attribute names, function names, etc.)
113114
#
@@ -133,24 +134,17 @@ OIDNAMELEN= 36
133134
# (that is, prepend '#', don't set it to "0" or "no").
134135

135136
# Compile libpq++
136-
# NAT: autoconf can check if we have a cplusplus compiler and will
137-
# NAT: define HAVE_Cplusplus for us
138-
#HAVE_Cplusplus= true
139137
@HAVECXX@
140138

141139
# Commenting out CASSERT will make things go a LOT faster, but you will
142140
# also loose a lot of useful error-checking.
143-
# NAT: autoconf doesn't deal with CASSERT: this is a user choice.
144141
CASSERT= true
145142

146143
# Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to
147144
# multi-byte types to generate a bus error.
148-
# NAT: autoconf doesn't deal with ENFORCE_ALIGNMENT. Should it test for
149-
# NAT: it and only set it if it has to?).
150145
ENFORCE_ALIGNMENT= true
151146

152147
# Comment out PROFILE to generate a profile version of the binaries
153-
# NAT: autoconf doesn't deal with PROFILE: this is a user choice.
154148
#PROFILE= -p -non_shared
155149

156150
# About the use of readline in psql:
@@ -161,27 +155,27 @@ ENFORCE_ALIGNMENT= true
161155
# and READLINE_LIBDIR to reflect the location of the readline and history
162156
# headers and libraries.
163157
#
164-
# NAT: autoconf will check for libreadline and will define USE_READLINE
165-
# NAT: appropriately, and hopefully take care of the inc and lib too.
166158
@USE_READLINE@
167159

168160
# directories for the readline and history libraries.
169-
# [automagically taken care of by autoconf?]
170161
#READLINE_INC= -I/home/tools/include
171162
#READLINE_LIB= -L/home/tools/lib -lreadline
172163

173164
# use the following if your readline has a separate history lib
174165
#HISTORY_INC= -I/home/tools/include -I/home/tools/include/readline
175166
#HISTORY_LIB= -L/home/tools/lib -lhistory
176167

168+
# curses is required by readline. Ncurses has obsoleted curses, and may
169+
# in fact be what goes by the name "curses" on this system.
170+
171+
CURSES_LIB= -L/home/tools/lib -lcurses
172+
177173
# If you plan to use Kerberos for authentication...
178174
#
179175
# Comment out KRBVERS if you do not use Kerberos.
180176
# Set KRBVERS to "4" for Kerberos v4, "5" for Kerberos v5.
181177
# XXX Edit the default Kerberos variables below!
182178
#
183-
# NAT: I don't know how to deal with kerberos in autoconf.
184-
185179
#KRBVERS= 5
186180

187181
# Globally pass Kerberos file locations.
@@ -217,7 +211,6 @@ endif
217211
# USE_TCL= true
218212
# customize these to your site's needs
219213
#
220-
# NAT: I don't know how to deal with TCL in autoconf.
221214
TCL_INCDIR= /home/tools/include
222215
TCL_LIBDIR= /home/tools/lib
223216
TCL_LIB= -ltcl7.5
@@ -292,8 +285,6 @@ endif
292285
#
293286
# AR
294287

295-
# NAT: I am unsure how to write a test for AROPT=cq vs AROPT=crs, because
296-
# NAT: I don't know what it does ;-)
297288
ifneq (,$(findstring /$(PORTNAME)/, /BSD44_derived/bsdi/sparc/))
298289
AROPT = cq
299290
else
@@ -311,21 +302,16 @@ DLSUFFIX= .so
311302
#
312303
# CC
313304
#
314-
# NAT: autoconf tests for CC
315305
CC= @CC@
316306

317307
#
318308
# LEX
319309
#
320-
# NAT: autoconf tests for LEX and LEXLIB. I've removed the -L and
321-
# NAT: am unsure how to get it back with autoconf.
322310
LEX= @LEX@
323311
LD_ADD_BE = @LEXLIB@
324312

325313
# SHARED LIBRARIES
326314
#
327-
# NAT: I am unsure how to write an autoconf test for shared library
328-
# NAT: flags and rules.
329315
CFLAGS_SL= -fpic -DPIC
330316

331317
%.so: %.o
@@ -681,6 +667,11 @@ endif
681667

682668
# This goes here so that customization in Makefile.custom is effective
683669
##############################################################################
670+
671+
ifneq ($(CUSTOM_INSTALL),)
672+
INSTALL= $(CUSTOM_INSTALL)
673+
endif
674+
684675
#
685676
# Flags for CC and LD.
686677

@@ -708,14 +699,18 @@ endif
708699
# Common values for COPT are: -g for debuggable binaries, -m486 if you are
709700
# using a i486 or better.
710701

702+
ifneq ($(CUSTOM_CC),)
703+
CC= $(CUSTOM_CC)
704+
endif
705+
711706
ifneq ($(CUSTOM_COPT),)
712-
COPT= $(CUSTOM_COPT)
707+
COPT= $(CUSTOM_COPT)
713708
else
714-
ifeq ($(CC), gcc)
715-
COPT= -O2 -Werror
716-
else
717-
COPT= -O
718-
endif
709+
ifeq ($(CC), gcc)
710+
COPT= -O2 -Werror
711+
else
712+
COPT= -O
713+
endif
719714
endif
720715

721716

0 commit comments

Comments
 (0)