mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
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
This commit is contained in:
parent
7113e880b8
commit
09a5dabc30
@ -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@
|
|||||||
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@
|
|||||||
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
|
||||||
|
9
src/makefiles/Makefile.BSD44_derived
Normal file
9
src/makefiles/Makefile.BSD44_derived
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
%.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
|
21
src/makefiles/Makefile.aix
Normal file
21
src/makefiles/Makefile.aix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# 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
|
2
src/makefiles/Makefile.alpha
Normal file
2
src/makefiles/Makefile.alpha
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
%.so: %.o
|
||||||
|
$(LD) -shared -expect_unresolved '*' -o $@ $<
|
2
src/makefiles/Makefile.dgux
Normal file
2
src/makefiles/Makefile.dgux
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
%.so: %.o
|
||||||
|
$(CC) -shared -o $@ $<
|
23
src/makefiles/Makefile.hpux
Normal file
23
src/makefiles/Makefile.hpux
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
|
||||||
|
#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 $@ $<
|
||||||
|
|
2
src/makefiles/Makefile.i386_solaris
Normal file
2
src/makefiles/Makefile.i386_solaris
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
%.so: %.o
|
||||||
|
$(LD) -G -Bdynamic -o $@ $<
|
7
src/makefiles/Makefile.irix5
Normal file
7
src/makefiles/Makefile.irix5
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
# RANLIB is not used on IRIX 5
|
||||||
|
RANLIB= touch
|
||||||
|
|
||||||
|
%.so: %.o
|
||||||
|
$(LD) -G -Bdynamic -o $@ $< $(LDFLAGS)
|
||||||
|
|
8
src/makefiles/Makefile.linux
Normal file
8
src/makefiles/Makefile.linux
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
ifdef LINUX_ELF
|
||||||
|
LDFLAGS+= -rdynamic
|
||||||
|
endif
|
||||||
|
MK_NO_LORDER= true
|
||||||
|
|
||||||
|
%.so: %.o
|
||||||
|
$(CC) -shared -o $@ $<
|
||||||
|
|
2
src/makefiles/Makefile.sparc_solaris
Normal file
2
src/makefiles/Makefile.sparc_solaris
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
%.so: %.o
|
||||||
|
$(LD) -G -Bdynamic -o $@ $<
|
2
src/makefiles/Makefile.sunos4
Normal file
2
src/makefiles/Makefile.sunos4
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
%.so: %.o
|
||||||
|
$(LD) -dc -dp -Bdynamic -o $@ $<
|
9
src/makefiles/Makefile.svr4
Normal file
9
src/makefiles/Makefile.svr4
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# 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 $@ $<
|
||||||
|
|
2
src/makefiles/Makefile.ultrix4
Normal file
2
src/makefiles/Makefile.ultrix4
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# install creates intermediate directories
|
||||||
|
NO_BEFOREINSTL= true
|
12
src/makefiles/Makefile.univel
Normal file
12
src/makefiles/Makefile.univel
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#
|
||||||
|
# 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user