Simplify make files, add full dependencies.
This commit is contained in:
parent
1e39d14ff3
commit
b0d6f0aa63
|
@ -1,4 +1,4 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#----------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.global--
|
||||
# global configuration for the Makefiles
|
||||
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.42 1996/10/23 07:33:04 scrappy Exp $
|
||||
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.43 1996/10/27 09:45:05 bryanh Exp $
|
||||
#
|
||||
# NOTES
|
||||
# This is seen by any Makefiles that include mk/postgres.mk. To
|
||||
|
@ -20,6 +20,10 @@
|
|||
# since no dependecies are created for these. (of course you can
|
||||
# be crafty and check what files really depend on them and just remake
|
||||
# those).
|
||||
#
|
||||
# Before including this file, you must set the SRCDIR variable to the
|
||||
# path of the top of the Postgres source tree (the directory that
|
||||
# contains this file).
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
|
@ -40,8 +44,7 @@
|
|||
# sparc - SUN SPARC on SunOS 4.1.3
|
||||
# ultrix4 - DEC MIPS on Ultrix 4.4
|
||||
# linux - Intel x86 on Linux 1.2 and Linux ELF
|
||||
# (For non-ELF Linux, you need to comment out
|
||||
# "LINUX_ELF=1" in src/mk/port/postgres.mk.linux)
|
||||
# (For non-ELF Linux, see LINUX_ELF below).
|
||||
# BSD44_derived - OSs derived from 4.4-lite BSD (NetBSD, FreeBSD)
|
||||
# bsdi - BSD/OS 2.0 and 2.01
|
||||
# bsdi_2_1 - BSD/OS 2.1
|
||||
|
@ -59,8 +62,18 @@
|
|||
# or the makefiles can get confused
|
||||
PORTNAME= UNDEFINED
|
||||
|
||||
# SRCDIR specifies where the source files are.
|
||||
# Ignore LINUX_ELF if you're not using Linux. But if you are, and you're
|
||||
# compiling to a.out (which means you're using the dld dynamic loading
|
||||
# library), set LINUX_ELF to null in Makefile.custom.
|
||||
LINUX_ELF= 1
|
||||
|
||||
# SRCDIR specifies where the source files are. It should be defined before
|
||||
# we are included, but for transition purposes, we put this default here.
|
||||
ifdef SRCDIR
|
||||
MKDIR= $(SRCDIR)/mk
|
||||
else
|
||||
SRCDIR= /usr/local/postgres95/src
|
||||
endif
|
||||
|
||||
# For convenience, POSTGRESDIR is where DATADIR, BINDIR, and LIBDIR
|
||||
# and other target destinations are rooted. Of course, each of these is
|
||||
|
@ -215,6 +228,27 @@ X11_INCDIR = /usr/include
|
|||
X11_LIBDIR = /usr/lib
|
||||
X11_LIB = -lX11 -lsocket -lnsl
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# YACC
|
||||
|
||||
YFLAGS = -d
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Installation.
|
||||
#
|
||||
# For many ports, INSTALL is overridden below.
|
||||
INSTALL = install
|
||||
RANLIB = ranlib
|
||||
|
||||
INSTLOPTS = -c -m 444
|
||||
INSTL_EXE_OPTS = -c -m 555
|
||||
INSTL_LIB_OPTS = -c -m 664
|
||||
|
||||
|
||||
objdir= obj
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Customization.
|
||||
|
@ -226,6 +260,7 @@ ifneq ($(wildcard $(MKDIR)/../Makefile.custom), )
|
|||
include $(MKDIR)/../Makefile.custom
|
||||
endif
|
||||
|
||||
#############################################################################
|
||||
# include port specific rules and variables. For instance:
|
||||
#
|
||||
# signal(2) handling - this is here because it affects some of
|
||||
|
@ -245,7 +280,586 @@ endif
|
|||
# is to do signal-handler reinstallation, which doesn't work well
|
||||
# at all.
|
||||
#
|
||||
-include $(MKDIR)/port/postgres.mk.$(PORTNAME)
|
||||
# HISTORY: Before October 1996, this file included the following line:
|
||||
# -include $(MKDIR)/port/postgres.mk.$(PORTNAME)
|
||||
# Now, we instead have all the former contents of those .mk files inline
|
||||
# with ifeq ($(PORTNAME) ...). This makes it a little bit easier to use
|
||||
# Makefile.global because you don't have to set MKDIR too. It also makes
|
||||
# it easier to read the make files. Finally, it should help with
|
||||
# migration to autoconf. - Bryan
|
||||
|
||||
# Since there are no longer separate files for each platform, much of the
|
||||
# commonality among the platforms ought to be factored out of the following.
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
ifeq ($PORTNAME, BSD44_derived)
|
||||
MK_PORT= BSD44_derived
|
||||
|
||||
# cc is gcc, but never mind about that...
|
||||
CC= gcc
|
||||
|
||||
INSTALL= /usr/bin/install
|
||||
RANLIB= /usr/bin/ranlib
|
||||
|
||||
AROPT = cq
|
||||
|
||||
# FreeBSD 2.1R with new Flex v2.5.2 in /usr/local
|
||||
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 $(objdir)/$(<F).obj $(objdir)/$(<F)
|
||||
@echo building shared object $(objdir)/$(@F)
|
||||
@rm -f $(objdir)/$(@F).pic
|
||||
@${AR} cq $(objdir)/$(@F).pic `lorder $(objdir)/$(<F).obj | tsort`
|
||||
${RANLIB} $(objdir)/$(@F).pic
|
||||
@rm -f $(objdir)/$(@F)
|
||||
$(LD) -x -Bshareable -Bforcearchive \
|
||||
-o $(objdir)/$(@F) $(objdir)/$(@F).pic
|
||||
endif
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), aix)
|
||||
MK_PORT= aix
|
||||
|
||||
# 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
|
||||
|
||||
# MAKE_EXPORTS is required for svr4 loaders that want a file of
|
||||
# symbol names to tell them what to export/import.
|
||||
MAKE_EXPORTS= true
|
||||
|
||||
#
|
||||
# Random things that must be passed everywhere to enable
|
||||
# everything to compile. :-/
|
||||
#
|
||||
# The -qmaxmem is because of optimizer limits.
|
||||
# The HAVE_ANSI_CPP flag indicates that cc isn't ANSI but also doesn't
|
||||
# have a Reiser (pcc-style) cpp.
|
||||
#
|
||||
CFLAGS_BE+= -qchars=signed -qmaxmem=4000 -DHAVE_ANSI_CPP
|
||||
|
||||
|
||||
#
|
||||
# for postgres.user.mk
|
||||
#
|
||||
EXPSUFF= .exp
|
||||
SLSUFF= .so
|
||||
|
||||
MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh
|
||||
|
||||
%$(EXPSUFF): %.o
|
||||
$(MKLDEXPORT) $(objdir)/$(<F) `pwd` > $(objdir)/$(@F)
|
||||
|
||||
%.so: %.o %$(EXPSUFF)
|
||||
@echo The link stage here:
|
||||
$(LD) -H512 -T512 -o $(objdir)/$(@F) -e _nostart \
|
||||
-bI:$(LIBDIR)/postgres$(EXPSUFF) -bE:$*$(EXPSUFF) \
|
||||
$*.o -lm -lc 2>/dev/null
|
||||
endif
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), alpha)
|
||||
MK_PORT= alpha
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
|
||||
|
||||
# NOFIXADE disallows unaligned access.
|
||||
# on Ultrix and OSF/1 it invokes an explicit syscall.
|
||||
# on HP-UX it turns off certain compiler options.
|
||||
# This is defined here because a bunch of clients include tmp/c.h,
|
||||
# which is where the work is done on HP-UX. It only affects the
|
||||
# backend on Ultrix and OSF/1.
|
||||
ifdef ENFORCE_ALIGNMENT
|
||||
CFLAGS_BE+= -DNOFIXADE
|
||||
else
|
||||
CFLAGS_BE+= -DNOPRINTADE
|
||||
endif
|
||||
|
||||
# use the regex library
|
||||
USE_REGEX = 1
|
||||
|
||||
#
|
||||
# for postgres.user.mk
|
||||
#
|
||||
SLSUFF= .so
|
||||
|
||||
# cd into objdir so that so_locations is also in obj
|
||||
%.so: %.o
|
||||
cd $(objdir); $(LD) -shared -expect_unresolved '*' -o $(@F) $(<F)
|
||||
|
||||
CLEANFILES+= so_locations
|
||||
|
||||
#
|
||||
# for postgres.shell.mk
|
||||
#
|
||||
DASH_N=
|
||||
BACKSLASH_C='\\\\c'
|
||||
|
||||
endif
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), bsdi)
|
||||
MK_PORT= bsdi
|
||||
|
||||
# cc is gcc v1.42
|
||||
# gcc is gcc v2.6.3
|
||||
CC= gcc
|
||||
|
||||
LEX= flex
|
||||
AROPT= cq
|
||||
|
||||
# use the regex library
|
||||
USE_REGEX = 1
|
||||
|
||||
LDADD_BE= -ldld -lcompat
|
||||
|
||||
#
|
||||
# for postgres.user.mk
|
||||
#
|
||||
SLSUFF= .o
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
CFLAGS_OPT= -g -DUSE_POSIX_SIGNALS # -O2
|
||||
|
||||
endif
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), bsdi_2_1)
|
||||
MK_PORT= bsdi_2_1
|
||||
|
||||
# cc is gcc v1.42
|
||||
# gcc is gcc v2.7.2
|
||||
CC= gcc
|
||||
|
||||
LEX= lex
|
||||
AROPT= cq
|
||||
|
||||
LD_ADD+= -ltermcap
|
||||
|
||||
#
|
||||
# for postgres.user.mk
|
||||
#
|
||||
SLSUFF= .o
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
CFLAGS_OPT= -O2 -m486
|
||||
CFLAGS_BE = -DUSE_POSIX_SIGNALS
|
||||
|
||||
endif
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), dgux)
|
||||
MK_PORT= linux
|
||||
|
||||
SLSUFF= .so
|
||||
#LDFLAGS+= -rdynamic
|
||||
|
||||
|
||||
CFLAGS_SL= -fpic
|
||||
%.so: %.o
|
||||
cd $(objdir); $(CC) -shared -o $(@F) $(<F)
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
CC= gcc
|
||||
CFLAGS_OPT= -O2 -pipe
|
||||
|
||||
CFLAGS_BE= -D__USE_POSIX_SIGNALS -DUSE_POSIX_SIGNALS -O2
|
||||
LDADD_BE= -ldl -lfl
|
||||
|
||||
LEX = flex
|
||||
YACC = bison -y
|
||||
|
||||
INSTALL=/usr/bin/X11/bsdinst
|
||||
|
||||
endif
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), hpux)
|
||||
MK_PORT= hpux
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
LDADD_BE= -lBSD
|
||||
|
||||
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
|
||||
|
||||
# (extended) ANSI flag for cc (-Ae is same as -Aa -D_HPUX_SOURCE)
|
||||
ifeq ($(CC), cc)
|
||||
CFLAGS_BE+= -Ae
|
||||
endif
|
||||
|
||||
# This is a script from the MIT X11 distribution.
|
||||
INSTALL= bsdinst
|
||||
|
||||
# RANLIB is not used on HP-UX
|
||||
RANLIB=touch
|
||||
|
||||
#
|
||||
# for postgres.user.mk
|
||||
#
|
||||
CFLAGS_SL= +z
|
||||
SLSUFF= .sl
|
||||
|
||||
%.sl: %.o
|
||||
$(LD) -b -o $(objdir)/$(@F) $(objdir)/$(<F)
|
||||
|
||||
#
|
||||
# for postgres.shell.mk
|
||||
#
|
||||
DASH_N= ''
|
||||
BACKSLASH_C='\\\\c'
|
||||
|
||||
endif
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), i386_solaris)
|
||||
MK_PORT= i386_solaris
|
||||
|
||||
# cc won't work!
|
||||
CC= gcc
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
|
||||
|
||||
# RANLIB is not used on solaris
|
||||
RANLIB=touch
|
||||
|
||||
INSTALL=/usr/ucb/install
|
||||
|
||||
#
|
||||
# Random things that must be passed everywhere to enable
|
||||
# everything to compile. :-/
|
||||
#
|
||||
# The extra -I flag is to scoop up extra BSD-emulating headers.
|
||||
CFLAGS_BE+= -DSYSV_DIRENT -I$(POSTGRESDIR)/src/backend/port/sparc_solaris
|
||||
LDADD_BE+= -lsocket -lnsl
|
||||
|
||||
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 $(objdir)/$(@F) $(objdir)/$(<F)
|
||||
|
||||
#
|
||||
# for postgres.shell.mk
|
||||
#
|
||||
DASH_N=''
|
||||
BACKSLASH_C='\\\\c'
|
||||
|
||||
endif
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), irix5)
|
||||
MK_PORT= irix5
|
||||
|
||||
CC= cc
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
|
||||
|
||||
# RANLIB is not used on IRIX 5
|
||||
RANLIB=touch
|
||||
|
||||
INSTALL=/sbin/bsdinst
|
||||
|
||||
INSTLOPTS= -m 444
|
||||
INSTL_EXE_OPTS= -m 555
|
||||
INSTL_LIB_OPTS= -m 664
|
||||
|
||||
#
|
||||
# Random things that must be passed everywhere to enable
|
||||
# everything to compile. :-/
|
||||
#
|
||||
CFLAGS_BE+= -DSYSV_DIRENT
|
||||
|
||||
LD_ADD+= $(LDADD_BE)
|
||||
|
||||
SLSUFF= .so
|
||||
|
||||
%.so: %.o
|
||||
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
|
||||
|
||||
#
|
||||
# for postgres.shell.mk
|
||||
#
|
||||
DASH_N=''
|
||||
BACKSLASH_C='\\\\c'
|
||||
|
||||
endif
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), linux)
|
||||
MK_PORT= linux
|
||||
|
||||
ifndef LINUX_ELF
|
||||
SLSUFF= .o
|
||||
else
|
||||
SLSUFF= .so
|
||||
LDFLAGS+= -rdynamic
|
||||
endif
|
||||
MK_NO_LORDER= true
|
||||
|
||||
# use the regex library
|
||||
USE_REGEX = 1
|
||||
|
||||
#
|
||||
# for postgres.user.mk
|
||||
#
|
||||
CFLAGS_SL= -fpic
|
||||
%.so: %.o
|
||||
cd $(objdir); $(CC) -shared -o $(@F) $(<F)
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
CFLAGS_OPT= -O2 -pipe -m486
|
||||
|
||||
# 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
|
||||
LDADD_BE= -lbsd
|
||||
|
||||
LEX = flex
|
||||
|
||||
endif
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), sparc)
|
||||
MK_PORT= sparc
|
||||
|
||||
# cc won't work!
|
||||
CC= gcc
|
||||
|
||||
# the ar on SunOs is dumb, can't use the s option
|
||||
AROPT= cq
|
||||
|
||||
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 $(objdir)/$(@F) $(objdir)/$(<F)
|
||||
|
||||
endif
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), sparc_solaris)
|
||||
MK_PORT= sparc_solaris
|
||||
|
||||
# cc won't work!
|
||||
CC= gcc
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
|
||||
|
||||
# RANLIB is not used on solaris
|
||||
RANLIB=touch
|
||||
|
||||
INSTALL=/usr/ucb/install
|
||||
|
||||
#
|
||||
# Random things that must be passed everywhere to enable
|
||||
# everything to compile. :-/
|
||||
#
|
||||
# The extra -I flag is to scoop up extra BSD-emulating headers.
|
||||
CFLAGS_BE+= -DSYSV_DIRENT -I$(SRCDIR)/backend/port/sparc_solaris
|
||||
LDADD_BE+= -lsocket -lnsl
|
||||
|
||||
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 $(objdir)/$(@F) $(objdir)/$(<F)
|
||||
|
||||
#
|
||||
# for postgres.shell.mk
|
||||
#
|
||||
DASH_N=''
|
||||
BACKSLASH_C='\\\\c'
|
||||
|
||||
endif
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), svr4)
|
||||
MK_PORT= svr4
|
||||
|
||||
# cc won't work?
|
||||
#CC= gcc
|
||||
CC= cc -W0
|
||||
YACC= bison -y
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
|
||||
|
||||
# MAKE_EXPORTS is required for svr4 loaders that want a file of
|
||||
# symbol names to tell them what to export/import.
|
||||
MAKE_EXPORTS= true
|
||||
|
||||
# RANLIB is not used on svr4
|
||||
RANLIB=touch
|
||||
|
||||
# GNU install
|
||||
INSTALL=/home/tools/bin/install
|
||||
|
||||
#
|
||||
# Random things that must be passed everywhere to enable
|
||||
# everything to compile. :-/
|
||||
#
|
||||
# The extra -I flag is to scoop up extra BSD-emulating headers.
|
||||
CFLAGS_BE+= -DSYSV_DIRENT -I$(POSTGRESDIR)/src/backend/port/svr4
|
||||
LDADD_BE+= -lsocket -lnsl -lc /usr/ucblib/libucb.a
|
||||
|
||||
LD_ADD+= $(LDADD_BE)
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
CFLAGS_OPT= -O
|
||||
|
||||
#
|
||||
# for postgres.user.mk
|
||||
#
|
||||
#CFLAGS_SL= -K pic
|
||||
ifeq ($(CC), cc)
|
||||
#CFLAGS_SL= -K PIC
|
||||
else
|
||||
#CFLAGS_SL= -fPIC
|
||||
endif
|
||||
|
||||
SLSUFF= .so
|
||||
|
||||
#%.so: %.o
|
||||
# $(LD) -G $(LDFLAGS) -o $(objdir)/$(@F) $(objdir)/$(<F)
|
||||
%.so: %.o
|
||||
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
|
||||
|
||||
#
|
||||
# for postgres.shell.mk
|
||||
#
|
||||
DASH_N=''
|
||||
BACKSLASH_C='\\\\c'
|
||||
endif
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(PORTNAME), ultrix4)
|
||||
MK_PORT= ultrix4
|
||||
|
||||
#
|
||||
# for postgres.mk
|
||||
#
|
||||
ifdef ENFORCE_ALIGNMENT
|
||||
CFLAGS_BE= -DNOFIXADE
|
||||
endif
|
||||
|
||||
# install creates intermediate directories
|
||||
NO_BEFOREINSTL= true
|
||||
|
||||
INSTALL= /usr/bin/install
|
||||
RANLIB= /usr/bin/ranlib
|
||||
|
||||
#
|
||||
# for postgres.user.mk
|
||||
#
|
||||
CFLAGS_SL= -G 0
|
||||
SLSUFF= .o
|
||||
|
||||
endif
|
||||
|
||||
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
|
@ -254,7 +868,6 @@ endif
|
|||
|
||||
srcdir= $(SRCDIR)
|
||||
includedir= $(HEADERDIR)
|
||||
objdir= obj
|
||||
|
||||
|
||||
# This goes here so that customization in Makefile.custom is effective
|
||||
|
@ -287,12 +900,8 @@ endif
|
|||
|
||||
# Globally pass PORTNAME
|
||||
CFLAGS+= -DPORTNAME_$(PORTNAME) -D$(PORTNAME)
|
||||
CFLAGS += -I../../backend/port/$(PORTNAME)
|
||||
|
||||
# Globally pass the default TCP port for postmaster(1).
|
||||
CFLAGS+= -DPOSTPORT='"$(POSTPORT)"'
|
||||
|
||||
# include flags from mk/port/postgres.mk.$(PORTNAME)
|
||||
# include port-specific flags
|
||||
CFLAGS+= $(CFLAGS_BE)
|
||||
LDADD+= $(LDADD_BE)
|
||||
LDFLAGS+= $(LDFLAGS_BE)
|
||||
|
|
|
@ -5,100 +5,48 @@
|
|||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
# Functional notes:
|
||||
#
|
||||
# Parallel make:
|
||||
#
|
||||
# This make file is set up so that you can do a parallel make (with
|
||||
# the --jobs option of make) and make multiple subdirectories at
|
||||
# once.
|
||||
#
|
||||
# However, the subdirectory make files are not so careful.
|
||||
# Normally, the --jobs option would get passed down to those
|
||||
# subdirectory makes, like any other make option, and they would
|
||||
# fail. But there's a trick: Put a value (max number of
|
||||
# processes) on the --jobs option, e.g. --jobs=4. Now, due to a
|
||||
# special feature of make, the --jobs option will not get passed
|
||||
# to the subdirectory makes. (make does this because if you only
|
||||
# want 4 tasks running, then splitting the subdirectory makes into
|
||||
# multiple tasks would violate your wishes).
|
||||
#
|
||||
#
|
||||
#
|
||||
# Implementation notes:
|
||||
#
|
||||
# We don't use $(LD) for linking. We use $(CC) instead. This is because
|
||||
# the $(CC) program apparently can do linking too, and it has certain
|
||||
# thinks like default options and search paths for libraries set up for
|
||||
# it that the more primitive $(LD) doesn't have.
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.9 1996/10/12 07:44:39 bryanh Exp $
|
||||
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.10 1996/10/27 09:45:39 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# The following turns on intermediate linking of partial objects to speed
|
||||
# the link cycle during development. (To turn this off, put "BIGOBJS=false"
|
||||
# in your custom makefile, ../Makefile.custom.)
|
||||
BIGOBJS= true
|
||||
|
||||
PROG= postgres global1.bki.source local1_template1.bki.source
|
||||
|
||||
MKDIR= ../mk
|
||||
include $(MKDIR)/postgres.mk
|
||||
|
||||
include $(CURDIR)/access/Makefile.inc
|
||||
include $(CURDIR)/bootstrap/Makefile.inc
|
||||
include $(CURDIR)/catalog/Makefile.inc
|
||||
include $(CURDIR)/commands/Makefile.inc
|
||||
include $(CURDIR)/executor/Makefile.inc
|
||||
include $(CURDIR)/include/Makefile.inc
|
||||
include $(CURDIR)/lib/Makefile.inc
|
||||
include $(CURDIR)/libpq/Makefile.inc
|
||||
include $(CURDIR)/main/Makefile.inc
|
||||
include $(CURDIR)/nodes/Makefile.inc
|
||||
include $(CURDIR)/optimizer/Makefile.inc
|
||||
include $(CURDIR)/parser/Makefile.inc
|
||||
include $(CURDIR)/port/Makefile.inc
|
||||
include $(CURDIR)/postmaster/Makefile.inc
|
||||
include $(CURDIR)/regex/Makefile.inc
|
||||
include $(CURDIR)/rewrite/Makefile.inc
|
||||
include $(CURDIR)/storage/Makefile.inc
|
||||
include $(CURDIR)/tcop/Makefile.inc
|
||||
include $(CURDIR)/tioga/Makefile.inc
|
||||
include $(CURDIR)/utils/Makefile.inc
|
||||
|
||||
SRCS:= ${SRCS_ACCESS} ${SRCS_BOOTSTRAP} $(SRCS_CATALOG) ${SRCS_COMMANDS} \
|
||||
${SRCS_EXECUTOR} $(SRCS_LIB) $(SRCS_LIBPQ) ${SRCS_MAIN} \
|
||||
${SRCS_NODES} ${SRCS_OPTIMIZER} ${SRCS_PARSER} ${SRCS_PORT} \
|
||||
$(SRCS_POSTMASTER) ${SRCS_REGEX} ${SRCS_REWRITE} ${SRCS_STORAGE} \
|
||||
${SRCS_TCOP} ${SRCS_UTILS}
|
||||
|
||||
ifeq ($(BIGOBJS), true)
|
||||
OBJS= ACCESS.o BOOTSTRAP.o COMMANDS.o EXECUTOR.o MAIN.o MISC.o NODES.o \
|
||||
PARSER.o OPTIMIZER.o REGEX.o REWRITE.o STORAGE.o TCOP.o UTILS.o
|
||||
CLEANFILES+= $(subst .s,.o,$(SRCS:.c=.o)) $(OBJS)
|
||||
else
|
||||
OBJS:= $(subst .s,.o,$(SRCS:%.c=$(objdir)/%.o))
|
||||
CLEANFILES+= $(notdir $(OBJS))
|
||||
endif
|
||||
SRCDIR = ..
|
||||
include ../Makefile.global
|
||||
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
# TIOGA stuff
|
||||
#
|
||||
ifdef TIOGA
|
||||
SRCS+= $(SRCS_TIOGA)
|
||||
ifeq ($(BIGOBJS), true)
|
||||
TIOGA.o: $(SRCS_TIOGA:%.c=$(objdir)/%.o)
|
||||
$(make_partial)
|
||||
OBJS+= TIOGA.o
|
||||
CLEANFILES+= $(SRCS_TIOGA:%.c=%.o) TIOGA.o
|
||||
else
|
||||
OBJS+= $(SRCS_TIOGA:%.c=$(objdir)/%.o)
|
||||
endif
|
||||
endif
|
||||
##########################################################################
|
||||
# Determine linker flags for this platform (mainly, the libraries with
|
||||
# which to link).
|
||||
##########################################################################
|
||||
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
# Compiling the postgres backend.
|
||||
#
|
||||
CFLAGS+= -DPOSTGRESDIR='"$(POSTGRESDIR)"' \
|
||||
-DPGDATADIR='"$(DATADIR)"' \
|
||||
-I$(CURDIR)/$(objdir) \
|
||||
-I$(CURDIR)/include \
|
||||
-I$(CURDIR)/port/$(PORTNAME) \
|
||||
-I../include
|
||||
|
||||
# turn this on if you prefer European style dates instead of American
|
||||
# style dates
|
||||
ifdef EUROPEAN_DATES
|
||||
CFLAGS += -DEUROPEAN_STYLE
|
||||
endif
|
||||
|
||||
# host based access flags
|
||||
ifdef HBA
|
||||
CFLAGS+= $(HBAFLAGS)
|
||||
endif
|
||||
|
||||
#
|
||||
# All systems except NEXTSTEP require the math library.
|
||||
# Loader flags for system-dependent libraries are appended in
|
||||
# src/backend/port/$(PORTNAME)/Makefile.inc
|
||||
|
@ -107,86 +55,186 @@ ifneq ($(PORTNAME), next)
|
|||
LDADD+= -lm
|
||||
endif
|
||||
|
||||
# kerberos flags
|
||||
ifdef KRBVERS
|
||||
CFLAGS+= $(KRBFLAGS)
|
||||
LDADD+= $(KRBLIBS)
|
||||
ifeq ($(PORTNAME), aix)
|
||||
LDADD+= -ll -lld
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), alpha)
|
||||
LDADD+= -lln
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), bsdi)
|
||||
LDADD+= -ldld -lipc
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), bsdi_2_1)
|
||||
LDADD+= -ldl -lipc
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), hpux)
|
||||
# HP-UX needs:
|
||||
# -W l,-E export symbols for linking with the shared libraries
|
||||
# dynamic loader
|
||||
# -W p,-H400000 expand cpp #define table size so the Nodes files don't
|
||||
# break it
|
||||
#
|
||||
# -W p,-H400000
|
||||
ifeq ($(CC), cc)
|
||||
CFLAGS+= -W l,-E
|
||||
LDFLAGS+= -W l,-E
|
||||
LDADD+= -ll -ldld
|
||||
else
|
||||
ifeq ($(CC), gcc)
|
||||
LDADD+= -ll /usr/lib/libdld.sl
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), i386_solaris)
|
||||
LDADD+= -ll -ldl
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), irix5)
|
||||
LDADD+= -ll
|
||||
endif
|
||||
|
||||
# statically link in libc for linux
|
||||
ifeq ($(PORTNAME), linux)
|
||||
LDADD+= -lc
|
||||
ifdef LINUX_ELF
|
||||
LDADD+= -ldl
|
||||
else
|
||||
LDADD+= -ldld
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), sparc)
|
||||
LDADD+= -lln -ldl
|
||||
endif
|
||||
|
||||
ifeq ($(PORTNAME), sparc_solaris)
|
||||
LDADD+= -ll -ldl
|
||||
endif
|
||||
|
||||
# the following is special for Reliant UNIX SVR4 (formerly SINIX)
|
||||
ifeq ($(PORTNAME), svr4)
|
||||
LDADD+= -ll -ldl
|
||||
# the following is special for Reliant UNIX SVR4 (formerly SINIX)
|
||||
LDFLAGS+= -LD-Blargedynsym
|
||||
endif
|
||||
|
||||
postgres: $(POSTGRES_DEPEND) $(OBJS) $(EXPORTS)
|
||||
$(CC) $(LDFLAGS) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(notdir $(OBJS))) $(LDADD)
|
||||
|
||||
# Make this target first if you are doing a parallel make.
|
||||
# The targets in 'first' need to be made sequentially because of dependencies.
|
||||
# Then, you can make 'all' with parallelism turned on.
|
||||
first: $(POSTGRES_DEPEND)
|
||||
|
||||
ifeq ($(PORTNAME), ultrix4)
|
||||
LDADD+= -ldl -lln
|
||||
endif
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
# Partial objects for platforms with slow linkers.
|
||||
#
|
||||
ifeq ($(BIGOBJS), true)
|
||||
|
||||
OBJS_ACCESS:= $(SRCS_ACCESS:%.c=$(objdir)/%.o)
|
||||
OBJS_BOOTSTRAP:= $(SRCS_BOOTSTRAP:%.c=$(objdir)/%.o)
|
||||
OBJS_CATALOG:= $(SRCS_CATALOG:%.c=$(objdir)/%.o)
|
||||
OBJS_COMMANDS:= $(SRCS_COMMANDS:%.c=$(objdir)/%.o)
|
||||
OBJS_EXECUTOR:= $(SRCS_EXECUTOR:%.c=$(objdir)/%.o)
|
||||
OBJS_MAIN:= $(SRCS_MAIN:%.c=$(objdir)/%.o)
|
||||
OBJS_POSTMASTER:= $(SRCS_POSTMASTER:%.c=$(objdir)/%.o)
|
||||
OBJS_LIB:= $(SRCS_LIB:%.c=$(objdir)/%.o)
|
||||
OBJS_LIBPQ:= $(SRCS_LIBPQ:%.c=$(objdir)/%.o)
|
||||
OBJS_PORT:= $(addprefix $(objdir)/,$(subst .s,.o,$(SRCS_PORT:.c=.o)))
|
||||
OBJS_NODES:= $(SRCS_NODES:%.c=$(objdir)/%.o)
|
||||
OBJS_PARSER:= $(SRCS_PARSER:%.c=$(objdir)/%.o)
|
||||
OBJS_OPTIMIZER:= $(SRCS_OPTIMIZER:%.c=$(objdir)/%.o)
|
||||
OBJS_REGEX:= $(SRCS_REGEX:%.c=$(objdir)/%.o)
|
||||
OBJS_REWRITE:= $(SRCS_REWRITE:%.c=$(objdir)/%.o)
|
||||
OBJS_STORAGE:= $(SRCS_STORAGE:%.c=$(objdir)/%.o)
|
||||
OBJS_TCOP:= $(SRCS_TCOP:%.c=$(objdir)/%.o)
|
||||
OBJS_UTILS:= $(SRCS_UTILS:%.c=$(objdir)/%.o)
|
||||
OBJS = access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o \
|
||||
commands/SUBSYS.o executor/SUBSYS.o \
|
||||
lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o \
|
||||
optimizer/SUBSYS.o parser/SUBSYS.o port/SUBSYS.o \
|
||||
postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o \
|
||||
storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o
|
||||
|
||||
ACCESS.o: $(OBJS_ACCESS)
|
||||
$(make_partial)
|
||||
BOOTSTRAP.o: $(OBJS_BOOTSTRAP)
|
||||
$(make_partial)
|
||||
COMMANDS.o: $(OBJS_COMMANDS)
|
||||
$(make_partial)
|
||||
EXECUTOR.o: $(OBJS_EXECUTOR)
|
||||
$(make_partial)
|
||||
MAIN.o: $(OBJS_MAIN) $(OBJS_POSTMASTER)
|
||||
$(make_partial)
|
||||
MISC.o: $(OBJS_CATALOG) $(OBJS_LIB) $(OBJS_LIBPQ) $(OBJS_PORT)
|
||||
$(make_partial)
|
||||
NODES.o: $(OBJS_NODES)
|
||||
$(make_partial)
|
||||
PARSER.o: $(OBJS_PARSER)
|
||||
$(make_partial)
|
||||
OPTIMIZER.o: $(OBJS_OPTIMIZER)
|
||||
$(make_partial)
|
||||
REGEX.o: $(OBJS_REGEX)
|
||||
$(make_partial)
|
||||
REWRITE.o: $(OBJS_REWRITE)
|
||||
$(make_partial)
|
||||
STORAGE.o: $(OBJS_STORAGE)
|
||||
$(make_partial)
|
||||
TCOP.o: $(OBJS_TCOP)
|
||||
$(make_partial)
|
||||
UTILS.o: $(OBJS_UTILS)
|
||||
$(make_partial)
|
||||
ifdef TIOGA
|
||||
OBJS += tioga/SUBSYS.o
|
||||
endif
|
||||
|
||||
all: postgres global1.bki.source local1_template1.bki.source
|
||||
|
||||
postgres: postgres_group1 postgres_group2 postgres_group3 postgres_group4
|
||||
$(CC) $(LDFLAGS) -o postgres $(OBJS) $(LDADD)
|
||||
|
||||
postgres_group1:
|
||||
$(MAKE) -C access SUBSYS.o
|
||||
$(MAKE) -C bootstrap SUBSYS.o
|
||||
$(MAKE) -C catalog SUBSYS.o
|
||||
$(MAKE) -C commands SUBSYS.o
|
||||
postgres_group2:
|
||||
$(MAKE) -C executor SUBSYS.o
|
||||
$(MAKE) -C lib SUBSYS.o
|
||||
$(MAKE) -C libpq SUBSYS.o
|
||||
$(MAKE) -C main SUBSYS.o
|
||||
$(MAKE) -C nodes SUBSYS.o
|
||||
postgres_group3:
|
||||
$(MAKE) -C optimizer SUBSYS.o
|
||||
$(MAKE) -C parser SUBSYS.o
|
||||
$(MAKE) -C port SUBSYS.o PORTNAME=$(PORTNAME)
|
||||
$(MAKE) -C postmaster SUBSYS.o
|
||||
$(MAKE) -C regex SUBSYS.o
|
||||
postgres_group4:
|
||||
$(MAKE) -C rewrite SUBSYS.o
|
||||
$(MAKE) -C storage SUBSYS.o
|
||||
$(MAKE) -C tcop SUBSYS.o
|
||||
$(MAKE) -C utils SUBSYS.o
|
||||
ifdef TIOGA
|
||||
$(MAKE) -C tioga SUBSYS.o
|
||||
endif
|
||||
|
||||
global1.bki.source local1_template1.bki.source:
|
||||
$(MAKE) -C catalog $@
|
||||
cp catalog/$@ .
|
||||
|
||||
|
||||
############################################################################
|
||||
# The following targets are specified in make commands that appear in the
|
||||
# make files in our subdirectories.
|
||||
|
||||
parse.h:
|
||||
$(MAKE) -C parser parse.h
|
||||
cp parser/parse.h .
|
||||
|
||||
fmgr.h:
|
||||
$(MAKE) -C utils fmgr.h
|
||||
cp utils/fmgr.h .
|
||||
|
||||
#############################################################################
|
||||
clean:
|
||||
rm -f postgres fmgr.h parse.h \
|
||||
global1.bki.source local1_template1.bki.source
|
||||
$(MAKE) -C access clean
|
||||
$(MAKE) -C bootstrap clean
|
||||
$(MAKE) -C catalog clean
|
||||
$(MAKE) -C commands clean
|
||||
$(MAKE) -C executor clean
|
||||
$(MAKE) -C lib clean
|
||||
$(MAKE) -C libpq clean
|
||||
$(MAKE) -C main clean
|
||||
$(MAKE) -C nodes clean
|
||||
$(MAKE) -C optimizer clean
|
||||
$(MAKE) -C parser clean
|
||||
$(MAKE) -C port clean PORTNAME=$(PORTNAME)
|
||||
$(MAKE) -C postmaster clean
|
||||
$(MAKE) -C regex clean
|
||||
$(MAKE) -C rewrite clean
|
||||
$(MAKE) -C storage clean
|
||||
$(MAKE) -C tcop clean
|
||||
$(MAKE) -C utils clean
|
||||
ifdef TIOGA
|
||||
$(MAKE) -C tioga clean
|
||||
endif
|
||||
|
||||
.DEFAULT:
|
||||
$(MAKE) -C access $@
|
||||
$(MAKE) -C bootstrap $@
|
||||
$(MAKE) -C catalog $@
|
||||
$(MAKE) -C commands $@
|
||||
$(MAKE) -C executor $@
|
||||
$(MAKE) -C lib $@
|
||||
$(MAKE) -C libpq $@
|
||||
$(MAKE) -C main $@
|
||||
$(MAKE) -C nodes $@
|
||||
$(MAKE) -C optimizer $@
|
||||
$(MAKE) -C parser $@
|
||||
$(MAKE) -C port $@ PORTNAME=$(PORTNAME)
|
||||
$(MAKE) -C postmaster $@
|
||||
$(MAKE) -C regex $@
|
||||
$(MAKE) -C rewrite $@
|
||||
$(MAKE) -C storage $@
|
||||
$(MAKE) -C tcop $@
|
||||
$(MAKE) -C utils $@
|
||||
ifdef TIOGA
|
||||
$(MAKE) -C tioga $@
|
||||
endif
|
||||
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
# Installation.
|
||||
|
@ -203,33 +251,26 @@ endif
|
|||
# and (2) the parameters of a database system should be set at initdb time,
|
||||
# not at postgres build time.
|
||||
|
||||
install: beforeinstall postgres fmgr.h\
|
||||
D_LIBDIR = $(DESTDIR)$(LIBDIR)
|
||||
D_BINDIR = $(DESTDIR)$(BINDIR)
|
||||
|
||||
install: $(D_LIBDIR) $(D_BINDIR) $(HEADERDIR) postgres fmgr.h\
|
||||
global1.bki.source local1_template1.bki.source \
|
||||
libpq/pg_hba.conf.sample
|
||||
|
||||
$(INSTALL) $(INSTL_EXE_OPTS) $(objdir)/postgres \
|
||||
$(DESTDIR)$(BINDIR)/postgres
|
||||
@rm -f $(DESTDIR)$(BINDIR)/postmaster
|
||||
cd $(DESTDIR)$(BINDIR); ln -s postgres postmaster
|
||||
$(INSTALL) $(INSTLOPTS) $(objdir)/fmgr.h $(HEADERDIR)/fmgr.h
|
||||
$(INSTALL) $(INSTLOPTS) $(objdir)/global1.bki.source \
|
||||
$(DESTDIR)$(LIBDIR)/global1.bki.source
|
||||
$(INSTALL) $(INSTLOPTS) $(objdir)/local1_template1.bki.source \
|
||||
$(DESTDIR)$(LIBDIR)/local1_template1.bki.source
|
||||
$(INSTALL) $(INSTL_EXE_OPTS) postgres $(D_BINDIR)/postgres
|
||||
@rm -f $(D_BINDIR)/postmaster
|
||||
cd $(D_BINDIR); ln -s postgres postmaster
|
||||
$(INSTALL) $(INSTLOPTS) fmgr.h $(HEADERDIR)/fmgr.h
|
||||
$(INSTALL) $(INSTLOPTS) global1.bki.source \
|
||||
$(D_LIBDIR)/global1.bki.source
|
||||
$(INSTALL) $(INSTLOPTS) local1_template1.bki.source \
|
||||
$(D_LIBDIR)/local1_template1.bki.source
|
||||
$(INSTALL) $(INSTLOPTS) libpq/pg_hba.conf.sample \
|
||||
$(DESTDIR)$(LIBDIR)/pg_hba.conf.sample
|
||||
|
||||
# so we can get the UID of the postgres owner (w/o moving pg_id to
|
||||
# src/tools). We just want the vanilla LDFLAGS for pg_id
|
||||
IDLDFLAGS:= $(LDFLAGS)
|
||||
ifeq ($(PORTNAME), hpux)
|
||||
ifeq ($(CC), cc)
|
||||
IDLDFLAGS+= -Aa -D_HPUX_SOURCE
|
||||
endif
|
||||
endif
|
||||
|
||||
CLEANFILES+= postgres pg_id fmgr.h
|
||||
$(D_LIBDIR)/pg_hba.conf.sample
|
||||
|
||||
$(D_BINDIR) $(D_LIBDIR) $(HEADERDIR):
|
||||
mkdir $@
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
|
@ -242,30 +283,15 @@ CLEANFILES+= postgres pg_id fmgr.h
|
|||
IDFILE= ID
|
||||
.PHONY: $(IDFILE)
|
||||
$(IDFILE):
|
||||
$(CURDIR)/makeID $(PORTNAME)
|
||||
./makeID $(PORTNAME)
|
||||
|
||||
#
|
||||
# Special rule to generate cpp'd version of a .c file. This is
|
||||
# especially useful given all the hellish macro processing going on.
|
||||
# The cpp'd version has a .C suffix. To create foo.C from foo.c, just
|
||||
# type
|
||||
# bmake foo.C
|
||||
# make foo.C
|
||||
#
|
||||
%.cpp: %.c
|
||||
$(CC) -E $(CFLAGS) $(<:.C=.c) | cat -s | cb | tr -s '\012*' '\012' > $(objdir)/$(@F)
|
||||
|
||||
cppall: $(SRCS:.c=.cpp)
|
||||
|
||||
#
|
||||
# To use Purify (SunOS only), define PURIFY to be the path (and
|
||||
# options) with which to invoke the Purify loader. Only the executable
|
||||
# needs to be loaded with Purify.
|
||||
#
|
||||
# PURIFY = /usr/sww/bin/purify -cache-dir=/usr/local/postgres/src/backend/purify-cache
|
||||
#.if defined(PURIFY)
|
||||
#${PROG}: $(POSTGRES_DEPEND) $(OBJS) $(EXPORTS)
|
||||
# ${PURIFY} ${CC} ${LDFLAGS} -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(notdir $(OBJS))) $(LDADD)
|
||||
#
|
||||
#CLEANFILES+= .purify* .pure .lock.*.o *_pure_*.o *.pure_*link*
|
||||
#.endif
|
||||
|
||||
$(CC) -E $(CFLAGS) $(<:.C=.c) | cat -s | cb | tr -s '\012*' '\012' \
|
||||
> $(@F)
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for the access methods module
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/Makefile,v 1.1 1996/10/27 09:45:42 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o:
|
||||
$(MAKE) -C common SUBSYS.o
|
||||
$(MAKE) -C gist SUBSYS.o
|
||||
$(MAKE) -C hash SUBSYS.o
|
||||
$(MAKE) -C heap SUBSYS.o
|
||||
$(MAKE) -C index SUBSYS.o
|
||||
$(MAKE) -C rtree SUBSYS.o
|
||||
$(MAKE) -C nbtree SUBSYS.o
|
||||
$(MAKE) -C transam SUBSYS.o
|
||||
$(LD) -r -o SUBSYS.o \
|
||||
common/SUBSYS.o gist/SUBSYS.o hash/SUBSYS.o heap/SUBSYS.o \
|
||||
index/SUBSYS.o rtree/SUBSYS.o nbtree/SUBSYS.o transam/SUBSYS.o
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o
|
||||
$(MAKE) -C common clean
|
||||
$(MAKE) -C gist clean
|
||||
$(MAKE) -C hash clean
|
||||
$(MAKE) -C heap clean
|
||||
$(MAKE) -C index clean
|
||||
$(MAKE) -C rtree clean
|
||||
$(MAKE) -C nbtree clean
|
||||
$(MAKE) -C transam clean
|
||||
|
||||
.DEFAULT:
|
||||
$(MAKE) -C common $@
|
||||
$(MAKE) -C gist $@
|
||||
$(MAKE) -C hash $@
|
||||
$(MAKE) -C heap $@
|
||||
$(MAKE) -C index $@
|
||||
$(MAKE) -C rtree $@
|
||||
$(MAKE) -C nbtree $@
|
||||
$(MAKE) -C transam $@
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the access methods module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/Attic/Makefile.inc,v 1.2 1996/08/26 06:26:37 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
accdir=$(CURDIR)/access
|
||||
VPATH:=$(VPATH):$(accdir):\
|
||||
$(accdir)/common:$(accdir)/gist:$(accdir)/hash:$(accdir)/heap:\
|
||||
$(accdir)/index:$(accdir)/rtree:$(accdir)/nbtree:$(accdir)/transam
|
||||
|
||||
|
||||
SUBSRCS=
|
||||
include $(accdir)/common/Makefile.inc
|
||||
include $(accdir)/gist/Makefile.inc
|
||||
include $(accdir)/hash/Makefile.inc
|
||||
include $(accdir)/heap/Makefile.inc
|
||||
include $(accdir)/index/Makefile.inc
|
||||
include $(accdir)/rtree/Makefile.inc
|
||||
include $(accdir)/nbtree/Makefile.inc
|
||||
include $(accdir)/transam/Makefile.inc
|
||||
SRCS_ACCESS:= $(SUBSRCS)
|
||||
|
||||
HEADERS+= attnum.h funcindex.h genam.h gist.h hash.h \
|
||||
heapam.h hio.h htup.h ibit.h iqual.h istrat.h \
|
||||
itup.h nbtree.h printtup.h relscan.h rtree.h \
|
||||
sdir.h skey.h strat.h transam.h tupdesc.h tupmacs.h \
|
||||
valid.h xact.h
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for access/common
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/common/Makefile,v 1.1 1996/10/27 09:45:49 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = heaptuple.o heapvalid.o indextuple.o indexvalid.o printtup.o \
|
||||
scankey.o tupdesc.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
heapvalid.o tupdesc.o: ../../fmgr.h
|
||||
|
||||
../../fmgr.h:
|
||||
$(MAKE) -C ../.. fmgr.h
|
||||
|
||||
dep: ../../fmgr.h
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for access/common
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/common/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:09 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= heaptuple.c heapvalid.c indextuple.c indexvalid.c printtup.c \
|
||||
scankey.c tupdesc.c
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for access/gist
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/gist/Makefile,v 1.1 1996/10/27 09:45:57 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = gist.o gistget.o gistscan.o giststrat.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for access/rtree (R-Tree access method)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# /usr/local/devel/pglite/cvs/src/backend/access/rtree/Makefile.inc,v 1.2 1995/03/21 06:50:48 andrew Exp
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= gist.c gistget.c gistscan.c giststrat.c
|
||||
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for access/hash
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/hash/Makefile,v 1.1 1996/10/27 09:46:08 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = hash.o hashfunc.o hashinsert.o hashovfl.o hashpage.o hashscan.o \
|
||||
hashsearch.o hashstrat.o hashutil.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for access/hash (hash access method)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:10 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= hash.c hashfunc.c hashinsert.c hashovfl.c hashpage.c hashscan.c \
|
||||
hashsearch.c hashstrat.c hashutil.c
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for access/heap
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/heap/Makefile,v 1.1 1996/10/27 09:46:16 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = heapam.o hio.o stats.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for access/heap
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/heap/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:11 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= heapam.c hio.c stats.c
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for access/index
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/index/Makefile,v 1.1 1996/10/27 09:46:25 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = genam.o indexam.o istrat.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for access/index
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/index/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:11 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= genam.c indexam.c istrat.c
|
|
@ -0,0 +1,38 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for access/nbtree
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.1 1996/10/27 09:46:32 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = nbtcompare.o nbtinsert.o nbtpage.o nbtree.o nbtscan.o nbtsearch.o \
|
||||
nbtstrat.o nbtutils.o nbtsort.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for access/nbtree (btree acess methods)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:11 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= nbtcompare.c nbtinsert.c nbtpage.c nbtree.c nbtscan.c nbtsearch.c \
|
||||
nbtstrat.c nbtutils.c nbtsort.c
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for access/rtree
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/Makefile,v 1.1 1996/10/27 09:46:40 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = rtget.o rtproc.o rtree.o rtscan.o rtstrat.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for access/rtree (R-Tree access method)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:12 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= rtget.c rtproc.c rtree.c rtscan.c rtstrat.c
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for access/transam
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/transam/Makefile,v 1.1 1996/10/27 09:46:48 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = transam.o transsup.o varsup.o xact.o xid.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for access/transam
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:13 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= transam.c transsup.c varsup.c xact.c xid.c
|
|
@ -0,0 +1,71 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for the bootstrap module
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.1 1996/10/27 09:46:59 bryanh Exp $
|
||||
#
|
||||
#
|
||||
# We must build bootparse.c and bootscanner.c with yacc and lex and sed,
|
||||
# but bootstrap.c is part of the distribution.
|
||||
#
|
||||
# Another kinda weird Makefile cause we need two
|
||||
# scanner/parsers in the backend and most yaccs and lexs
|
||||
# don't have the prefix option.
|
||||
#
|
||||
# sed files are HACK CITY! - redo...
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS += $(INCLUDE_OPT)
|
||||
|
||||
BOOTYACCS = bootstrap_tokens.h bootparse.c
|
||||
|
||||
OBJS = bootparse.o bootscanner.o bootstrap.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
ld -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
# bootstrap.o's dependency on bootstrap_tokens.h is computed by the
|
||||
# make depend, but we state it here explicitly anyway because
|
||||
# bootstrap_tokens.h doesn't even exist at first and if user fails to
|
||||
# do make depend, we still want the build to succeed.
|
||||
|
||||
bootstrap.o: bootstrap_tokens.h
|
||||
|
||||
bootstrap_tokens.h bootparse.c: bootparse.y
|
||||
$(YACC) $(YFLAGS) $<
|
||||
sed -f boot.sed < y.tab.c > bootparse.c
|
||||
mv y.tab.h bootstrap_tokens.h
|
||||
rm -f y.tab.c
|
||||
|
||||
bootscanner.c: bootscanner.l
|
||||
$(LEX) $<
|
||||
sed -f boot.sed < lex.yy.c > bootscanner.c
|
||||
rm -f lex.yy.c
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS) bootparse.c bootstrap_tokens.h bootscanner.c
|
||||
# And the garbage that might have been left behind by partial build:
|
||||
rm -f y.tab.h y.tab.c y.output lex.yy.c
|
||||
|
||||
# This is unusual: We actually have to build some of the parts before
|
||||
# we know what the header file dependencies are.
|
||||
dep: bootparse.c bootscanner.c bootstrap_tokens.h
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the bootstrap module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Attic/Makefile.inc,v 1.2 1996/09/26 15:40:37 momjian Exp $
|
||||
#
|
||||
#
|
||||
# Another kinda weird Makefile.inc cause we need two
|
||||
# scanner/parsers in the backend and most yaccs and lexs
|
||||
# don't have the prefix option.
|
||||
#
|
||||
# sed files are HACK CITY! - redo...
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
bootdir= $(CURDIR)/bootstrap
|
||||
VPATH:= $(VPATH):$(bootdir)
|
||||
|
||||
BOOTYACCS= bootstrap_tokens.h bootparse.c
|
||||
#BOOTYACCS= bootparse.c
|
||||
|
||||
SRCS_BOOTSTRAP= bootparse.c bootscanner.c bootstrap.c
|
||||
|
||||
$(BOOTYACCS): bootparse.y
|
||||
cd $(objdir); \
|
||||
$(YACC) $(YFLAGS) $<; \
|
||||
sed -f $(bootdir)/boot.sed < y.tab.c > bootparse.c; \
|
||||
mv y.tab.h bootstrap_tokens.h; \
|
||||
rm -f y.tab.c
|
||||
|
||||
$(objdir)/bootparse.o: bootparse.c
|
||||
$(cc_inobjdir)
|
||||
|
||||
|
||||
bootscanner.c: bootscanner.l
|
||||
cd $(objdir); \
|
||||
$(LEX) $<; \
|
||||
sed -f $(bootdir)/boot.sed < lex.yy.c > bootscanner.c; \
|
||||
rm -f lex.yy.c
|
||||
|
||||
$(objdir)/bootscanner.o: bootscanner.c
|
||||
$(cc_inobjdir)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# The following insures that y.tab.h gets made as bootstrap.c
|
||||
# includes it
|
||||
#
|
||||
bootstrap.o: $(BOOTYACCS)
|
||||
|
||||
POSTGRES_DEPEND+= $(BOOTYACCS) bootscanner.c
|
||||
|
||||
|
||||
CLEANFILES+= bootscanner.c $(BOOTYACCS) y.tab.h y.output
|
||||
|
||||
HEADERS+= bootstrap.h
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for catalog
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/catalog/Makefile,v 1.1 1996/10/27 09:47:07 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = catalog.o heap.o index.o indexing.o \
|
||||
pg_aggregate.o pg_operator.o pg_proc.o pg_type.o
|
||||
|
||||
all: SUBSYS.o global1.bki.source local1_template1.bki.source
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
GENBKI= ./genbki.sh
|
||||
|
||||
GLOBALBKI_SRCS= $(addprefix ../../include/catalog/, \
|
||||
pg_database.h pg_demon.h pg_magic.h pg_defaults.h \
|
||||
pg_variable.h pg_server.h pg_user.h pg_hosts.h \
|
||||
pg_group.h pg_log.h pg_time.h \
|
||||
)
|
||||
|
||||
LOCALBKI_SRCS= $(addprefix ../../include/catalog/, \
|
||||
pg_proc.h pg_type.h pg_attribute.h pg_class.h \
|
||||
pg_inherits.h pg_index.h pg_version.h pg_statistic.h \
|
||||
pg_operator.h pg_opclass.h pg_am.h pg_amop.h pg_amproc.h \
|
||||
pg_language.h pg_parg.h \
|
||||
pg_aggregate.h pg_ipl.h pg_inheritproc.h \
|
||||
pg_rewrite.h pg_listener.h indexing.h \
|
||||
)
|
||||
|
||||
global1.bki.source: $(GENBKI) $(GLOBALBKI_SRCS)
|
||||
sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(GLOBALBKI_SRCS) > $@
|
||||
|
||||
local1_template1.bki.source: $(GENBKI) $(LOCALBKI_SRCS)
|
||||
sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(LOCALBKI_SRCS) > $@
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS) global1.bki.source local1_template1.bki.source
|
||||
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the system catalogs module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/Makefile.inc,v 1.3 1996/09/26 04:22:49 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
catdir=$(CURDIR)/catalog
|
||||
VPATH:=$(VPATH):$(catdir)
|
||||
|
||||
cat_hdr_dir= ../include/catalog
|
||||
|
||||
SRCS_CATALOG= catalog.c heap.c index.c indexing.c \
|
||||
pg_aggregate.c pg_operator.c pg_proc.c pg_type.c
|
||||
|
||||
HEADERS+= catalog.h catname.h heap.h index.h indexing.h pg_aggregate.h \
|
||||
pg_am.h pg_amop.h pg_amproc.h pg_attribute.h pg_database.h \
|
||||
pg_defaults.h pg_demon.h pg_group.h pg_index.h pg_inheritproc.h \
|
||||
pg_inherits.h pg_ipl.h pg_language.h pg_listener.h \
|
||||
pg_log.h pg_magic.h pg_opclass.h pg_operator.h pg_parg.h \
|
||||
pg_proc.h pg_class.h \
|
||||
pg_rewrite.h pg_server.h pg_statistic.h pg_time.h pg_type.h \
|
||||
pg_user.h pg_variable.h pg_version.h
|
||||
|
||||
#
|
||||
# The following is to create the .bki.source files.
|
||||
# TODO: sort headers, (figure some automatic way of of determining
|
||||
# the bki sources?)
|
||||
#
|
||||
# XXX - more grot. includes names and uid's in the header file. FIX THIS
|
||||
# (not sure if i got this right - which do i need - or should i
|
||||
# burn the whole damned thing)
|
||||
#
|
||||
ifdef ALLOW_PG_GROUP
|
||||
BKIOPTS= -DALLOW_PG_GROUP
|
||||
endif
|
||||
|
||||
GENBKI= $(catdir)/genbki.sh
|
||||
|
||||
GLOBALBKI_SRCS= $(addprefix $(cat_hdr_dir)/, \
|
||||
pg_database.h pg_demon.h pg_magic.h pg_defaults.h \
|
||||
pg_variable.h pg_server.h pg_user.h pg_hosts.h \
|
||||
pg_group.h pg_log.h pg_time.h \
|
||||
)
|
||||
|
||||
LOCALBKI_SRCS= $(addprefix $(cat_hdr_dir)/, \
|
||||
pg_proc.h pg_type.h pg_attribute.h pg_class.h \
|
||||
pg_inherits.h pg_index.h pg_version.h pg_statistic.h \
|
||||
pg_operator.h pg_opclass.h pg_am.h pg_amop.h pg_amproc.h \
|
||||
pg_language.h pg_parg.h \
|
||||
pg_aggregate.h pg_ipl.h pg_inheritproc.h \
|
||||
pg_rewrite.h pg_listener.h indexing.h \
|
||||
)
|
||||
|
||||
global1.bki.source: $(GENBKI) $(GLOBALBKI_SRCS)
|
||||
sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(GLOBALBKI_SRCS) > $(objdir)/$(@F)
|
||||
|
||||
local1_template1.bki.source: $(GENBKI) $(LOCALBKI_SRCS)
|
||||
sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(LOCALBKI_SRCS) > $(objdir)/$(@F)
|
||||
|
||||
CLEANFILES+= global1.bki.source local1_template1.bki.source
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for commands
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/commands/Makefile,v 1.1 1996/10/27 09:47:14 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = async.o creatinh.o command.o copy.o defind.o define.o \
|
||||
purge.o remove.o rename.o vacuum.o version.o view.o cluster.o \
|
||||
recipe.o explain.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the commands module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/commands/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:18 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
VPATH:=$(VPATH):$(CURDIR)/commands
|
||||
|
||||
|
||||
SRCS_COMMANDS= async.c creatinh.c command.c copy.c defind.c define.c \
|
||||
purge.c remove.c rename.c vacuum.c version.c view.c cluster.c \
|
||||
recipe.c explain.c
|
||||
|
||||
HEADERS+= async.h command.h copy.h creatinh.h defrem.h purge.h \
|
||||
rename.h vacuum.h version.h view.h cluster.h \
|
||||
recipe.h
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for executor
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.1 1996/10/27 09:47:26 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = execAmi.o execFlatten.o execJunk.o execMain.o \
|
||||
execProcnode.o execQual.o execScan.o execTuples.o \
|
||||
execUtils.o functions.o nodeAppend.o nodeAgg.o nodeHash.o \
|
||||
nodeHashjoin.o nodeIndexscan.o nodeMaterial.o nodeMergejoin.o \
|
||||
nodeNestloop.o nodeResult.o nodeSeqscan.o nodeSort.o \
|
||||
nodeUnique.o nodeTee.o nodeGroup.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the executor module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/executor/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:24 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
VPATH:= $(VPATH):$(CURDIR)/executor
|
||||
|
||||
SRCS_EXECUTOR= execAmi.c execFlatten.c execJunk.c execMain.c \
|
||||
execProcnode.c execQual.c execScan.c execTuples.c \
|
||||
execUtils.c functions.c nodeAppend.c nodeAgg.c nodeHash.c \
|
||||
nodeHashjoin.c nodeIndexscan.c nodeMaterial.c nodeMergejoin.c \
|
||||
nodeNestloop.c nodeResult.c nodeSeqscan.c nodeSort.c \
|
||||
nodeUnique.c nodeTee.c nodeGroup.c
|
||||
|
||||
HEADERS+= execFlatten.h execdebug.h execdefs.h execdesc.h \
|
||||
executor.h functions.h hashjoin.h nodeAgg.h nodeAppend.h \
|
||||
nodeHash.h nodeHashjoin.h nodeIndexscan.h nodeMaterial.h \
|
||||
nodeMergejoin.h nodeNestloop.h nodeResult.h \
|
||||
nodeSeqscan.h nodeSort.h nodeUnique.h tuptable.h nodeTee.h \
|
||||
nodeGroup.h
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# this makefile is only use for collecting HEADERS
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/include/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:28 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
VPATH:= $(VPATH):$(CURDIR)/include
|
||||
|
||||
HEADERS+= c.h libpq-fe.h miscadmin.h postgres.h
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for lib (miscellaneous stuff)
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/lib/Makefile,v 1.1 1996/10/27 09:47:37 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = bit.o fstack.o hasht.o lispsort.o qsort.o stringinfo.o dllist.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the lib module (miscellaneous stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/lib/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:28 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
VPATH:=$(VPATH):$(CURDIR)/lib
|
||||
|
||||
|
||||
SRCS_LIB= bit.c fstack.c hasht.c lispsort.c qsort.c stringinfo.c dllist.c
|
||||
|
||||
HEADERS+= fstack.h hasht.h lispsort.h qsort.h stringinfo.h dllist.h
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for libpq subsystem (backend half of libpq interface)
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.1 1996/10/27 09:47:47 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
CFLAGS+= -DPOSTPORT='"$(POSTPORT)"'
|
||||
|
||||
# kerberos flags
|
||||
ifdef KRBVERS
|
||||
CFLAGS+= $(KRBFLAGS)
|
||||
LDADD+= $(KRBLIBS)
|
||||
endif
|
||||
|
||||
OBJS = be-dumpdata.o be-fsstubs.o be-pqexec.o \
|
||||
auth.o hba.o pqcomm.o portal.o util.o portalbuf.o pqpacket.o pqsignal.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
be-dumpdata.o be-pqexec.o: ../fmgr.h
|
||||
|
||||
../fmgr.h:
|
||||
$(MAKE) -C .. fmgr.h
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the (backend side) libpq module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/libpq/Attic/Makefile.inc,v 1.2 1996/10/11 09:47:11 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# The frontend libpq interfaces to the backend through these files.
|
||||
#
|
||||
VPATH:= $(VPATH):$(CURDIR)/libpq
|
||||
|
||||
SRCS_LIBPQ= be-dumpdata.c be-fsstubs.c be-pqexec.c
|
||||
|
||||
#
|
||||
# These files are shared with the frontend library.
|
||||
#
|
||||
SRCS_LIBPQ+= auth.c hba.c pqcomm.c portal.c util.c portalbuf.c \
|
||||
pqpacket.c pqsignal.c
|
||||
|
||||
HEADERS+= auth.h hba.h be-fsstubs.h libpq-be.h libpq-fs.h libpq.h \
|
||||
pqcomm.h pqsignal.h
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for main
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/main/Makefile,v 1.1 1996/10/27 09:47:59 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = main.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the main() of the postgres backend
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/main/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:31 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
VPATH:= $(VPATH):$(CURDIR)/main
|
||||
|
||||
SRCS_MAIN= main.c
|
|
@ -0,0 +1,39 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for nodes
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/nodes/Makefile,v 1.1 1996/10/27 09:48:06 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = nodeFuncs.o nodes.o list.o \
|
||||
copyfuncs.o equalfuncs.o makefuncs.o outfuncs.o readfuncs.o \
|
||||
print.o read.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the nodes module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/nodes/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:32 scrappy Exp $
|
||||
#
|
||||
# NOTES
|
||||
# Originally, the nodes module is a home-brew, C++ like inheritance
|
||||
# system. However, the automatically generated tags, accessor functions
|
||||
# and the header files themselves are difficult to maintain. We need
|
||||
# real language support. Emulation doesn't quite do it...
|
||||
#
|
||||
# See nodes/README for an explanation of the new no-frills nodes
|
||||
# structures.
|
||||
# - ay 11/5/94
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
VPATH:= $(VPATH):$(CURDIR)/nodes
|
||||
|
||||
|
||||
SRCS_NODES= nodeFuncs.c nodes.c list.c \
|
||||
copyfuncs.c equalfuncs.c makefuncs.c outfuncs.c readfuncs.c \
|
||||
print.c read.c
|
||||
|
||||
HEADERS+= execnodes.h makefuncs.h memnodes.h nodeFuncs.h nodes.h \
|
||||
params.h parsenodes.h pg_list.h plannodes.h primnodes.h relation.h
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for optimizer
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/optimizer/Makefile,v 1.1 1996/10/27 09:48:14 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o:
|
||||
$(MAKE) -C path SUBSYS.o
|
||||
$(MAKE) -C plan SUBSYS.o
|
||||
$(MAKE) -C prep SUBSYS.o
|
||||
$(MAKE) -C util SUBSYS.o
|
||||
$(LD) -r -o SUBSYS.o \
|
||||
path/SUBSYS.o plan/SUBSYS.o prep/SUBSYS.o util/SUBSYS.o
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o
|
||||
$(MAKE) -C path clean
|
||||
$(MAKE) -C plan clean
|
||||
$(MAKE) -C prep clean
|
||||
$(MAKE) -C util clean
|
||||
|
||||
.DEFAULT:
|
||||
$(MAKE) -C path $@
|
||||
$(MAKE) -C plan $@
|
||||
$(MAKE) -C prep $@
|
||||
$(MAKE) -C util $@
|
|
@ -1,29 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the optimizer module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/optimizer/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:34 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
optdir=$(CURDIR)/optimizer
|
||||
VPATH:=$(VPATH):$(optdir):\
|
||||
$(optdir)/path:$(optdir)/prep:$(optdir)/util:$(optdir)/plan
|
||||
|
||||
SUBSRCS=
|
||||
include $(optdir)/path/Makefile.inc
|
||||
include $(optdir)/prep/Makefile.inc
|
||||
include $(optdir)/util/Makefile.inc
|
||||
include $(optdir)/plan/Makefile.inc
|
||||
SRCS_OPTIMIZER:= $(SUBSRCS)
|
||||
|
||||
HEADERS+= clauseinfo.h clauses.h cost.h internal.h joininfo.h keys.h \
|
||||
ordering.h pathnode.h paths.h plancat.h planmain.h \
|
||||
planner.h prep.h tlist.h var.h xfunc.h
|
||||
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for optimizer/path
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/optimizer/path/Makefile,v 1.1 1996/10/27 09:48:20 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = allpaths.o clausesel.o costsize.o hashutils.o indxpath.o \
|
||||
joinpath.o joinrels.o joinutils.o mergeutils.o orindxpath.o \
|
||||
prune.o
|
||||
|
||||
# not ready yet: predmig.o xfunc.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for optimizer/path
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:35 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS= allpaths.c clausesel.c costsize.c hashutils.c indxpath.c \
|
||||
joinpath.c joinrels.c joinutils.c mergeutils.c orindxpath.c \
|
||||
prune.c
|
||||
|
||||
# not ready yet: predmig.c xfunc.c
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for optimizer/plan
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/optimizer/plan/Makefile,v 1.1 1996/10/27 09:48:33 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = createplan.o initsplan.o planmain.o planner.o setrefs.o
|
||||
|
||||
# not ready yet: predmig.o xfunc.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for optimizer/plan
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/optimizer/plan/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:37 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= createplan.c initsplan.c planmain.c planner.c \
|
||||
setrefs.c
|
|
@ -0,0 +1,39 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for optimizer/prep
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/optimizer/prep/Makefile,v 1.1 1996/10/27 09:48:46 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = archive.o prepqual.o preptlist.o prepunion.o
|
||||
|
||||
# not ready yet: predmig.o xfunc.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for optimizer/prep
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/optimizer/prep/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:37 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= archive.c prepqual.c preptlist.c prepunion.c
|
|
@ -0,0 +1,40 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for optimizer/util
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/optimizer/util/Makefile,v 1.1 1996/10/27 09:48:53 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = clauseinfo.o clauses.o indexnode.o internal.o plancat.o \
|
||||
joininfo.o keys.o ordering.o pathnode.o relnode.o tlist.o var.o
|
||||
|
||||
# not ready yet: predmig.o xfunc.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for optimizer/util
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:38 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= clauseinfo.c clauses.c indexnode.c internal.c plancat.c \
|
||||
joininfo.c keys.c ordering.c pathnode.c relnode.c tlist.c var.c
|
|
@ -0,0 +1,58 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for parser
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.1 1996/10/27 09:49:05 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = analyze.o catalog_utils.o dbcommands.o gram.o \
|
||||
keywords.o parser.o parse_query.o scan.o scansup.o sysfunc.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
gram.c parse.h: gram.y
|
||||
$(YACC) $(YFLAGS) $<
|
||||
mv y.tab.c gram.c
|
||||
mv y.tab.h parse.h
|
||||
|
||||
scan.c: scan.l
|
||||
$(LEX) $<
|
||||
mv lex.yy.c scan.c
|
||||
|
||||
# The following dependencies on parse.h are computed by
|
||||
# make depend, but we state them here explicitly anyway because
|
||||
# parse.h doesn't even exist at first and if user fails to
|
||||
# do make depend, we still want the build to succeed.
|
||||
|
||||
analyze.o keywords.o scan.o: parse.h
|
||||
|
||||
# This is unusual: We actually have to build some of the parts before
|
||||
# we know what the header file dependencies are.
|
||||
dep: gram.c scan.c
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS) gram.c parse.h scan.c
|
||||
# And the garbage that might have been left behind by partial build:
|
||||
rm -f y.tab.c y.tab.h lex.yy.c
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the parser module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/parser/Attic/Makefile.inc,v 1.5 1996/09/26 15:40:45 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
VPATH:= $(VPATH):$(CURDIR)/parser
|
||||
|
||||
PARSEYACCS= gram.c parse.h
|
||||
#PARSEYACCS= gram.c
|
||||
|
||||
$(PARSEYACCS): gram.y
|
||||
$(YACC) $(YFLAGS) $<
|
||||
mv y.tab.c $(objdir)/gram.c
|
||||
mv y.tab.h $(objdir)/parse.h
|
||||
|
||||
$(objdir)/gram.o: gram.c
|
||||
$(cc_inobjdir)
|
||||
|
||||
|
||||
scan.c: scan.l
|
||||
cd $(objdir); $(LEX) $<; mv lex.yy.c scan.c
|
||||
|
||||
$(objdir)/scan.o: scan.c
|
||||
$(cc_inobjdir)
|
||||
|
||||
|
||||
SRCS_PARSER+= analyze.c catalog_utils.c dbcommands.c gram.c \
|
||||
keywords.c parser.c parse_query.c scan.c scansup.c sysfunc.c
|
||||
|
||||
CLEANFILES+= scan.c ${PARSEYACCS}
|
||||
|
||||
POSTGRES_DEPEND+= scan.c $(PARSEYACCS)
|
||||
|
||||
HEADERS+= catalog_utils.h io.h parse_query.h parsetree.h \
|
||||
dbcommands.h keywords.h sysfunc.c
|
||||
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/BSD44_derived
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/BSD44_derived/Attic/Makefile,v 1.1 1996/10/27 09:49:20 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = dl.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/BSD44_derived (for OSs derived from 4.4-lite BSD)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/BSD44_derived/Attic/Makefile.inc,v 1.3 1996/10/19 06:36:52 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# 4.4-lite BSD-derived OSs require that the lex library be included,
|
||||
# in case yywrap is defined
|
||||
#
|
||||
LDADD+= -ll
|
||||
|
||||
HAVE_Cplusplus= true
|
||||
|
||||
#
|
||||
# 4.4-lite BSD-derived OSs have a little trouble with partially-implemented
|
||||
# dynamic loading soutines. See the comments in port-protos.h.
|
||||
#
|
||||
SUBSRCS= dl.c
|
||||
|
||||
HEADERS+= float.h machine.h port-protos.h
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for the port-specific subsystem of the backend
|
||||
#
|
||||
# You must invoke this make file with the PORTNAME variable set to the
|
||||
# name of a port, i.e. the name of a subdirectory of the current directory.
|
||||
# Example:
|
||||
#
|
||||
# make SUBSYS.o PORTNAME=linux
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/Makefile,v 1.1 1996/10/27 09:49:14 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
ifndef PORTNAME
|
||||
.DEFAULT all:
|
||||
@echo "Error: Must invoke make with PORTNAME= argument."
|
||||
@false
|
||||
else
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o:
|
||||
$(MAKE) -C $(PORTNAME) SUBSYS.o
|
||||
cp $(PORTNAME)/SUBSYS.o .
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o
|
||||
$(MAKE) -C $(PORTNAME) clean
|
||||
|
||||
.DEFAULT:
|
||||
$(MAKE) -C $(PORTNAME) $@
|
||||
|
||||
|
||||
endif
|
|
@ -1,21 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the port module (for code specific to various UNIX
|
||||
# platforms)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:41 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
portdir= $(CURDIR)/port/$(PORTNAME)
|
||||
VPATH:= $(VPATH):$(portdir)
|
||||
|
||||
SUBSRCS=
|
||||
include $(portdir)/Makefile.inc
|
||||
SRCS_PORT:= $(SUBSRCS)
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/aix
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/aix/Attic/Makefile,v 1.1 1996/10/27 09:49:27 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = dlfcn.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/aix (AIX specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/aix/Attic/Makefile.inc,v 1.3 1996/10/18 04:46:55 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# aix has fast linkers and don't need the BIGOBJ stuff.
|
||||
#
|
||||
BIGOBJS=false
|
||||
|
||||
LDFLAGS+= -bE:$(objdir)/$(PROG).exp
|
||||
|
||||
LDADD+= -ll -lld
|
||||
|
||||
HEADERS+= dlfcn.h machine.h port-protos.h
|
||||
|
||||
SUBSRCS+= dlfcn.c
|
||||
|
||||
MKLDEXPORT=$(POSTGRESDIR)/src/backend/port/aix/mkldexport.sh
|
||||
|
||||
${PROG}.exp: ${PROG}.noexp
|
||||
mv -f $(objdir)/${PROG}.noexp $(objdir)/${PROG}
|
||||
$(MKLDEXPORT) $(objdir)/${PROG} ${BINDIR} > $(objdir)/${PROG}.exp
|
||||
mv -f $(objdir)/${PROG} $(objdir)/${PROG}.noexp
|
||||
|
||||
${PROG}.noexp: ${OBJS}
|
||||
touch -f $(objdir)/${PROG}.exp
|
||||
${CC} ${LDFLAGS} -o $(objdir)/${PROG}.noexp ${OBJS} ${LDADD}
|
||||
|
||||
EXPORTS= ${PROG}.exp
|
||||
|
||||
CLEANFILES+= ${PROG}.noexp ${PROG}.exp
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/alpha
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/alpha/Attic/Makefile,v 1.1 1996/10/27 09:49:37 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = port.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/alpha (Alpha OSF/1 specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/alpha/Attic/Makefile.inc,v 1.2 1996/10/18 04:47:04 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
LDADD+= -lln
|
||||
|
||||
#
|
||||
# The YACC grammar is too big..
|
||||
#
|
||||
#.if !defined(CDEBUG)
|
||||
##CFLAGS+= -Olimit 2000
|
||||
#.endif
|
||||
|
||||
HEADERS+= machine.h port-protos.h
|
||||
|
||||
SUBSRCS= port.c
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/bsdi
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/bsdi/Attic/Makefile,v 1.1 1996/10/27 09:49:44 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = dynloader.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/bsdi
|
||||
#
|
||||
# NOTES
|
||||
# The BSD/OS port is included here by courtesy of Kurt Lidl.
|
||||
#
|
||||
# (5) 1994, Kurt Lidl, lidl@pix.com
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
LDADD+= -ldld -lipc
|
||||
SUBSRCS= dynloader.c
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/bsdi_2_1
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/bsdi_2_1/Attic/Makefile,v 1.1 1996/10/27 09:49:50 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = port.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/bsdi_2_1
|
||||
#
|
||||
# NOTES
|
||||
# The BSD/OS port is included here by courtesy of Kurt Lidl.
|
||||
#
|
||||
# (5) 1994, Kurt Lidl, lidl@pix.com
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
LDADD+= -ldl -lipc
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/dgux
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/dgux/Attic/Makefile,v 1.1 1996/10/27 09:49:57 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = port.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/linux (Linux specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/dgux/Attic/Makefile.inc,v 1.3 1996/10/18 04:47:13 scrappy Exp $
|
||||
#
|
||||
# NOTES
|
||||
# The Linux port is included here by courtesy of Kai Petzke.
|
||||
#
|
||||
# (C) 1994, Kai Petzke, wpp@marie.physik.tu-berlin.de
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
BIGOBJS= false
|
||||
|
||||
HEADERS+= machine.h port-protos.h
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/hpux
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/Makefile,v 1.1 1996/10/27 09:50:12 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = port.o dynloader.o tas.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/hpux (HP-UX specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/Makefile.inc,v 1.2 1996/10/18 00:33:22 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# HP-UX needs:
|
||||
# -W l,-E export symbols for linking with the shared libraries
|
||||
# dynamic loader
|
||||
# -W p,-H400000 expand cpp #define table size so the Nodes files don't
|
||||
# break it
|
||||
#
|
||||
# -W p,-H400000
|
||||
ifeq ($(CC), cc)
|
||||
CFLAGS+= -W l,-E
|
||||
LDFLAGS+= -W l,-E
|
||||
LDADD+= -ll -ldld
|
||||
else
|
||||
ifeq ($(CC), gcc)
|
||||
LDADD+= -ll /usr/lib/libdld.sl
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# The #pragma trick required on 8.07 no longer works -- the #pragma
|
||||
# is thoroughly broken. However, the +u flag has been extended to
|
||||
# handle alignment requirement arguments (defaulting to 2) for things
|
||||
# other than struct references, so the #pragma is no longer needed.
|
||||
#
|
||||
|
||||
#
|
||||
# (1) The YACC grammar is too big..
|
||||
# (HP-UX 9.0x, x<2, added basic block limits for +O2; 9.0x, x>=2, changed
|
||||
# the syntax to something else.)
|
||||
#
|
||||
# (2) The 9.00 optimizer chokes on some of our source.
|
||||
#
|
||||
#.if (${HPUX_MAJOR} == "09")
|
||||
#. if !defined(CDEBUG)
|
||||
#. if (${HPUX_MINOR} == "00" || ${HPUX_MINOR} == "01")
|
||||
#CFLAGS+= +Obb600
|
||||
#CFLAGS+= -DWEAK_C_OPTIMIZER
|
||||
#. else
|
||||
#CFLAGS+= +Onolimit
|
||||
#. endif
|
||||
#. endif
|
||||
#.endif
|
||||
|
||||
HEADERS+= fixade.h machine.h port-protos.h
|
||||
|
||||
SUBSRCS+= dynloader.c port.c tas.s
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/i386_solaris
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/i386_solaris/Attic/Makefile,v 1.1 1996/10/27 09:50:17 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = port.o tas.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/i386_solaris (X86/Solaris 2.x specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/i386_solaris/Attic/Makefile.inc,v 1.5 1996/10/18 04:48:16 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
LDADD+= -ll -ldl
|
||||
|
||||
SUBSRCS+= port.c tas.s
|
||||
|
||||
HEADERS+= machine.h port-protos.h rusagestub.h
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/irix5
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/irix5/Attic/Makefile,v 1.1 1996/10/27 09:50:24 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = port.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/irix5 (IRIX 5 specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# /usr/local/devel/pglite/cvs/src/backend/port/sparc_solaris/Makefile.inc,v 1.3 1995/03/21 06:51:21 andrew Exp
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
LDADD+= -ll
|
||||
|
||||
SUBSRCS+= port.c
|
||||
|
||||
HEADERS+= machine.h port-protos.h
|
|
@ -0,0 +1,40 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/linux
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/linux/Attic/Makefile,v 1.1 1996/10/27 09:50:31 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
ifdef LINUX_ELF
|
||||
OBJS = port.o
|
||||
else
|
||||
OBJS = dynloader.o
|
||||
endif
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/linux (Linux specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/linux/Attic/Makefile.inc,v 1.2 1996/10/18 00:33:32 scrappy Exp $
|
||||
#
|
||||
# NOTES
|
||||
# The Linux port is included here by courtesy of Kai Petzke.
|
||||
#
|
||||
# (C) 1994, Kai Petzke, wpp@marie.physik.tu-berlin.de
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# linux has fast linkers and don't need the BIGOBJ stuff.
|
||||
#
|
||||
BIGOBJS= false
|
||||
|
||||
|
||||
ifdef LINUX_ELF
|
||||
CC=gcc
|
||||
LDADD+= -ldl
|
||||
CFLAGS+= -DLINUX_ELF
|
||||
else
|
||||
LDADD+= -ldld
|
||||
SUBSRCS+= dynloader.c
|
||||
endif
|
||||
|
||||
HEADERS+= machine.h port-protos.h
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/sparc
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/sparc/Attic/Makefile,v 1.1 1996/10/27 09:50:43 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = strtol.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/sparc (SPARC/SunOS 4 specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/sparc/Attic/Makefile.inc,v 1.2 1996/10/18 04:48:32 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
LDADD+= -lln -ldl
|
||||
|
||||
#
|
||||
# SunOS 4 strtol is broken -- doesn't report overflow using errno.
|
||||
#
|
||||
SUBSRCS= strtol.c
|
||||
|
||||
HEADERS+= float.h machine.h port-protos.h
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/sparc_solaris
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/sparc_solaris/Attic/Makefile,v 1.1 1996/10/27 09:50:50 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = port.o tas.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/sparc_solaris (SPARC/Solaris 2.x specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/sparc_solaris/Attic/Makefile.inc,v 1.2 1996/10/18 04:48:47 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
LDADD+= -ll -ldl
|
||||
|
||||
SUBSRCS+= port.c tas.s
|
||||
|
||||
HEADERS+= machine.h port-protos.h rusagestub.h
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/svr4
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/svr4/Attic/Makefile,v 1.1 1996/10/27 09:50:57 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = port.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/svr4 (Intel x86/Intel SVR4 specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# /usr/local/devel/pglite/cvs/src/backend/port/svr4/Makefile.inc,v 1.3 1995/03/21 06:51:21 andrew Exp
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
LDADD+= -ll -ldl
|
||||
|
||||
SUBSRCS+= port.c
|
||||
|
||||
HEADERS+= machine.h port-protos.h rusagestub.h
|
|
@ -0,0 +1,36 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for port/ultrix
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/Makefile,v 1.1 1996/10/27 09:51:05 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = dynloader.o port.o strdup.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for port/ultrix (Ultrix4.x specific stuff)
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/Makefile.inc,v 1.2 1996/10/18 04:49:09 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
LDADD+= -ldl -lln
|
||||
|
||||
#
|
||||
# The YACC grammar is too big..
|
||||
#
|
||||
#.if !defined(CDEBUG)
|
||||
#CFLAGS+= -Olimit 2000
|
||||
#.endif
|
||||
|
||||
HEADERS+= dl.h machine.h port-protos.h
|
||||
|
||||
SUBSRCS+= dynloader.c port.c strdup.c
|
|
@ -1,14 +0,0 @@
|
|||
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
|
||||
|
||||
# regex sources
|
||||
.PATH: ${.CURDIR}/regex
|
||||
|
||||
CFLAGS+=-DPOSIX_MISTAKE
|
||||
|
||||
SRCS+= regcomp.c regerror.c regexec.c regfree.c
|
||||
|
||||
MAN3+= regex.0
|
||||
MAN7+= re_format.0
|
||||
|
||||
MLINKS+=regex.3 regcomp.3 regex.3 regexec.3 regex.3 regerror.3
|
||||
MLINKS+=regexec.3 regfree.3
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for postmaster
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.1 1996/10/27 09:51:20 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = postmaster.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the postmaster module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/postmaster/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:49 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
VPATH:= $(VPATH):$(CURDIR)/postmaster
|
||||
|
||||
SRCS_POSTMASTER= postmaster.c
|
|
@ -0,0 +1,39 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for regex
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.1 1996/10/27 09:51:27 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
CFLAGS+=-DPOSIX_MISTAKE
|
||||
|
||||
|
||||
OBJS = regcomp.o regerror.o regexec.o regfree.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
|
||||
|
||||
# regex sources
|
||||
VPATH:=$(VPATH):$(CURDIR)/regex
|
||||
|
||||
CFLAGS+=-DPOSIX_MISTAKE -I$(CURDIR)/regex
|
||||
|
||||
SRCS_REGEX= regcomp.c regerror.c regexec.c regfree.c
|
||||
|
||||
MAN3+= regex.0
|
||||
MAN7+= re_format.0
|
||||
|
||||
MLINKS+=regex.3 regcomp.3 regex.3 regexec.3 regex.3 regerror.3
|
||||
MLINKS+=regexec.3 regfree.3
|
|
@ -0,0 +1,38 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for rewrite
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/rewrite/Makefile,v 1.1 1996/10/27 09:51:38 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../..
|
||||
include ../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I.. \
|
||||
-I../port/$(PORTNAME) \
|
||||
-I../include \
|
||||
-I../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = rewriteRemove.o rewriteDefine.o \
|
||||
rewriteHandler.o rewriteManip.o rewriteSupport.o locks.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the rewrite rules module
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/rewrite/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:51 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
VPATH:= $(VPATH):$(CURDIR)/rewrite
|
||||
|
||||
|
||||
SRCS_REWRITE= rewriteRemove.c rewriteDefine.c \
|
||||
rewriteHandler.c rewriteManip.c rewriteSupport.c locks.c
|
||||
|
||||
HEADERS+= rewriteRemove.h rewriteDefine.h rewriteHandler.h \
|
||||
rewriteManip.h rewriteSupport.h locks.h prs2lock.h
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for the storage manager subsystem
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/Makefile,v 1.1 1996/10/27 09:51:49 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o:
|
||||
$(MAKE) -C buffer SUBSYS.o
|
||||
$(MAKE) -C file SUBSYS.o
|
||||
$(MAKE) -C ipc SUBSYS.o
|
||||
$(MAKE) -C large_object SUBSYS.o
|
||||
$(MAKE) -C lmgr SUBSYS.o
|
||||
$(MAKE) -C page SUBSYS.o
|
||||
$(MAKE) -C smgr SUBSYS.o
|
||||
$(LD) -r -o SUBSYS.o \
|
||||
buffer/SUBSYS.o file/SUBSYS.o ipc/SUBSYS.o large_object/SUBSYS.o \
|
||||
lmgr/SUBSYS.o page/SUBSYS.o smgr/SUBSYS.o
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o
|
||||
$(MAKE) -C buffer clean
|
||||
$(MAKE) -C file clean
|
||||
$(MAKE) -C ipc clean
|
||||
$(MAKE) -C large_object clean
|
||||
$(MAKE) -C lmgr clean
|
||||
$(MAKE) -C page clean
|
||||
$(MAKE) -C smgr clean
|
||||
|
||||
.DEFAULT:
|
||||
$(MAKE) -C buffer $@
|
||||
$(MAKE) -C file $@
|
||||
$(MAKE) -C ipc $@
|
||||
$(MAKE) -C large_object $@
|
||||
$(MAKE) -C lmgr $@
|
||||
$(MAKE) -C page $@
|
||||
$(MAKE) -C smgr $@
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for the storage modules
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:52 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
stordir= $(CURDIR)/storage
|
||||
VPATH:= $(VPATH):$(stordir):$(stordir)/buffer:$(stordir)/file:$(stordir)/ipc:\
|
||||
$(stordir)/large_object:$(stordir)/lmgr:$(stordir)/page:$(stordir)/smgr
|
||||
|
||||
SUBSRCS=
|
||||
include $(stordir)/buffer/Makefile.inc
|
||||
include $(stordir)/file/Makefile.inc
|
||||
include $(stordir)/ipc/Makefile.inc
|
||||
include $(stordir)/large_object/Makefile.inc
|
||||
include $(stordir)/lmgr/Makefile.inc
|
||||
include $(stordir)/page/Makefile.inc
|
||||
include $(stordir)/smgr/Makefile.inc
|
||||
SRCS_STORAGE:= $(SUBSRCS)
|
||||
|
||||
HEADERS+= backendid.h block.h buf.h buf_internals.h bufmgr.h bufpage.h \
|
||||
fd.h ipc.h item.h itemid.h itempos.h \
|
||||
itemptr.h large_object.h lmgr.h lock.h multilev.h off.h page.h \
|
||||
pagenum.h pos.h proc.h shmem.h sinval.h sinvaladt.h smgr.h spin.h
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for storage/buffer
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.1 1996/10/27 09:51:54 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = buf_table.o buf_init.o bufmgr.o freelist.o localbuf.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for storage/buffer
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:53 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= buf_table.c buf_init.c bufmgr.c freelist.c localbuf.c
|
||||
|
||||
SRCS_SITEMGR+= buf_table.c buf_init.c freelist.c
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for storage/file
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/file/Makefile,v 1.1 1996/10/27 09:52:01 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = fd.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for storage/file
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/file/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:55 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= fd.c
|
|
@ -0,0 +1,38 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for storage/ipc
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/ipc/Makefile,v 1.1 1996/10/27 09:52:10 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = ipc.o ipci.o s_lock.o shmem.o shmqueue.o sinval.o \
|
||||
sinvaladt.o spin.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for storage/ipc
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:54 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= ipc.c ipci.c s_lock.c shmem.c shmqueue.c sinval.c \
|
||||
sinvaladt.c spin.c
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for storage/large_object
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/large_object/Makefile,v 1.1 1996/10/27 09:52:20 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = inv_api.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for storage/large_object
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/large_object/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:55 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= inv_api.c
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for storage/lmgr
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Makefile,v 1.1 1996/10/27 09:52:27 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = lmgr.o lock.o multi.o proc.o single.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for storage/lmgr
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:55 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= lmgr.c lock.c multi.c proc.c single.c
|
|
@ -0,0 +1,37 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for storage/page
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/page/Makefile,v 1.1 1996/10/27 09:52:34 bryanh Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SRCDIR = ../../..
|
||||
include ../../../Makefile.global
|
||||
|
||||
INCLUDE_OPT = -I../.. \
|
||||
-I../../port/$(PORTNAME) \
|
||||
-I../../include \
|
||||
-I../../../include
|
||||
|
||||
CFLAGS+=$(INCLUDE_OPT)
|
||||
|
||||
OBJS = bufpage.o itemptr.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) -r -o SUBSYS.o $(OBJS)
|
||||
|
||||
depend dep:
|
||||
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for storage/page
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/storage/page/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:58 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SUBSRCS+= bufpage.c itemptr.c
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue