Debian Codegraph @

src/backend/nodes/Makefile

raw
1 #-------------------------------------------------------------------------
2 #
3 # Makefile--
4 # Makefile for backend/nodes
5 #
6 # IDENTIFICATION
7 # src/backend/nodes/Makefile
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src/backend/nodes
12 top_builddir = ../../..
13 include $(top_builddir)/src/Makefile.global
14
15 override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
16
17 OBJS = \
18 bitmapset.o \
19 copyfuncs.o \
20 equalfuncs.o \
21 extensible.o \
22 list.o \
23 makefuncs.o \
24 multibitmapset.o \
25 nodeFuncs.o \
26 outfuncs.o \
27 params.o \
28 print.o \
29 queryjumblefuncs.o \
30 read.o \
31 readfuncs.o \
32 tidbitmap.o \
33 value.o
34
35 include $(top_srcdir)/src/backend/common.mk
36
37 # The principal node-defining headers are listed in their inclusion order,
38 # to ensure cross-file subtyping works correctly. The rest can just be
39 # listed alphabetically.
40 # Caution: re-ordering this list risks ABI breakage!
41 node_headers = \
42 nodes/nodes.h \
43 nodes/primnodes.h \
44 nodes/parsenodes.h \
45 nodes/pathnodes.h \
46 nodes/plannodes.h \
47 nodes/execnodes.h \
48 access/amapi.h \
49 access/cmptype.h \
50 access/sdir.h \
51 access/tableam.h \
52 access/tsmapi.h \
53 commands/event_trigger.h \
54 commands/trigger.h \
55 executor/tuptable.h \
56 foreign/fdwapi.h \
57 nodes/bitmapset.h \
58 nodes/extensible.h \
59 nodes/lockoptions.h \
60 nodes/miscnodes.h \
61 nodes/replnodes.h \
62 nodes/supportnodes.h \
63 nodes/value.h \
64 utils/rel.h
65
66 # see also catalog/Makefile for an explanation of these make rules
67
68 all: generated-header-symlinks
69
70 .PHONY: generated-header-symlinks
71
72 generated-header-symlinks: $(top_builddir)/src/include/nodes/header-stamp
73
74 # node-support-stamp records the last time we ran gen_node_support.pl.
75 # We don't rely on the timestamps of the individual output files,
76 # because the Perl script won't update them if they didn't change (to
77 # avoid unnecessary recompiles).
78 node-support-stamp: gen_node_support.pl $(addprefix $(top_srcdir)/src/include/,$(node_headers))
79 $(PERL) $^
80 touch $@
81
82 # These generated headers must be symlinked into src/include/.
83 # We use header-stamp to record that we've done this because the symlinks
84 # themselves may appear older than node-support-stamp.
85 $(top_builddir)/src/include/nodes/header-stamp: node-support-stamp
86 cd '$(dir $@)' && for file in nodetags.h; do \
87 rm -f $$file && $(LN_S) "../../../$(subdir)/$$file" . ; \
88 done
89 touch $@
90
91 copyfuncs.o: copyfuncs.c copyfuncs.funcs.c copyfuncs.switch.c | node-support-stamp
92 equalfuncs.o: equalfuncs.c equalfuncs.funcs.c equalfuncs.switch.c | node-support-stamp
93 outfuncs.o: outfuncs.c outfuncs.funcs.c outfuncs.switch.c | node-support-stamp
94 queryjumblefuncs.o: queryjumblefuncs.c queryjumblefuncs.funcs.c queryjumblefuncs.switch.c | node-support-stamp
95 readfuncs.o: readfuncs.c readfuncs.funcs.c readfuncs.switch.c | node-support-stamp
96
97 clean:
98 rm -f node-support-stamp $(addsuffix funcs.funcs.c,copy equal out queryjumble read) $(addsuffix funcs.switch.c,copy equal out queryjumble read) nodetags.h