1996-10-27 10:55:05 +01:00
|
|
|
#
|
2000-07-13 18:07:14 +02:00
|
|
|
# Makefile for the access methods module
|
1996-10-27 10:55:05 +01:00
|
|
|
#
|
2003-11-29 20:52:15 +01:00
|
|
|
# $PostgreSQL: pgsql/src/backend/access/Makefile,v 1.9 2003/11/29 19:51:39 pgsql Exp $
|
1996-10-27 10:55:05 +01:00
|
|
|
#
|
|
|
|
|
2000-07-13 18:07:14 +02:00
|
|
|
subdir = src/backend/access
|
|
|
|
top_builddir = ../../..
|
2000-08-31 18:12:35 +02:00
|
|
|
include $(top_builddir)/src/Makefile.global
|
1997-06-11 03:13:10 +02:00
|
|
|
|
2000-07-13 18:07:14 +02:00
|
|
|
SUBDIRS := common gist hash heap index nbtree rtree transam
|
|
|
|
SUBDIROBJS := $(SUBDIRS:%=%/SUBSYS.o)
|
1996-10-27 10:55:05 +01:00
|
|
|
|
2000-07-13 18:07:14 +02:00
|
|
|
all: SUBSYS.o
|
1996-11-10 04:13:59 +01:00
|
|
|
|
2000-07-13 18:07:14 +02:00
|
|
|
SUBSYS.o: $(SUBDIROBJS)
|
|
|
|
$(LD) $(LDREL) $(LDOUT) $@ $^
|
1996-11-10 04:13:59 +01:00
|
|
|
|
2002-08-10 19:59:28 +02:00
|
|
|
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;
|
1996-11-10 04:13:59 +01:00
|
|
|
|
2000-07-13 18:07:14 +02:00
|
|
|
.PHONY: $(SUBDIRS:%=%-recursive)
|
|
|
|
$(SUBDIRS:%=%-recursive):
|
|
|
|
$(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
|
1996-10-27 10:55:05 +01:00
|
|
|
|
|
|
|
clean:
|
2000-07-13 18:07:14 +02:00
|
|
|
for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done
|
1996-10-27 10:55:05 +01:00
|
|
|
rm -f SUBSYS.o
|
|
|
|
|
2000-07-13 18:07:14 +02:00
|
|
|
dep depend:
|
|
|
|
for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done
|