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 OBJS = walsender.o walreceiverfuncs.o walreceiver.o basebackup.o \
18 include $(top_srcdir)/src/backend/common.mk
20 # repl_scanner is compiled as part of repl_gram
21 repl_gram.o: repl_scanner.c
23 # See notes in src/backend/parser/Makefile about the following two rules
25 repl_gram.c: repl_gram.y
27 $(BISON) -d $(BISONFLAGS) -o $@ $<
29 @$(missing) bison $< $@
32 repl_scanner.c: repl_scanner.l
34 $(FLEX) $(FLEXFLAGS) -o'$@' $<
36 @$(missing) flex $< $@
39 # repl_gram.c and repl_scanner.c are in the distribution tarball, so
40 # they are not cleaned here.