mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
|I have moved things around so that things happen in the following order:
| | 1. Set default variables | 2. Include Makefile.custom to override defaults | 3. Set CFLAGS, etc. with variables | |This fixes the problem of Makefile.custom changes not taking effect. Submitted by: D'Arcy Cain
This commit is contained in:
parent
2db54b8e4f
commit
29a0fb84fc
@ -7,13 +7,13 @@
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.41 1996/10/21 06:56:57 bryanh Exp $
|
||||
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.42 1996/10/23 07:33:04 scrappy Exp $
|
||||
#
|
||||
# NOTES
|
||||
# This is seen by any Makefiles that include mk/postgres.mk. To
|
||||
# override the default setting, create a Makefile.custom in this
|
||||
# directory and put your defines there. (Makefile.custom is included
|
||||
# at the end of this file.)
|
||||
# near the end of this file.)
|
||||
#
|
||||
# If you change any of these defines you probably have to
|
||||
# gmake clean; gmake
|
||||
@ -53,10 +53,8 @@
|
||||
# next - Motorola MC68K or Intel x86 on NeXTSTEP 3.2
|
||||
# but these are guaranteed not to work as of yet.
|
||||
#
|
||||
# XXX Note that you MUST set PORTNAME here (or on the command line) so
|
||||
# that port-dependent variables are correctly set within this file.
|
||||
# Makefile.custom does not take effect (for ifeq purposes)
|
||||
# until after this file is processed!
|
||||
# Note that portname is defined here to be UNDEFINED to remind you
|
||||
# to change it in Makefile.custom.
|
||||
# make sure that you have no whitespaces after the PORTNAME setting
|
||||
# or the makefiles can get confused
|
||||
PORTNAME= UNDEFINED
|
||||
@ -217,6 +215,17 @@ X11_INCDIR = /usr/include
|
||||
X11_LIBDIR = /usr/lib
|
||||
X11_LIB = -lX11 -lsocket -lnsl
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Customization.
|
||||
#
|
||||
# This includes your local customizations if Makefile.custom exists
|
||||
# in the source directory. This file doesn't exist in the original
|
||||
# distribution so that it doesn't get overwritten when you upgrade.
|
||||
ifneq ($(wildcard $(MKDIR)/../Makefile.custom), )
|
||||
include $(MKDIR)/../Makefile.custom
|
||||
endif
|
||||
|
||||
# include port specific rules and variables. For instance:
|
||||
#
|
||||
# signal(2) handling - this is here because it affects some of
|
||||
@ -238,6 +247,17 @@ X11_LIB = -lX11 -lsocket -lnsl
|
||||
#
|
||||
-include $(MKDIR)/port/postgres.mk.$(PORTNAME)
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Miscellaneous configuration
|
||||
#
|
||||
|
||||
srcdir= $(SRCDIR)
|
||||
includedir= $(HEADERDIR)
|
||||
objdir= obj
|
||||
|
||||
|
||||
# This goes here so that customization in Makefile.custom is effective
|
||||
##############################################################################
|
||||
#
|
||||
# Flags for CC and LD. (depend on CDEBUG and PROFILE)
|
||||
@ -277,24 +297,3 @@ CFLAGS+= $(CFLAGS_BE)
|
||||
LDADD+= $(LDADD_BE)
|
||||
LDFLAGS+= $(LDFLAGS_BE)
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Miscellaneous configuration
|
||||
#
|
||||
|
||||
srcdir= $(SRCDIR)
|
||||
includedir= $(HEADERDIR)
|
||||
objdir= obj
|
||||
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Customization.
|
||||
#
|
||||
# This includes your local customizations if Makefile.custom exists
|
||||
# in the source directory. This file doesn't exist in the original
|
||||
# distribution so that it doesn't get overwritten when you upgrade.
|
||||
ifneq ($(wildcard $(MKDIR)/../Makefile.custom), )
|
||||
include $(MKDIR)/../Makefile.custom
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user