mirror of
https://github.com/postgres/postgres.git
synced 2026-03-31 14:56:49 -04:00
run the data through cpp, and we know of at least one platform where unusual cpp behavior breaks the process. So remove the cpp step, and make consequent simplifications.
32 lines
839 B
Makefile
32 lines
839 B
Makefile
#
|
|
# Makefile for utils
|
|
#
|
|
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.22 2004/01/04 05:57:21 tgl Exp $
|
|
#
|
|
|
|
subdir = src/backend/utils/
|
|
top_builddir = ../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
SUBDIRS := adt cache error fmgr hash init misc mmgr sort time mb
|
|
SUBDIROBJS := $(SUBDIRS:%=%/SUBSYS.o)
|
|
|
|
|
|
all: SUBSYS.o 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
|