7
7
#
8
8
#
9
9
# 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 $
11
11
#
12
12
# 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
16
17
# 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
+ #
18
25
#
19
- # If you change any of these defines you probably have to
26
+ # If you change any of these defines you probably have to
20
27
# 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
22
29
# be crafty and check what files really depend on them and just remake
23
30
# 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).
28
35
#
29
36
#-------------------------------------------------------------------------
30
37
38
45
# of the port.
39
46
40
47
# The name of the port. Valid choices are:
48
+ # aix IBM on AIX 3.2.5
41
49
# 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
42
53
# hpux HP PA-RISC on HP-UX 9.0
43
54
# 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
47
56
# linux Intel x86 on Linux 1.2 and Linux ELF
48
57
# (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
55
61
# 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
58
63
#
59
64
# Note that portname is defined here to be UNDEFINED to remind you
60
65
# to change it in Makefile.custom.
@@ -94,7 +99,6 @@ LIBDIR= $(POSTGRESDIR)/lib
94
99
#
95
100
IPCS=@ipcs@
96
101
IPCRM=@ipcrm@
97
- #IPCSDIR= /usr/bin
98
102
99
103
# Where the man pages (suitable for use with "man") get installed.
100
104
POSTMANDIR= $(POSTGRESDIR)/man
@@ -105,9 +109,6 @@ POSTDOCDIR= $(POSTGRESDIR)/doc
105
109
# Where the header files necessary to build frontend programs get installed.
106
110
HEADERDIR= $(POSTGRESDIR)/include
107
111
108
- # The port to run the postmaster on
109
- POSTPORT= 5432
110
-
111
112
# NAMEDATALEN is the max length for system identifiers (e.g. table names,
112
113
# attribute names, function names, etc.)
113
114
#
@@ -133,24 +134,17 @@ OIDNAMELEN= 36
133
134
# (that is, prepend '#', don't set it to "0" or "no").
134
135
135
136
# 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
139
137
@HAVECXX@
140
138
141
139
# Commenting out CASSERT will make things go a LOT faster, but you will
142
140
# also loose a lot of useful error-checking.
143
- # NAT: autoconf doesn't deal with CASSERT: this is a user choice.
144
141
CASSERT= true
145
142
146
143
# Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to
147
144
# 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?).
150
145
ENFORCE_ALIGNMENT= true
151
146
152
147
# Comment out PROFILE to generate a profile version of the binaries
153
- # NAT: autoconf doesn't deal with PROFILE: this is a user choice.
154
148
#PROFILE= -p -non_shared
155
149
156
150
# About the use of readline in psql:
@@ -161,27 +155,27 @@ ENFORCE_ALIGNMENT= true
161
155
# and READLINE_LIBDIR to reflect the location of the readline and history
162
156
# headers and libraries.
163
157
#
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.
166
158
@USE_READLINE@
167
159
168
160
# directories for the readline and history libraries.
169
- # [automagically taken care of by autoconf?]
170
161
#READLINE_INC= -I/home/tools/include
171
162
#READLINE_LIB= -L/home/tools/lib -lreadline
172
163
173
164
# use the following if your readline has a separate history lib
174
165
#HISTORY_INC= -I/home/tools/include -I/home/tools/include/readline
175
166
#HISTORY_LIB= -L/home/tools/lib -lhistory
176
167
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
+
177
173
# If you plan to use Kerberos for authentication...
178
174
#
179
175
# Comment out KRBVERS if you do not use Kerberos.
180
176
# Set KRBVERS to "4" for Kerberos v4, "5" for Kerberos v5.
181
177
# XXX Edit the default Kerberos variables below!
182
178
#
183
- # NAT: I don't know how to deal with kerberos in autoconf.
184
-
185
179
#KRBVERS= 5
186
180
187
181
# Globally pass Kerberos file locations.
@@ -217,7 +211,6 @@ endif
217
211
# USE_TCL= true
218
212
# customize these to your site's needs
219
213
#
220
- # NAT: I don't know how to deal with TCL in autoconf.
221
214
TCL_INCDIR= /home/tools/include
222
215
TCL_LIBDIR= /home/tools/lib
223
216
TCL_LIB= -ltcl7.5
@@ -292,8 +285,6 @@ endif
292
285
#
293
286
# AR
294
287
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 ;-)
297
288
ifneq (,$(findstring /$(PORTNAME)/, /BSD44_derived/bsdi/sparc/))
298
289
AROPT = cq
299
290
else
@@ -311,21 +302,16 @@ DLSUFFIX= .so
311
302
#
312
303
# CC
313
304
#
314
- # NAT: autoconf tests for CC
315
305
CC= @CC@
316
306
317
307
#
318
308
# LEX
319
309
#
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.
322
310
LEX= @LEX@
323
311
LD_ADD_BE = @LEXLIB@
324
312
325
313
# SHARED LIBRARIES
326
314
#
327
- # NAT: I am unsure how to write an autoconf test for shared library
328
- # NAT: flags and rules.
329
315
CFLAGS_SL= -fpic -DPIC
330
316
331
317
%.so: %.o
@@ -681,6 +667,11 @@ endif
681
667
682
668
# This goes here so that customization in Makefile.custom is effective
683
669
##############################################################################
670
+
671
+ ifneq ($(CUSTOM_INSTALL),)
672
+ INSTALL= $(CUSTOM_INSTALL)
673
+ endif
674
+
684
675
#
685
676
# Flags for CC and LD.
686
677
@@ -708,14 +699,18 @@ endif
708
699
# Common values for COPT are: -g for debuggable binaries, -m486 if you are
709
700
# using a i486 or better.
710
701
702
+ ifneq ($(CUSTOM_CC),)
703
+ CC= $(CUSTOM_CC)
704
+ endif
705
+
711
706
ifneq ($(CUSTOM_COPT),)
712
- COPT= $(CUSTOM_COPT)
707
+ COPT= $(CUSTOM_COPT)
713
708
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
719
714
endif
720
715
721
716
0 commit comments