
About  config.mk.<port>:

Here is a sample config.mk.<port>.  

#
# This is the name of the port.  The sample is from a sparc
#

PORTNAME=	sparc

#
# This is the name of the port subdirectory (containing all the port-specific
# code).  It is in <tree>/src.  Users should not worry about this.
#

PORTDIR=	port/sparc

#
# This is a symbol for special linking directives so that "ld -A" (which
# is used by the dynamic loader) resolves symbols properly.  Users should
# not need to worry about this unless they are porting Postgres to a new
# machine.  This symbol is used only when linking the Postgres main
# program; general linking directives should go in LDFLAGS
#

PORTLDFLAGS=-Bstatic

#
# This symbol is passed to all compiles and links.  If the user wishes to
# compile Postgres with the optimizer enabled or with debugging turned on,
# the appropriate compiler directive should be put here.  Also, special
# directives like enabling math coprocessors should go here.  For example,
# use -f68881 on Sun 3's to enable the math coprocessor.
#
# (The default is to compile with the optimizer on and debugging state
# assertions turned off)
#



# 
# To enable debugging, change this line to
#
# GCFLAGS=-g
#
# This symbol is passed to all links.  It is different from PORTLDFLAGS in
# that it is used in ALL links.
#

LDFLAGS=	$(GCFLAGS)

#
# This symbol is passed to all compiles, but users should put any 
# directives in GCFLAGS.
#

CFLAGS=		$(GCFLAGS) \
		-I$(SD)/lib/H \
		-I$(SD)/lib/H/obsolete \
		-I$(OD)/lib/H \
		-I$(SD)/$(PORTDIR) \
		-DNO_ALLOCA -DNO_DMINUS -DMATH_H_EXTERNS

#
# This is the name of the file containing the list of the Postgres directories.
# Users in general should not worry about this.
#

DIRS=		./dirs.mk

#
# This symbol is the link libraries that Postgres will link to.  Users should
# not worry about this unless they port to a new platform.
#

LIBS=		-ll -lm -lc

#
# This symbol is used for compiling the demo binaries.  They will be loaded
# using the dynamic loader, so users should take note of these flags.
#

DEMOCCOPTS=
