2 # Makefile for the access methods module
4 # $PostgreSQL: pgsql/src/backend/access/Makefile,v 1.13 2007/02/09 15:55:58 petere Exp $
7 subdir = src/backend/access
8 top_builddir = ../../..
9 include $(top_builddir)/src/Makefile.global
11 SUBDIRS = common gist hash heap index nbtree transam gin
12 SUBDIROBJS = $(SUBDIRS:%=%/SUBSYS.o)
16 SUBSYS.o: $(SUBDIROBJS)
17 $(LD) $(LDREL) $(LDOUT) $@ $^
19 $(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;
21 .PHONY: $(SUBDIRS:%=%-recursive)
22 $(SUBDIRS:%=%-recursive):
23 $(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
26 for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done