1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +03:00

Repair parallel make in backend tree (and make it really parallel).

Make Gen_fmgrtab.sh reasonably robust against concurrent invocation.
This commit is contained in:
Peter Eisentraut
2000-07-13 16:07:14 +00:00
parent 9191d684a7
commit 8a3cbc84ef
8 changed files with 110 additions and 160 deletions

View File

@@ -1,34 +1,30 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for the storage manager subsystem
# Makefile for the storage manager subsystem
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/Makefile,v 1.6 1999/12/13 22:33:33 momjian Exp $
# $Header: /cvsroot/pgsql/src/backend/storage/Makefile,v 1.7 2000/07/13 16:06:48 petere Exp $
#
#-------------------------------------------------------------------------
SRCDIR= ../..
subdir = src/backend/storage
top_builddir = ../../..
include ../../Makefile.global
all: submake SUBSYS.o
SUBDIRS := buffer file ipc large_object lmgr page smgr
SUBDIROBJS := $(SUBDIRS:%=%/SUBSYS.o)
OBJS = buffer/SUBSYS.o file/SUBSYS.o ipc/SUBSYS.o large_object/SUBSYS.o \
lmgr/SUBSYS.o page/SUBSYS.o smgr/SUBSYS.o
all: SUBSYS.o
DIRS = buffer file ipc large_object lmgr page smgr
SUBSYS.o: $(SUBDIROBJS)
$(LD) $(LDREL) $(LDOUT) $@ $^
SUBSYS.o: $(OBJS)
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive)
.PHONY: submake clean dep
submake:
for i in $(DIRS); do $(MAKE) -C $$i SUBSYS.o; done
.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
for i in $(DIRS); do $(MAKE) -C $$i clean; done
.DEFAULT:
for i in $(DIRS); do $(MAKE) -C $$i $@; done
dep depend:
for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done

View File

@@ -1,22 +1,16 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for storage/ipc
# Makefile for storage/ipc
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/ipc/Makefile,v 1.11 2000/05/29 05:45:06 tgl Exp $
# $Header: /cvsroot/pgsql/src/backend/storage/ipc/Makefile,v 1.12 2000/07/13 16:06:54 petere Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
subdir = src/backend/storage/ipc
top_builddir = ../../../..
include ../../../Makefile.global
# seems to be required 1999/07/22 bjm
ifeq ($(CPU),alpha)
ifeq ($(CC), gcc)
CFLAGS+= -fno-inline
endif
ifeq ($(CC), egcs)
ifeq ($(CPU), alpha)
ifeq ($(GCC), yes)
CFLAGS+= -fno-inline
endif
endif
@@ -38,4 +32,3 @@ clean:
ifeq (depend,$(wildcard depend))
include depend
endif