mirror of https://github.com/postgres/postgres
parent
a74e0414a2
commit
0474dcb608
@ -0,0 +1,25 @@ |
||||
#
|
||||
# Common make rules for backend
|
||||
#
|
||||
# $PostgreSQL: pgsql/src/backend/common.mk,v 1.1 2008/02/19 10:30:06 petere Exp $
|
||||
#
|
||||
|
||||
SUBDIROBJS = $(SUBDIRS:%=%/SUBSYS.o)
|
||||
|
||||
all: SUBSYS.o |
||||
|
||||
SUBSYS.o: $(SUBDIROBJS) $(OBJS) |
||||
$(LD) $(LDREL) $(LDOUT) $@ $^
|
||||
|
||||
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ; |
||||
|
||||
.PHONY: $(SUBDIRS:%=%-recursive) |
||||
$(SUBDIRS:%=%-recursive): |
||||
$(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
|
||||
|
||||
clean: clean-local |
||||
clean-local: |
||||
ifdef SUBDIRS |
||||
for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean || exit; done
|
||||
endif |
||||
rm -f SUBSYS.o $(OBJS)
|
||||
@ -1,32 +1,24 @@ |
||||
#
|
||||
# Makefile for utils
|
||||
#
|
||||
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.25 2007/02/09 15:55:58 petere Exp $
|
||||
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.26 2008/02/19 10:30:08 petere Exp $
|
||||
#
|
||||
|
||||
subdir = src/backend/utils
|
||||
top_builddir = ../../..
|
||||
include $(top_builddir)/src/Makefile.global |
||||
|
||||
OBJS = fmgrtab.o
|
||||
SUBDIRS = adt cache error fmgr hash init mb misc mmgr resowner sort time
|
||||
SUBDIROBJS = $(SUBDIRS:%=%/SUBSYS.o)
|
||||
|
||||
include $(top_srcdir)/src/backend/common.mk |
||||
|
||||
all: SUBSYS.o fmgroids.h |
||||
all: fmgroids.h |
||||
|
||||
SUBSYS.o: fmgrtab.o $(SUBDIROBJS) |
||||
$(LD) $(LDREL) $(LDOUT) $@ $^
|
||||
|
||||
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ; |
||||
|
||||
.PHONY: $(SUBDIRS:%=%-recursive) |
||||
$(SUBDIRS:%=%-recursive): fmgroids.h |
||||
$(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
|
||||
|
||||
fmgroids.h fmgrtab.c: Gen_fmgrtab.sh $(top_srcdir)/src/include/catalog/pg_proc.h |
||||
AWK='$(AWK)' $(SHELL) $< $(top_srcdir)/src/include/catalog/pg_proc.h
|
||||
|
||||
|
||||
clean: |
||||
for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done
|
||||
rm -f SUBSYS.o fmgrtab.o fmgroids.h fmgrtab.c
|
||||
rm -f fmgroids.h fmgrtab.c
|
||||
|
||||
Loading…
Reference in new issue