]> granicus.if.org Git - postgresql/blob - src/backend/storage/Makefile
Restructure LOCKTAG as per discussions of a couple months ago.
[postgresql] / src / backend / storage / Makefile
1 #
2 # Makefile for the storage manager subsystem
3 #
4 # $PostgreSQL: pgsql/src/backend/storage/Makefile,v 1.11 2003/11/29 19:51:56 pgsql Exp $
5 #
6
7 subdir = src/backend/storage
8 top_builddir = ../../..
9 include $(top_builddir)/src/Makefile.global
10
11 SUBDIRS     := buffer file freespace ipc large_object lmgr page smgr
12 SUBDIROBJS  := $(SUBDIRS:%=%/SUBSYS.o)
13
14 all: SUBSYS.o
15
16 SUBSYS.o: $(SUBDIROBJS)
17         $(LD) $(LDREL) $(LDOUT) $@ $^
18
19 $(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;
20
21 .PHONY: $(SUBDIRS:%=%-recursive)
22 $(SUBDIRS:%=%-recursive):
23         $(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
24
25 clean:
26         for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done
27         rm -f SUBSYS.o
28
29 dep depend: 
30         for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done