head	1.14;
access;
symbols
	REL9_0_0:1.14
	REL9_1_ALPHA1:1.14
	REL9_0_RC1:1.14
	REL9_0_BETA4:1.14
	REL9_0_STABLE:1.14.0.14
	REL9_0_BETA3:1.14
	REL9_0_BETA2:1.14
	REL7_4_29:1.10
	REL8_0_25:1.11
	REL8_1_21:1.11
	REL8_2_17:1.11
	REL8_3_11:1.13
	REL8_4_4:1.14
	REL9_0_BETA1:1.14
	REL9_0_ALPHA5_BRANCH:1.14.0.12
	REL9_0_ALPHA5:1.14
	REL7_4_28:1.10
	REL8_0_24:1.11
	REL8_1_20:1.11
	REL8_2_16:1.11
	REL8_3_10:1.13
	REL8_4_3:1.14
	REL9_0_ALPHA4:1.14
	REL9_0_ALPHA4_BRANCH:1.14.0.10
	REL8_5_ALPHA3:1.14
	REL8_5_ALPHA3_BRANCH:1.14.0.8
	REL7_4_27:1.10
	REL8_0_23:1.11
	REL8_1_19:1.11
	REL8_2_15:1.11
	REL8_3_9:1.13
	REL8_4_2:1.14
	REL8_5_ALPHA2:1.14
	REL8_5_ALPHA2_BRANCH:1.14.0.6
	REL7_4_26:1.10
	REL8_0_22:1.11
	REL8_1_18:1.11
	REL8_2_14:1.11
	REL8_3_8:1.13
	REL8_4_1:1.14
	REL8_5_ALPHA1:1.14
	REL8_5_ALPHA1_BRANCH:1.14.0.4
	REL8_4_STABLE:1.14.0.2
	REL8_4_0:1.14
	REL8_4_RC2:1.14
	REL8_4_RC1:1.14
	REL8_4_BETA2:1.14
	REL8_4_BETA1:1.14
	REL7_4_25:1.10
	REL8_0_21:1.11
	REL8_1_17:1.11
	REL8_2_13:1.11
	REL8_3_7:1.13
	REL7_4_24:1.10
	REL8_0_20:1.11
	REL8_1_16:1.11
	REL8_2_12:1.11
	REL8_3_6:1.13
	REL7_4_23:1.10
	REL8_0_19:1.11
	REL8_1_15:1.11
	REL8_2_11:1.11
	REL8_3_5:1.13
	REL7_4_22:1.10
	REL8_0_18:1.11
	REL8_1_14:1.11
	REL8_2_10:1.11
	REL8_3_4:1.13
	REL7_4_21:1.10
	REL8_0_17:1.11
	REL8_1_13:1.11
	REL8_2_9:1.11
	REL8_3_3:1.13
	REL7_4_20:1.10
	REL8_0_16:1.11
	REL8_1_12:1.11
	REL8_2_8:1.11
	REL8_3_2:1.13
	REL8_2_7:1.11
	REL8_3_1:1.13
	REL8_3_STABLE:1.13.0.2
	REL8_3_0:1.13
	REL8_3_RC2:1.13
	REL7_3_21:1.10
	REL7_4_19:1.10
	REL8_0_15:1.11
	REL8_1_11:1.11
	REL8_2_6:1.11
	REL8_3_RC1:1.13
	REL8_3_BETA4:1.13
	REL8_3_BETA3:1.13
	REL8_3_BETA2:1.13
	REL8_3_BETA1:1.13
	REL7_3_20:1.10
	REL7_4_18:1.10
	REL8_0_14:1.11
	REL8_1_10:1.11
	REL8_2_5:1.11
	REL7_3_19:1.10
	REL7_4_17:1.10
	REL8_0_13:1.11
	REL8_1_9:1.11
	REL8_2_4:1.11
	REL8_0_12:1.11
	REL8_1_8:1.11
	REL8_2_3:1.11
	REL7_3_18:1.10
	REL7_4_16:1.10
	REL8_0_11:1.11
	REL8_1_7:1.11
	REL8_2_2:1.11
	REL8_0_10:1.11
	REL8_1_6:1.11
	REL8_2_1:1.11
	REL7_4_15:1.10
	REL7_3_17:1.10
	REL8_2_STABLE:1.11.0.8
	REL8_2_0:1.11
	REL8_2_RC1:1.11
	REL8_2_BETA3:1.11
	REL8_2_BETA2:1.11
	REL8_1_5:1.11
	REL8_0_9:1.11
	REL7_4_14:1.10
	REL7_3_16:1.10
	REL8_2_BETA1:1.11
	REL7_3_15:1.10
	REL7_4_13:1.10
	REL8_0_8:1.11
	REL8_1_4:1.11
	REL7_3_14:1.10
	REL7_4_12:1.10
	REL8_0_7:1.11
	REL8_1_3:1.11
	REL7_3_13:1.10
	REL7_4_11:1.10
	REL8_0_6:1.11
	REL8_1_2:1.11
	REL7_3_12:1.10
	REL7_4_10:1.10
	REL8_0_5:1.11
	REL8_1_1:1.11
	REL8_1_STABLE:1.11.0.6
	REL8_1_0:1.11
	REL8_1_0RC1:1.11
	REL8_1_0BETA4:1.11
	REL8_1_0BETA3:1.11
	REL7_3_11:1.10
	REL7_4_9:1.10
	REL8_0_4:1.11
	REL8_1_0BETA2:1.11
	REL8_1_0BETA1:1.11
	REL7_2_8:1.9
	REL7_3_10:1.10
	REL7_4_8:1.10
	REL8_0_3:1.11
	REL8_0_2:1.11
	REL7_2_7:1.9
	REL7_3_9:1.10
	REL7_4_7:1.10
	REL8_0_1:1.11
	REL8_0_STABLE:1.11.0.4
	REL8_0_0:1.11.0.2
	REL8_0_0RC5:1.11
	REL8_0_0RC4:1.11
	REL8_0_0RC3:1.11
	REL8_0_0RC2:1.11
	REL8_0_0RC1:1.11
	REL8_0_0BETA5:1.11
	REL8_0_0BETA4:1.11
	REL7_4_6:1.10
	REL7_3_8:1.10
	REL7_2_6:1.9
	REL8_0_0BETA3:1.11
	REL8_0_0BETA2:1.11
	REL7_2_5:1.9
	REL7_4_5:1.10
	REL7_3_7:1.10
	REL7_4_4:1.10
	REL8_0_0BETA1:1.11
	REL7_4_3:1.10
	REL7_4_2:1.10
	REL7_3_6:1.10
	REL7_4_1:1.10
	REL7_3_5:1.10
	REL7_4:1.10
	REL7_4_RC2:1.10
	REL7_4_STABLE:1.10.0.6
	REL7_4_RC1:1.10
	REL7_4_BETA5:1.10
	REL7_4_BETA4:1.10
	REL7_4_BETA3:1.10
	REL7_4_BETA2:1.10
	WIN32_DEV:1.10.0.4
	REL7_4_BETA1:1.10
	REL7_3_4:1.10
	REL7_3_2:1.10
	REL7_2_4:1.9
	REL7_3_STABLE:1.10.0.2
	REL7_2_3:1.9
	REL7_2_STABLE:1.9.0.2
	REL7_2:1.9
	REL7_2_RC2:1.9
	REL7_2_RC1:1.9
	REL7_2_BETA5:1.9
	REL7_2_BETA4:1.9
	REL7_2_BETA3:1.9
	REL7_2_BETA2:1.9
	REL7_2_BETA1:1.9
	REL7_1_2:1.8
	REL7_1_STABLE:1.8.0.2
	REL7_1_BETA:1.8
	REL7_1_BETA3:1.8
	REL7_1_BETA2:1.8
	REL7_1:1.8
	REL7_0_PATCHES:1.6.0.2
	REL7_0:1.6
	REL6_5_PATCHES:1.4.0.4
	REL6_5:1.4
	REL6_4:1.4.0.2
	release-6-3:1.3
	REL2_0B:1.2.0.2
	REL2_0:1.2;
locks; strict;
comment	@# @;


1.14
date	2008.02.19.10.30.08;	author petere;	state Exp;
branches;
next	1.13;

1.13
date	2007.02.09.15.55.58;	author petere;	state Exp;
branches;
next	1.12;

1.12
date	2007.01.20.17.16.12;	author petere;	state Exp;
branches;
next	1.11;

1.11
date	2003.11.29.19.51.56;	author pgsql;	state Exp;
branches;
next	1.10;

1.10
date	2002.08.10.17.59.28;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	2001.06.27.23.31.39;	author tgl;	state Exp;
branches;
next	1.8;

1.8
date	2000.08.31.16.10.30;	author petere;	state Exp;
branches;
next	1.7;

1.7
date	2000.07.13.16.06.48;	author petere;	state Exp;
branches;
next	1.6;

1.6
date	99.12.13.22.33.33;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	99.12.09.19.14.58;	author momjian;	state Exp;
branches;
next	1.4;

1.4
date	98.04.06.00.24.53;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	97.06.11.01.13.10;	author scrappy;	state Exp;
branches;
next	1.2;

1.2
date	96.11.10.03.13.59;	author bryanh;	state Exp;
branches;
next	1.1;

1.1
date	96.10.27.09.51.49;	author bryanh;	state Exp;
branches;
next	;


desc
@@


1.14
log
@Refactor backend makefiles to remove lots of duplicate code
@
text
@#
# Makefile for the storage manager subsystem
#
# $PostgreSQL: pgsql/src/backend/storage/Makefile,v 1.13 2007/02/09 15:55:58 petere Exp $
#

subdir = src/backend/storage
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

SUBDIRS     = buffer file freespace ipc large_object lmgr page smgr

include $(top_srcdir)/src/backend/common.mk
@


1.13
log
@Replace useless uses of := by = in makefiles.
@
text
@d4 1
a4 1
# $PostgreSQL: pgsql/src/backend/storage/Makefile,v 1.12 2007/01/20 17:16:12 petere Exp $
a11 1
SUBDIROBJS  = $(SUBDIRS:%=%/SUBSYS.o)
d13 1
a13 14
all: SUBSYS.o

SUBSYS.o: $(SUBDIROBJS)
	$(LD) $(LDREL) $(LDOUT) $@@ $^

$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;

.PHONY: $(SUBDIRS:%=%-recursive)
$(SUBDIRS:%=%-recursive):
	$(MAKE) -C $(subst -recursive,,$@@) SUBSYS.o

clean:
	for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@@ || exit; done
	rm -f SUBSYS.o
@


1.12
log
@Remove remains of old depend target.
@
text
@d4 1
a4 1
# $PostgreSQL: pgsql/src/backend/storage/Makefile,v 1.11 2003/11/29 19:51:56 pgsql Exp $
d11 2
a12 2
SUBDIRS     := buffer file freespace ipc large_object lmgr page smgr
SUBDIROBJS  := $(SUBDIRS:%=%/SUBSYS.o)
@


1.11
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d4 1
a4 1
# $PostgreSQL: /cvsroot/pgsql-server/src/backend/storage/Makefile,v 1.10 2002/08/10 17:59:28 petere Exp $
a27 3

dep depend: 
	for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@@ || exit; done
@


1.10
log
@Fix failure to relink postmaster executable in the first make run if only a
single source file a few directories deep in the backend tree has changed.
@
text
@d4 1
a4 1
# $Header: /cvsroot/pgsql-server/src/backend/storage/Makefile,v 1.9 2001/06/27 23:31:39 tgl Exp $
@


1.9
log
@Install infrastructure for shared-memory free space map.  Doesn't actually
do anything yet, but it has the necessary connections to initialization
and so forth.  Make some gestures towards allowing number of blocks in
a relation to be BlockNumber, ie, unsigned int, rather than signed int.
(I doubt I got all the places that are sloppy about it, yet.)  On the
way, replace the hardwired NLOCKS_PER_XACT fudge factor with a GUC
variable.
@
text
@d4 1
a4 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/storage/Makefile,v 1.8 2000/08/31 16:10:30 petere Exp $
d19 1
a19 1
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive)
@


1.8
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d4 1
a4 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/storage/Makefile,v 1.7 2000/07/13 16:06:48 petere Exp $
d11 1
a11 1
SUBDIRS     := buffer file ipc large_object lmgr page smgr
@


1.7
log
@Repair parallel make in backend tree (and make it really parallel).
Make Gen_fmgrtab.sh reasonably robust against concurrent invocation.
@
text
@d4 1
a4 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/storage/Makefile,v 1.6 1999/12/13 22:33:33 momjian Exp $
d9 1
a9 1
include ../../Makefile.global
@


1.6
log
@New LDOUT makefile variable for QNX os.
@
text
@a0 1
#-------------------------------------------------------------------------
d2 1
a2 2
# Makefile--
#    Makefile for the storage manager subsystem
d4 1
a4 2
# IDENTIFICATION
#    $Header: /usr/local/cvsroot/pgsql/src/backend/storage/Makefile,v 1.5 1999/12/09 19:14:58 momjian Exp $
a5 1
#-------------------------------------------------------------------------
d7 2
a8 1
SRCDIR= ../..
d11 2
a12 1
all: submake SUBSYS.o
d14 1
a14 2
OBJS = buffer/SUBSYS.o file/SUBSYS.o ipc/SUBSYS.o large_object/SUBSYS.o \
       lmgr/SUBSYS.o page/SUBSYS.o smgr/SUBSYS.o
d16 2
a17 1
DIRS = buffer file ipc large_object lmgr page smgr
d19 1
a19 2
SUBSYS.o: $(OBJS)
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
d21 3
a23 4
.PHONY: submake clean dep

submake:
	for i in $(DIRS); do $(MAKE) -C $$i SUBSYS.o; done
d26 1
a27 1
	for i in $(DIRS); do $(MAKE) -C $$i clean; done
d29 2
a30 2
.DEFAULT: 
	for i in $(DIRS); do $(MAKE) -C $$i $@@; done
@


1.5
log
@Make LD -r as macros that can be changed for QNX.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/storage/Makefile,v 1.4 1998/04/06 00:24:53 momjian Exp $
d22 1
a22 1
	$(LD) $(LDREL) -o SUBSYS.o $(OBJS)
@


1.4
log
@Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/storage/Makefile,v 1.3 1997/06/11 01:13:10 scrappy Exp $
d22 1
a22 1
	$(LD) -r -o SUBSYS.o $(OBJS)
@


1.3
log
@From: Robert Bruccoleri <bruc@@bms.com>
Subject: [PORTS] Patches for Irix 6.4

I have worked out how to compile PostgreSQL on Irix 6.4 using the -n32 compiler
mode and version 7.1 of the C compiler. (The n32 compiler use 32 bits
addressing,
but allows access to all the instructions in the MIPS4 instruction set.)
There were several problems:

1) The ld command is not referenced as a macro in all the Makefiles. On
this platform, you have to include -n32 on all the ld commands. Makefiles
were changed as needed.

3) Lots of warnings are generated from the compiler. Since the regression
tests worked OK, I didn't attempt to fix them. If anyone wants the compilation
log, please let me know, and I'll email it to you.

The version of postgresql was 970602. Here is Makefile.custom:

CUSTOM_COPT = -O2 -n32
MK_NO_LORDER = 1
LD = ld -n32
CC += -n32
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/storage/Makefile,v 1.2 1996/11/10 03:13:59 bryanh Exp $
d19 2
d27 1
a27 7
	$(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
d31 1
a31 7
	$(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
d34 1
a34 8
	$(MAKE) -C buffer   $@@
	$(MAKE) -C file     $@@
	$(MAKE) -C ipc      $@@
	$(MAKE) -C large_object $@@
	$(MAKE) -C lmgr     $@@
	$(MAKE) -C page     $@@
	$(MAKE) -C smgr     $@@

@


1.2
log
@Recognize dependencies more reliably.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/access/Makefile.inc,v 1.2 1996/08/26 06:26:37 scrappy Exp $
d10 3
@


1.1
log
@Simplify make files, add full dependencies.
@
text
@d11 1
a11 1
all: SUBSYS.o
d13 9
a21 1
SUBSYS.o: 
a28 3
	$(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
@
