1 #-------------------------------------------------------------------------
4 # Makefile for src/backend/replication
7 # src/backend/replication/Makefile
9 #-------------------------------------------------------------------------
11 subdir = src/backend/replication
12 top_builddir = ../../..
13 include $(top_builddir)/src/Makefile.global
15 override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
17 OBJS = walsender.o walreceiverfuncs.o walreceiver.o basebackup.o \
20 include $(top_srcdir)/src/backend/common.mk
22 # repl_scanner is compiled as part of repl_gram
23 repl_gram.o: repl_scanner.c
25 # See notes in src/backend/parser/Makefile about the following two rules
27 repl_gram.c: repl_gram.y
29 $(BISON) -d $(BISONFLAGS) -o $@ $<
31 @$(missing) bison $< $@
34 repl_scanner.c: repl_scanner.l
36 $(FLEX) $(FLEXFLAGS) -o'$@' $<
38 @$(missing) flex $< $@
41 # repl_gram.c and repl_scanner.c are in the distribution tarball, so
42 # they are not cleaned here.