#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.63 1996/11/12 11:41:27 bryanh Exp $
+# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.64 1996/11/13 08:36:31 bryanh Exp $
#
# NOTES
-# This is seen by any Makefiles that include mk/postgres.mk. To
+# Essentially all Postgres make files include this file and use the
+# variables it sets. To
# override the default setting, create a Makefile.custom in this
# directory and put your defines there. (Makefile.custom is included
# near the end of this file.)
#
# If you change any of these defines you probably have to
-# gmake clean; gmake
-# since no dependecies are created for these. (of course you can
+# make clean; make
+# since no dependencies are created for these. (of course you can
# be crafty and check what files really depend on them and just remake
# those).
#
AROPT = crs
endif
+##############################################################################
+#
+# Shared libraries.
+# This is overridden for many PORTNAMEs below.
+
+SLSUFF= .so
+
#----------------------------------------------------------------------
-ifeq ($PORTNAME, BSD44_derived)
+ifeq ($(PORTNAME), BSD44_derived)
MK_PORT= BSD44_derived
# cc is gcc, but never mind about that...
LEX= flex
LDADD+= -L/usr/local/lib -lfl
-#
-# for postgres.user.mk
-#
CFLAGS_SL= -fpic -DPIC
-ifneq ($(HOSTTYPE), mips)
-SLSUFF= .so
-endif
-
%.so: %.o
$(LD) -x -r -o $<.obj $<
@echo building shared object $@
# might want to try installbsd instead
INSTALL= /usr/ucb/install
-#
-# for postgres.mk
-#
-
# the -lm is because "pow" is defined in libbsd.a and we want pow(3m)
LDADD_BE= -lm -lbsd
CFLAGS_BE+= -qchars=signed -qmaxmem=4000 -DHAVE_ANSI_CPP
-#
-# for postgres.user.mk
-#
EXPSUFF= .exp
-SLSUFF= .so
MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh
ifeq ($(PORTNAME), alpha)
MK_PORT= alpha
-#
-# for postgres.mk
-#
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
# NOFIXADE disallows unaligned access.
# use the regex library
USE_REGEX= 1
-#
-# for postgres.user.mk
-#
-SLSUFF= .so
-
%.so: %.o
$(LD) -shared -expect_unresolved '*' -o $@ $<
LDADD_BE= -ldld -lcompat
endif
-#
-# for postgres.user.mk
-#
-SLSUFF= .o
-
endif
#--------------------------------------------------------------------------
ifeq ($(PORTNAME), dgux)
MK_PORT= linux
-SLSUFF= .so
-#LDFLAGS+= -rdynamic
-
-
CFLAGS_SL= -fpic
%.so: %.o
$(CC) -shared -o $@ $<
-#
-# for postgres.mk
-#
CC= gcc
CFLAGS_BE= -D__USE_POSIX_SIGNALS -DUSE_POSIX_SIGNALS
ifeq ($(PORTNAME), hpux)
MK_PORT= hpux
-#
-# for postgres.mk
-#
LDADD_BE= -lBSD
ifdef ENFORCE_ALIGNMENT
# RANLIB is not used on HP-UX
RANLIB= touch
-#
-# for postgres.user.mk
-#
CFLAGS_SL= +z
SLSUFF= .sl
# cc won't work!
CC= gcc
-#
-# for postgres.mk
-#
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
# RANLIB is not used on solaris
LD_ADD+= $(LDADD_BE)
-#
-# for postgres.user.mk
-#
ifeq ($(CC), cc)
CFLAGS_SL= -K PIC
else
CFLAGS_SL= -fPIC
endif
-SLSUFF= .so
-
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
CC= cc
-#
-# for postgres.mk
-#
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
# RANLIB is not used on IRIX 5
LD_ADD+= $(LDADD_BE)
-SLSUFF= .so
-
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
# use the regex library
USE_REGEX= 1
-#
-# for postgres.user.mk
-#
CFLAGS_SL= -fpic
%.so: %.o
$(CC) -shared -o $@ $<
-#
-# for postgres.mk
-#
-
# The Linux gnulib #defines the problem away for you and calls
# the BSD routines if you give it the right flags.
CFLAGS_BE= -D__USE_BSD -D__USE_BSD_SIGNAL
INSTALL= /usr/bin/install
RANLIB= /usr/bin/ranlib
-#
-# for postgres.user.mk
-#
ifeq ($(CC), cc)
CFLAGS_SL= -PIC
else
CFLAGS_SL= -fPIC
endif
-SLSUFF= .so
-
%.so: %.o
$(LD) -dc -dp -Bdynamic -o $@ $<
endif
# cc won't work!
CC= gcc
-#
-# for postgres.mk
-#
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
# RANLIB is not used on solaris
LD_ADD+= $(LDADD_BE)
-#
-# for postgres.user.mk
-#
ifeq ($(CC), cc)
CFLAGS_SL= -K PIC
else
CFLAGS_SL= -fPIC
endif
-SLSUFF= .so
-
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
CFLAGS+= -W0
YACC= bison -y
-#
-# for postgres.mk
-#
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
# MAKE_EXPORTS is required for svr4 loaders that want a file of
LD_ADD+= $(LDADD_BE)
-#
-# for postgres.user.mk
-#
ifeq ($(CC), cc)
#CFLAGS_SL= -K PIC
else
#CFLAGS_SL= -fPIC
endif
-SLSUFF= .so
-
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
ifeq ($(PORTNAME), ultrix4)
MK_PORT= ultrix4
-#
-# for postgres.mk
-#
ifdef ENFORCE_ALIGNMENT
CFLAGS_BE= -DNOFIXADE
endif
INSTALL= /usr/bin/install
RANLIB= /usr/bin/ranlib
-#
-# for postgres.user.mk
-#
CFLAGS_SL= -G 0
SLSUFF= .o