|
| 1 | +#------------------------------------------------------------------------- |
| 2 | +# |
| 3 | +# Makefile.global-- |
| 4 | +# global configuration for the Makefiles |
| 5 | +# |
| 6 | +# Copyright (c) 1994, Regents of the University of California |
| 7 | +# |
| 8 | +# |
| 9 | +# IDENTIFICATION |
| 10 | +# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.1.1.1 1996/07/09 06:21:07 scrappy Exp $ |
| 11 | +# |
| 12 | +# NOTES |
| 13 | +# This is seen by any Makefiles that include mk/postgres.mk. To |
| 14 | +# override the default setting, create a Makefile.custom in this |
| 15 | +# directory and put your defines there. (Makefile.custom is included |
| 16 | +# at the end of this file.) |
| 17 | +# |
| 18 | +# If you change any of these defines you probably have to |
| 19 | +# gmake clean; gmake |
| 20 | +# since no dependecies are created for these. (of course you can |
| 21 | +# be crafty and check what files really depend on them and just remake |
| 22 | +# those). |
| 23 | +# |
| 24 | +#------------------------------------------------------------------------- |
| 25 | + |
| 26 | + |
| 27 | +############################################################################## |
| 28 | +# |
| 29 | +# CONFIGURATION SECTION |
| 30 | +# |
| 31 | +# Following are settings pertaining to the postgres build and |
| 32 | +# installation. The most important one is obviously the name |
| 33 | +# of the port. |
| 34 | + |
| 35 | +# The name of the port. Valid choices are: |
| 36 | +# alpha - DEC Alpha AXP on OSF/1 2.0 |
| 37 | +# hpux - HP PA-RISC on HP-UX 9.0 |
| 38 | +# sparc_solaris - SUN SPARC on Solaris 2.4 |
| 39 | +# sparc - SUN SPARC on SunOS 4.1.3 |
| 40 | +# ultrix4 - DEC MIPS on Ultrix 4.4 |
| 41 | +# linux - Intel x86 on Linux 1.2 and Linux ELF |
| 42 | +# (For non-ELF Linux, you need to comment out |
| 43 | +# "LINUX_ELF=1" in src/mk/port/postgres.mk.linux) |
| 44 | +# BSD44_derived - OSs derived from 4.4-lite BSD (NetBSD, FreeBSD) |
| 45 | +# bsdi - BSD/OS 2.0 and 2.01 |
| 46 | +# aix - IBM on AIX 3.2.5 |
| 47 | +# irix5 - SGI MIPS on IRIX 5.3 |
| 48 | +# Some hooks are provided for |
| 49 | +# svr4 - Intel x86 on Intel SVR4 |
| 50 | +# next - Motorola MC68K or Intel x86 on NeXTSTEP 3.2 |
| 51 | +# but these are guaranteed not to work as of yet. |
| 52 | +# |
| 53 | +# XXX Note that you MUST set PORTNAME here (or on the command line) so |
| 54 | +# that port-dependent variables are correctly set within this file. |
| 55 | +# Makefile.custom does not take effect (for ifeq purposes) |
| 56 | +# until after this file is processed! |
| 57 | +# make sure that you have no whitespaces after the PORTNAME setting |
| 58 | +# or the makefiles can get confused |
| 59 | +PORTNAME= alpha |
| 60 | + |
| 61 | +# POSTGRESLOGIN is the login name of the user who gets special |
| 62 | +# privileges within the database. By default it is "postgres", but |
| 63 | +# you can change it to any existing login name (such as your own |
| 64 | +# login if you are compiling a private version or don't have root |
| 65 | +# access). |
| 66 | +POSTGRESLOGIN= postgres |
| 67 | + |
| 68 | +# For convenience, POSTGRESDIR is where DATADIR, BINDIR, and LIBDIR |
| 69 | +# and other target destinations are rooted. Of course, each of these is |
| 70 | +# changable separately. |
| 71 | +POSTGRESDIR= /private/postgres95 |
| 72 | + |
| 73 | +# SRCDIR specifies where the source files are. |
| 74 | +SRCDIR= $(POSTGRESDIR)/src |
| 75 | + |
| 76 | +# DATADIR specifies where the postmaster expects to find its database. |
| 77 | +# This may be overridden by command line options or the PGDATA environment |
| 78 | +# variable. |
| 79 | +DATADIR= $(POSTGRESDIR)/data |
| 80 | + |
| 81 | +# Where the postgres executables live (changeable by just putting them |
| 82 | +# somewhere else and putting that directory in your shell PATH) |
| 83 | +BINDIR= $(POSTGRESDIR)/bin |
| 84 | + |
| 85 | +# Where libpq.a gets installed. You must put it where your loader will |
| 86 | +# look for it if you wish to use the -lpq convention. Otherwise you |
| 87 | +# can just put the absolute pathname to the library at the end of your |
| 88 | +# command line. |
| 89 | +LIBDIR= $(POSTGRESDIR)/lib |
| 90 | + |
| 91 | +# This is the directory where IPC utilities ipcs and ipcrm are located |
| 92 | +# |
| 93 | +IPCSDIR= /usr/bin |
| 94 | + |
| 95 | +# Where the man pages (suitable for use with "man") get installed. |
| 96 | +POSTMANDIR= $(POSTGRESDIR)/man |
| 97 | + |
| 98 | +# Where the formatted documents (e.g., the reference manual) get installed. |
| 99 | +POSTDOCDIR= $(POSTGRESDIR)/doc |
| 100 | + |
| 101 | +# Where the header files necessary to build frontend programs get installed. |
| 102 | +HEADERDIR= $(POSTGRESDIR)/include |
| 103 | + |
| 104 | +# NAMEDATALEN is the max length for system identifiers (e.g. table names, |
| 105 | +# attribute names, function names, etc.) |
| 106 | +# |
| 107 | +# These MUST be set here. DO NOT COMMENT THESE OUT |
| 108 | +# Setting these too high will result in excess space usage for system catalogs |
| 109 | +# Setting them too low will make the system unusable. |
| 110 | +# values between 16 and 64 that are multiples of four are recommended. |
| 111 | +# |
| 112 | +# NOTE also that databases with different NAMEDATALEN's cannot interoperate! |
| 113 | +# |
| 114 | +NAMEDATALEN = 32 |
| 115 | +# OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid) |
| 116 | +OIDNAMELEN = 36 |
| 117 | + |
| 118 | +CFLAGS+= -DNAMEDATALEN=$(NAMEDATALEN) -DOIDNAMELEN=$(OIDNAMELEN) |
| 119 | + |
| 120 | +############################################################################## |
| 121 | +# |
| 122 | +# FEATURES |
| 123 | +# |
| 124 | +# To disable a feature, comment out the entire definition |
| 125 | +# (that is, prepend '#', don't set it to "0" or "no"). |
| 126 | + |
| 127 | +# Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to |
| 128 | +# multi-byte types to generate a bus error. |
| 129 | +ENFORCE_ALIGNMENT= true |
| 130 | + |
| 131 | +# Comment out CDEBUG to turn off debugging and sanity-checking. |
| 132 | +# |
| 133 | +# XXX on MIPS, use -g3 if you want to compile with -O |
| 134 | +CDEBUG= -g |
| 135 | + |
| 136 | +# turn this on if you prefer European style dates instead of American |
| 137 | +# style dates |
| 138 | +# EUROPEAN_DATES = 1 |
| 139 | + |
| 140 | +# Comment out PROFILE to disable profiling. |
| 141 | +# |
| 142 | +# XXX define on MIPS if you want to be able to use pixie. |
| 143 | +# note that this disables dynamic loading! |
| 144 | +#PROFILE= -p -non_shared |
| 145 | + |
| 146 | +# About the use of readline in psql: |
| 147 | +# psql does not require the GNU readline and history libraries. Hence, we |
| 148 | +# do not compile with them by default. However, there are hooks in the |
| 149 | +# program which supports the use of GNU readline and history. Should you |
| 150 | +# decide to use them, change USE_READLINE to true and change READLINE_INCDIR |
| 151 | +# and READLINE_LIBDIR to reflect the location of the readline and histroy |
| 152 | +# headers and libraries. |
| 153 | +# |
| 154 | +#USE_READLINE= true |
| 155 | + |
| 156 | +# directories for the readline and history libraries. |
| 157 | +READLINE_INCDIR= /usr/local/include |
| 158 | +HISTORY_INCDIR= /usr/local/include |
| 159 | +READLINE_LIBDIR= /usr/local/lib |
| 160 | +HISTORY_LIBDIR= /usr/local/lib |
| 161 | + |
| 162 | +# If you do not plan to use Host based authentication, |
| 163 | +# comment out the following line |
| 164 | +HBA = 1 |
| 165 | + |
| 166 | +ifdef HBA |
| 167 | +HBAFLAGS= -DHBA |
| 168 | +endif |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | +# If you plan to use Kerberos for authentication... |
| 173 | +# |
| 174 | +# Comment out KRBVERS if you do not use Kerberos. |
| 175 | +# Set KRBVERS to "4" for Kerberos v4, "5" for Kerberos v5. |
| 176 | +# XXX Edit the default Kerberos variables below! |
| 177 | +# |
| 178 | +#KRBVERS= 5 |
| 179 | + |
| 180 | + |
| 181 | +# Globally pass Kerberos file locations. |
| 182 | +# these are used in the postmaster and all libpq applications. |
| 183 | +# |
| 184 | +# Adjust KRBINCS and KRBLIBS to reflect where you have Kerberos |
| 185 | +# include files and libraries installed. |
| 186 | +# PG_KRB_SRVNAM is the name under which POSTGRES is registered in |
| 187 | +# the Kerberos database (KDC). |
| 188 | +# PG_KRB_SRVTAB is the location of the server's keytab file. |
| 189 | +# |
| 190 | +ifdef KRBVERS |
| 191 | +KRBINCS= -I/usr/athena/include |
| 192 | +KRBLIBS= -L/usr/athena/lib |
| 193 | +KRBFLAGS+= $(KRBINCS) -DPG_KRB_SRVNAM='"postgres_dbms"' |
| 194 | + ifeq ($(KRBVERS), 4) |
| 195 | +KRBFLAGS+= -DKRB4 |
| 196 | +KRBFLAGS+= -DPG_KRB_SRVTAB='"/etc/srvtab"' |
| 197 | +KRBLIBS+= -lkrb -ldes |
| 198 | + else |
| 199 | + ifeq ($(KRBVERS), 5) |
| 200 | +KRBFLAGS+= -DKRB5 |
| 201 | +KRBFLAGS+= -DPG_KRB_SRVTAB='"FILE:/krb5/srvtab.postgres"' |
| 202 | +KRBLIBS+= -lkrb5 -lcrypto -lcom_err -lisode |
| 203 | + endif |
| 204 | + endif |
| 205 | +endif |
| 206 | + |
| 207 | +# |
| 208 | +# location of Tcl/Tk headers and libraries |
| 209 | +# |
| 210 | +# Uncomment this to build the tcl utilities. |
| 211 | +USE_TCL= true |
| 212 | +# customize these to your site's needs |
| 213 | +# |
| 214 | +TCL_INCDIR= /usr/local/devel/tcl7.4/include |
| 215 | +TCL_LIBDIR= /usr/local/devel/tcl7.4/lib |
| 216 | +TCL_LIB = -ltcl7.4 |
| 217 | +TK_INCDIR= /usr/local/devel/tk4.0/include |
| 218 | +TK_LIBDIR= /usr/local/devel/tk4.0/lib |
| 219 | +TK_LIB = -ltk4.0 |
| 220 | + |
| 221 | +# |
| 222 | +# include port specific rules and variables. For instance: |
| 223 | +# |
| 224 | +# signal(2) handling - this is here because it affects some of |
| 225 | +# the frontend commands as well as the backend server. |
| 226 | +# |
| 227 | +# Ultrix and SunOS provide BSD signal(2) semantics by default. |
| 228 | +# |
| 229 | +# SVID2 and POSIX signal(2) semantics differ from BSD signal(2) |
| 230 | +# semantics. We can use the POSIX sigaction(2) on systems that |
| 231 | +# allow us to request restartable signals (SA_RESTART). |
| 232 | +# |
| 233 | +# Some systems don't allow restartable signals at all unless we |
| 234 | +# link to a special BSD library. |
| 235 | +# |
| 236 | +# We devoutly hope that there aren't any systems that provide |
| 237 | +# neither POSIX signals nor BSD signals. The alternative |
| 238 | +# is to do signal-handler reinstallation, which doesn't work well |
| 239 | +# at all. |
| 240 | +# |
| 241 | +-include $(MKDIR)/port/postgres.mk.$(PORTNAME) |
| 242 | + |
| 243 | +############################################################################## |
| 244 | +# |
| 245 | +# Flags for CC and LD. (depend on CDEBUG and PROFILE) |
| 246 | +# |
| 247 | + |
| 248 | +# Globally pass debugging/optimization/profiling flags based |
| 249 | +# on the options selected above. |
| 250 | +ifdef CDEBUG |
| 251 | + CFLAGS+= $(CDEBUG) |
| 252 | + LDFLAGS+= $(CDEBUG) |
| 253 | +else |
| 254 | + ifndef CFLAGS_OPT |
| 255 | + CFLAGS_OPT= -O |
| 256 | + endif |
| 257 | + CFLAGS+= $(CFLAGS_OPT) |
| 258 | +# |
| 259 | +# Uncommenting this will make things go a LOT faster, but you will |
| 260 | +# also lose a lot of useful error-checking. |
| 261 | +# |
| 262 | + CFLAGS+= -DNO_ASSERT_CHECKING |
| 263 | +endif |
| 264 | + |
| 265 | +ifdef PROFILE |
| 266 | +CFLAGS+= $(PROFILE) |
| 267 | +LDFLAGS+= $(PROFILE) |
| 268 | +endif |
| 269 | + |
| 270 | +# Globally pass PORTNAME |
| 271 | +CFLAGS+= -DPORTNAME_$(PORTNAME) |
| 272 | + |
| 273 | +# Globally pass the default TCP port for postmaster(1). |
| 274 | +CFLAGS+= -DPOSTPORT='"5432"' |
| 275 | + |
| 276 | +# include flags from mk/port/postgres.mk.$(PORTNAME) |
| 277 | +CFLAGS+= $(CFLAGS_BE) |
| 278 | +LDADD+= $(LDADD_BE) |
| 279 | +LDFLAGS+= $(LDFLAGS_BE) |
| 280 | + |
| 281 | + |
| 282 | +############################################################################## |
| 283 | +# |
| 284 | +# Miscellaneous configuration |
| 285 | +# |
| 286 | + |
| 287 | +# This is the time, in seconds, at which a given backend server |
| 288 | +# will wait on a lock before deciding to abort the transaction |
| 289 | +# (this is what we do in lieu of deadlock detection). |
| 290 | +# |
| 291 | +# Low numbers are not recommended as they will tend to cause |
| 292 | +# false aborts if many transactions are long-lived. |
| 293 | +CFLAGS+= -DDEADLOCK_TIMEOUT=60 |
| 294 | + |
| 295 | +srcdir= $(SRCDIR) |
| 296 | +includedir= $(HEADERDIR) |
| 297 | +objdir= obj |
| 298 | + |
| 299 | + |
| 300 | +############################################################################## |
| 301 | +# |
| 302 | +# Customization. |
| 303 | +# |
| 304 | +-include $(MKDIR)/../Makefile.custom |
| 305 | + |
| 306 | + |
0 commit comments