@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.17 1997/04/04 07:57:45 scrappy Exp $
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.18 1997/04/04 10:38:23 scrappy Exp $
#
# NOTES
# Essentially all Postgres make files include this file and use the
@ -249,12 +249,9 @@ endif
CC = @CC@
LEX = @LEX@
AROPT = @AROPT@
CFLAGS = @CPPFLAGS@ @ALL@
CFLAGS_SL = @SHARED_LIBS@
CFLAGS_BE = @BACKEND@
LDFLAGS = @LDFLAGS@
LDADD_BE = @LIBS@
LD_ADD = $( LDADD_BE)
CFLAGS = @CPPFLAGS@ @CFLAGS@
CFLAGS_SL = @SHARED_LIB@
LDFLAGS = @LDFLAGS@ @LIBS@
DLSUFFIX = @DLSUFFIX@
#----------------------------------------------------------------------
@ -360,7 +357,7 @@ ifeq ($(PORTNAME), irix5)
RANLIB = touch
%.so : %.o
$( LD) -G -Bdynamic -o $@ $< $( LD_ADD )
$( LD) -G -Bdynamic -o $@ $< $( LDFLAGS )
e n d i f
@ -368,7 +365,7 @@ endif
i f e q ( $( PORTNAME ) , l i n u x )
i f d e f L I N U X _ E L F
LDFLAGS_BE = -rdynamic
LDFLAGS + = -rdynamic
e n d i f
MK_NO_LORDER = true
@ -402,8 +399,7 @@ YACC= bison -y
# symbol names to tell them what to export/import.
MAKE_EXPORTS = true
LDADD_BE += /usr/ucblib/libucb.a
LDFLAGS_BE = -LD-Blargedynsym
LDFLAGS += /usr/ucblib/libucb.a -LD-Blargedynsym
%.so : %.o
$( LD) -G -Bdynamic -o $@ $<
@ -426,12 +422,6 @@ endif
i f e q ( $( PORTNAME ) , u n i v e l )
YACC = bison -y
#
# Some of the Makefiles use LDADD, others use LD_ADD.
# This makes them the same.
#
LDADD = $( LD_ADD)
# MAKE_EXPORTS is required for svr4 loaders that want a file of
# symbol names to tell them what to export/import.
#MAKE_EXPORTS= true
@ -483,32 +473,14 @@ endif
i f n e q ( $( CUSTOM_COPT ) , )
COPT = $( CUSTOM_COPT)
e l s e
ifeq ( $( CC) , gcc)
COPT = -O2 -Werror
else
COPT = -O
endif
e n d i f
i f e q ( $( CC ) , g c c )
# Some flags only gcc recognizes...
# PostgreSQL should *always* compile with these enabled
CFLAGS += -Wall -Wmissing-prototypes
e n d i f
# Globally pass debugging/optimization/profiling flags based
# on the options selected above.
i f d e f C O P T
CFLAGS += $( COPT)
e l s e
ifndef CFLAGS_OPT
CFLAGS_OPT = -O
endif
CFLAGS += $( CFLAGS_OPT)
e n d i f
i f n d e f C A S S E R T
@ -517,13 +489,7 @@ endif
i f d e f P R O F I L E
CFLAGS += $( PROFILE)
LDFLAGS += $( PROFILE)
e n d i f
# Globally pass PORTNAME
CFLAGS += -D$( PORTNAME)
# include port-specific flags
CFLAGS += $( CFLAGS_BE)
LDFLAGS += $( LDFLAGS_BE)