]> granicus.if.org Git - postgresql/blob - src/backend/replication/Makefile
3fe490e580f8234f847f9ae6f5786ad8b405b645
[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 OBJS = walsender.o walreceiverfuncs.o walreceiver.o basebackup.o \
16         repl_gram.o syncrep.o
17
18 include $(top_srcdir)/src/backend/common.mk
19
20 # repl_scanner is compiled as part of repl_gram
21 repl_gram.o: repl_scanner.c
22
23 # See notes in src/backend/parser/Makefile about the following two rules
24
25 repl_gram.c: repl_gram.y
26 ifdef BISON
27         $(BISON) -d $(BISONFLAGS) -o $@ $<
28 else
29         @$(missing) bison $< $@
30 endif
31
32 repl_scanner.c: repl_scanner.l
33 ifdef FLEX
34         $(FLEX) $(FLEXFLAGS) -o'$@' $<
35 else
36         @$(missing) flex $< $@
37 endif
38
39 # repl_gram.c and repl_scanner.c are in the distribution tarball, so
40 # they are not cleaned here.