mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] backend Makefile patch This patch cleans up backend/Makefile a little bit, and prevents it from relinking the backend binary when no changes have been made.
This commit is contained in:
parent
51844146e5
commit
c00c511b7b
@ -34,25 +34,23 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.19 1997/02/19 13:09:29 scrappy Exp $
|
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.20 1997/03/12 20:44:57 scrappy Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
SRCDIR = ..
|
SRCDIR = ..
|
||||||
include ../Makefile.global
|
include ../Makefile.global
|
||||||
|
|
||||||
OBJS = access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o \
|
DIRS = access bootstrap catalog commands executor lib libpq \
|
||||||
commands/SUBSYS.o executor/SUBSYS.o \
|
main nodes optimizer parser port postmaster regex rewrite \
|
||||||
lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o \
|
storage tcop utils
|
||||||
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 \
|
|
||||||
../utils/version.o
|
|
||||||
|
|
||||||
ifdef TIOGA
|
ifdef TIOGA
|
||||||
OBJS += tioga/SUBSYS.o
|
DIRS += tioga
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
OBJS = $(DIRS:%=%/SUBSYS.o)
|
||||||
|
|
||||||
ifeq ($(MAKE_EXPORTS), true)
|
ifeq ($(MAKE_EXPORTS), true)
|
||||||
EXP = postgres$(EXPSUFF)
|
EXP = postgres$(EXPSUFF)
|
||||||
else
|
else
|
||||||
@ -61,40 +59,23 @@ endif
|
|||||||
|
|
||||||
all: postgres $(EXP) global1.bki.source local1_template1.bki.source
|
all: postgres $(EXP) global1.bki.source local1_template1.bki.source
|
||||||
|
|
||||||
postgres: postgres_group1 postgres_group2 postgres_group3 postgres_group4
|
postgres: $(OBJS) ../utils/version.o
|
||||||
$(CC) $(LDFLAGS) -o postgres $(OBJS) $(LD_ADD)
|
gcc -o postgres $(LDFLAGS) $(OBJS) ../utils/version.o $(LDADD) -lm -ldl
|
||||||
|
|
||||||
postgres_group1:
|
$(OBJS): $(DIRS:%=%.dir)
|
||||||
$(MAKE) -C access all
|
|
||||||
$(MAKE) -C bootstrap all
|
$(DIRS:%=%.dir):
|
||||||
$(MAKE) -C catalog SUBSYS.o
|
$(MAKE) -C $(subst .dir,,$@) all PORTNAME=$(PORTNAME)
|
||||||
$(MAKE) -C commands all
|
|
||||||
postgres_group2:
|
../utils/version.o:
|
||||||
$(MAKE) -C executor all
|
|
||||||
$(MAKE) -C lib all
|
|
||||||
$(MAKE) -C libpq all
|
|
||||||
$(MAKE) -C main all
|
|
||||||
$(MAKE) -C nodes all
|
|
||||||
postgres_group3:
|
|
||||||
$(MAKE) -C optimizer all
|
|
||||||
$(MAKE) -C parser all
|
|
||||||
$(MAKE) -C port all PORTNAME=$(PORTNAME)
|
|
||||||
$(MAKE) -C postmaster all
|
|
||||||
$(MAKE) -C regex all
|
|
||||||
postgres_group4:
|
|
||||||
$(MAKE) -C rewrite all
|
|
||||||
$(MAKE) -C storage all
|
|
||||||
$(MAKE) -C tcop all
|
|
||||||
$(MAKE) -C utils all
|
|
||||||
ifdef TIOGA
|
|
||||||
$(MAKE) -C tioga all
|
|
||||||
endif
|
|
||||||
$(MAKE) -C ../utils version.o
|
$(MAKE) -C ../utils version.o
|
||||||
|
|
||||||
global1.bki.source local1_template1.bki.source:
|
global1.bki.source local1_template1.bki.source: catalog/$@
|
||||||
$(MAKE) -C catalog $@
|
|
||||||
cp catalog/$@ .
|
cp catalog/$@ .
|
||||||
|
|
||||||
|
catalog/global1.bki.source catalog/local1_template1.bki.source:
|
||||||
|
$(MAKE) -C catalog $@
|
||||||
|
|
||||||
# The postgres.o target is needed by the rule in Makefile.global that
|
# The postgres.o target is needed by the rule in Makefile.global that
|
||||||
# creates the exports file when MAKE_EXPORTS = true.
|
# creates the exports file when MAKE_EXPORTS = true.
|
||||||
postgres.o: $(OBJS)
|
postgres.o: $(OBJS)
|
||||||
@ -117,51 +98,10 @@ fmgr.h:
|
|||||||
clean:
|
clean:
|
||||||
rm -f postgres fmgr.h parse.h \
|
rm -f postgres fmgr.h parse.h \
|
||||||
global1.bki.source local1_template1.bki.source
|
global1.bki.source local1_template1.bki.source
|
||||||
$(MAKE) -C access clean
|
for i in $(DIRS); do $(MAKE) -C $$i clean PORTNAME=$(PORTNAME); done
|
||||||
$(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:
|
.DEFAULT:
|
||||||
$(MAKE) -C access $@
|
for i in $(DIRS); do $(MAKE) -C $$i $@ PORTNAME=$(PORTNAME); done
|
||||||
$(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
|
|
||||||
|
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user