]> granicus.if.org Git - postgresql/blob - src/backend/replication/Makefile
Add missing -I switch for VPATH builds.
[postgresql] / src / backend / replication / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile--
4 #    Makefile for src/backend/replication
5 #
6 # IDENTIFICATION
7 #    src/backend/replication/Makefile
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src/backend/replication
12 top_builddir = ../../..
13 include $(top_builddir)/src/Makefile.global
14
15 override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
16
17 OBJS = walsender.o walreceiverfuncs.o walreceiver.o basebackup.o \
18         repl_gram.o syncrep.o
19
20 include $(top_srcdir)/src/backend/common.mk
21
22 # repl_scanner is compiled as part of repl_gram
23 repl_gram.o: repl_scanner.c
24
25 # See notes in src/backend/parser/Makefile about the following two rules
26
27 repl_gram.c: repl_gram.y
28 ifdef BISON
29         $(BISON) -d $(BISONFLAGS) -o $@ $<
30 else
31         @$(missing) bison $< $@
32 endif
33
34 repl_scanner.c: repl_scanner.l
35 ifdef FLEX
36         $(FLEX) $(FLEXFLAGS) -o'$@' $<
37 else
38         @$(missing) flex $< $@
39 endif
40
41 # repl_gram.c and repl_scanner.c are in the distribution tarball, so
42 # they are not cleaned here.