1996-10-27 04:55:05 -05:00
|
|
|
#
|
2000-07-13 12:07:14 -04:00
|
|
|
# Makefile for utils
|
1996-10-27 04:55:05 -05:00
|
|
|
#
|
2004-07-16 23:32:14 -04:00
|
|
|
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.23 2004/07/17 03:29:15 tgl Exp $
|
1996-10-27 04:55:05 -05:00
|
|
|
#
|
|
|
|
|
|
2000-07-13 12:07:14 -04:00
|
|
|
subdir = src/backend/utils/
|
|
|
|
|
top_builddir = ../../..
|
2000-08-31 12:12:35 -04:00
|
|
|
include $(top_builddir)/src/Makefile.global
|
1998-04-05 20:32:26 -04:00
|
|
|
|
2004-07-16 23:32:14 -04:00
|
|
|
SUBDIRS := adt cache error fmgr hash init mb misc mmgr resowner sort time
|
2000-07-13 12:07:14 -04:00
|
|
|
SUBDIROBJS := $(SUBDIRS:%=%/SUBSYS.o)
|
|
|
|
|
|
1998-07-23 23:32:46 -04:00
|
|
|
|
2000-07-13 12:07:14 -04:00
|
|
|
all: SUBSYS.o fmgroids.h
|
1996-11-01 21:03:50 -05:00
|
|
|
|
2000-07-13 12:07:14 -04:00
|
|
|
SUBSYS.o: fmgrtab.o $(SUBDIROBJS)
|
|
|
|
|
$(LD) $(LDREL) $(LDOUT) $@ $^
|
2000-06-08 22:38:36 -04:00
|
|
|
|
2002-08-10 13:59:28 -04:00
|
|
|
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;
|
1996-10-27 04:55:05 -05:00
|
|
|
|
2000-07-13 12:07:14 -04:00
|
|
|
.PHONY: $(SUBDIRS:%=%-recursive)
|
|
|
|
|
$(SUBDIRS:%=%-recursive): fmgroids.h
|
|
|
|
|
$(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
|
2000-06-07 12:27:00 -04:00
|
|
|
|
2000-07-13 12:07:14 -04:00
|
|
|
fmgroids.h fmgrtab.c: Gen_fmgrtab.sh $(top_srcdir)/src/include/catalog/pg_proc.h
|
2004-01-04 00:57:21 -05:00
|
|
|
AWK='$(AWK)' $(SHELL) $< $(top_srcdir)/src/include/catalog/pg_proc.h
|
2000-06-08 22:38:36 -04:00
|
|
|
|
1996-10-27 04:55:05 -05:00
|
|
|
|
|
|
|
|
clean:
|
2000-07-13 12:07:14 -04:00
|
|
|
for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done
|
2000-06-16 20:10:40 -04:00
|
|
|
rm -f SUBSYS.o fmgrtab.o fmgroids.h fmgrtab.c
|