Commit 09a5dabc authored by Marc G. Fournier's avatar Marc G. Fournier

Remove port specific Makefile 'targets' (ie. shared libraries) from

Makefile.global and move them to seperate 'include' makefiles

Over time, should become even more port specific:

	ie. Makefile.BSD44_derived should be broken down into netbsd/freebsd
specific ports
parent 7113e880
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.19 1997/04/04 11:21:39 scrappy Exp $ # $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.20 1997/04/12 10:32:03 scrappy Exp $
# #
# NOTES # NOTES
# Essentially all Postgres make files include this file and use the # Essentially all Postgres make files include this file and use the
...@@ -227,16 +227,6 @@ DASH_N= @DASH_N@ ...@@ -227,16 +227,6 @@ DASH_N= @DASH_N@
BACKSLASH_C= @BACKSLASH_C@ BACKSLASH_C= @BACKSLASH_C@
##############################################################################
#
# 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 $(SRCDIR)/Makefile.custom), )
include $(SRCDIR)/Makefile.custom
endif
#------------------------------------------------------------- #-------------------------------------------------------------
# See the subdirectory template for default settings for these # See the subdirectory template for default settings for these
...@@ -251,171 +241,17 @@ CFLAGS_SL= @SHARED_LIB@ ...@@ -251,171 +241,17 @@ CFLAGS_SL= @SHARED_LIB@
LDFLAGS= @LDFLAGS@ @LIBS@ LDFLAGS= @LDFLAGS@ @LIBS@
DLSUFFIX= @DLSUFFIX@ DLSUFFIX= @DLSUFFIX@
#---------------------------------------------------------------------- include $(SRCDIR)/Makefile.port
ifeq ($(PORTNAME), BSD44_derived)
%.so: %.o
$(LD) -x -r -o $<.obj $<
@echo building shared object $@
@rm -f $@.pic
@${AR} cq $@.pic `lorder $<.obj | tsort`
${RANLIB} $@.pic
@rm -f $@
$(LD) -x -Bshareable -Bforcearchive \
-o $@ $@.pic
endif
#--------------------------------------------------------------------------
ifeq ($(PORTNAME), aix)
# MAKE_EXPORTS is required for svr4 loaders that want a file of
# symbol names to tell them what to export/import.
MAKE_EXPORTS= true
EXPSUFF= .exp
POSTGRES_EXP= $(SRCDIR)/backend/postgres$(EXPSUFF)
MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh
%$(EXPSUFF): %.o
$(MKLDEXPORT) $< `pwd` > $@
$(POSTGRES_EXP):
$(MAKE) -C $(SRCDIR)/backend postgres.exp
%.so: %.o %$(EXPSUFF) $(POSTGRES_EXP)
@echo Making share library $@ from $*.o, $*$(EXPSUFF), and postgres.exp
$(LD) -H512 -T512 -o $@ -e _nostart \
-bI:$(POSTGRES_EXP) -bE:$*$(EXPSUFF) \
$*.o @MATH_LIB@ -lc 2>/dev/null
endif
#---------------------------------------------------------------------------
ifeq ($(PORTNAME), alpha)
%.so: %.o
$(LD) -shared -expect_unresolved '*' -o $@ $<
endif
#--------------------------------------------------------------------------
ifeq ($(PORTNAME), dgux)
%.so: %.o
$(CC) -shared -o $@ $<
endif
#----------------------------------------------------------------------------
ifeq ($(PORTNAME), hpux)
#ifdef ENFORCE_ALIGNMENT
# CFLAGS_BE= -DNOFIXADE
#else
# HPUX_VERS:= $(shell uname -r)
# HPUX_MAJOR= ${HPUX_VERS:R:E}
# HPUX_MINOR= ${HPUX_VERS:E}
# ifeq ($(HPUX_MAJOR), 08)
# CFLAGS_BE+= +u -DHP_S500_ALIGN
# LDFLAGS_BE+= +u
# else
# ifeq ($(HPUX_MAJOR), 09)
# ifeq ($(CC), cc)
# CFLAGS_BE+= +u4
# LDFLAGS_BE+= +u4
# endif
# endif
# endif
#endif
%.sl: %.o
$(LD) -b -o $@ $<
endif
#--------------------------------------------------------------------------
ifeq ($(PORTNAME), i386_solaris)
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
endif
#----------------------------------------------------------------------------
ifeq ($(PORTNAME), irix5)
# RANLIB is not used on IRIX 5
RANLIB= touch
%.so: %.o
$(LD) -G -Bdynamic -o $@ $< $(LDFLAGS)
endif
#---------------------------------------------------------------------------
ifeq ($(PORTNAME), linux)
ifdef LINUX_ELF
LDFLAGS+= -rdynamic
endif
MK_NO_LORDER= true
%.so: %.o
$(CC) -shared -o $@ $<
endif
#---------------------------------------------------------------------------
ifeq ($(PORTNAME), sunos4)
%.so: %.o
$(LD) -dc -dp -Bdynamic -o $@ $<
endif
#----------------------------------------------------------------------------
ifeq ($(PORTNAME), sparc_solaris)
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
endif
#-----------------------------------------------------------------------------
ifeq ($(PORTNAME), svr4)
# MAKE_EXPORTS is required for svr4 loaders that want a file of
# symbol names to tell them what to export/import.
MAKE_EXPORTS= true
LDFLAGS+= /usr/ucblib/libucb.a -LD-Blargedynsym
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
endif
#---------------------------------------------------------------------------
ifeq ($(PORTNAME), ultrix4)
# install creates intermediate directories
NO_BEFOREINSTL= true
endif
#-----------------------------------------------------------------------------
##############################################################################
# #
# The univel port is almost guaranteed NOT to work yet. # Customization.
# #
ifeq ($(PORTNAME), univel) # This includes your local customizations if Makefile.custom exists
# MAKE_EXPORTS is required for svr4 loaders that want a file of # in the source directory. This file doesn't exist in the original
# symbol names to tell them what to export/import. # distribution so that it doesn't get overwritten when you upgrade.
#MAKE_EXPORTS= true ifneq ($(wildcard $(SRCDIR)/Makefile.custom), )
include $(SRCDIR)/Makefile.custom
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
INSTALL= /usr/ucb/install
endif endif
# This goes here so that customization in Makefile.custom is effective # This goes here so that customization in Makefile.custom is effective
......
%.so: %.o
$(LD) -x -r -o $<.obj $<
@echo building shared object $@
@rm -f $@.pic
@${AR} cq $@.pic `lorder $<.obj | tsort`
${RANLIB} $@.pic
@rm -f $@
$(LD) -x -Bshareable -Bforcearchive \
-o $@ $@.pic
# MAKE_EXPORTS is required for svr4 loaders that want a file of
# symbol names to tell them what to export/import.
MAKE_EXPORTS= true
EXPSUFF= .exp
POSTGRES_EXP= $(SRCDIR)/backend/postgres$(EXPSUFF)
MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh
%$(EXPSUFF): %.o
$(MKLDEXPORT) $< `pwd` > $@
$(POSTGRES_EXP):
$(MAKE) -C $(SRCDIR)/backend postgres.exp
%.so: %.o %$(EXPSUFF) $(POSTGRES_EXP)
@echo Making share library $@ from $*.o, $*$(EXPSUFF), and postgres.exp
$(LD) -H512 -T512 -o $@ -e _nostart \
-bI:$(POSTGRES_EXP) -bE:$*$(EXPSUFF) \
$*.o @MATH_LIB@ -lc 2>/dev/null
%.so: %.o
$(LD) -shared -expect_unresolved '*' -o $@ $<
%.so: %.o
$(CC) -shared -o $@ $<
#ifdef ENFORCE_ALIGNMENT
# CFLAGS_BE= -DNOFIXADE
#else
# HPUX_VERS:= $(shell uname -r)
# HPUX_MAJOR= ${HPUX_VERS:R:E}
# HPUX_MINOR= ${HPUX_VERS:E}
# ifeq ($(HPUX_MAJOR), 08)
# CFLAGS_BE+= +u -DHP_S500_ALIGN
# LDFLAGS_BE+= +u
# else
# ifeq ($(HPUX_MAJOR), 09)
# ifeq ($(CC), cc)
# CFLAGS_BE+= +u4
# LDFLAGS_BE+= +u4
# endif
# endif
# endif
#endif
%.sl: %.o
$(LD) -b -o $@ $<
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
# RANLIB is not used on IRIX 5
RANLIB= touch
%.so: %.o
$(LD) -G -Bdynamic -o $@ $< $(LDFLAGS)
ifdef LINUX_ELF
LDFLAGS+= -rdynamic
endif
MK_NO_LORDER= true
%.so: %.o
$(CC) -shared -o $@ $<
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
%.so: %.o
$(LD) -dc -dp -Bdynamic -o $@ $<
# MAKE_EXPORTS is required for svr4 loaders that want a file of
# symbol names to tell them what to export/import.
MAKE_EXPORTS= true
LDFLAGS+= /usr/ucblib/libucb.a -LD-Blargedynsym
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
# install creates intermediate directories
NO_BEFOREINSTL= true
#
# The univel port is almost guaranteed NOT to work yet.
#
# MAKE_EXPORTS is required for svr4 loaders that want a file of
# symbol names to tell them what to export/import.
#MAKE_EXPORTS= true
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
INSTALL= /usr/ucb/install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment