7
subdir = src/backend/utils
8
top_builddir = ../../..
9
include $(top_builddir)/src/Makefile.global
12
SUBDIRS = adt cache error fmgr hash init mb misc mmgr resowner sort time
14
include $(top_srcdir)/src/backend/common.mk
16
all: fmgroids.h probes.h
18
$(SUBDIRS:%=%-recursive): fmgroids.h
20
fmgroids.h fmgrtab.c: Gen_fmgrtab.sh $(top_srcdir)/src/include/catalog/pg_proc.h
21
AWK='$(AWK)' $(SHELL) $< $(top_srcdir)/src/include/catalog/pg_proc.h
23
ifneq ($(enable_dtrace), yes)
24
probes.h: Gen_dummy_probes.sed
28
ifeq ($(enable_dtrace), yes)
29
$(DTRACE) -C -h -s $< -o $@.tmp
30
sed -e 's/POSTGRESQL_/TRACE_POSTGRESQL_/g' $@.tmp >$@
33
sed -f $(srcdir)/Gen_dummy_probes.sed $< >$@
38
rm -f fmgroids.h fmgrtab.c probes.h