mirror of
https://github.com/postgres/postgres.git
synced 2026-06-05 23:33:01 -04:00
dac048f71e
The proposed Meson build system will need a way to ignore certain
generated files in order to coexist with the autoconf build system,
and C files generated by Flex which are #include'd into .y files make
this more difficult. In similar vein to 72b1e3a21, arrange for all Flex
C files to compile to their own .o targets.
Reviewed by Andres Freund
Discussion: https://www.postgresql.org/message-id/20220810171935.7k5zgnjwqzalzmtm%40awork3.anarazel.de
Discussion: https://www.postgresql.org/message-id/CAFBsxsF8Gc2StS3haXofshHCzqNMRXiSxvQEYGwnFsTmsdwNeg@mail.gmail.com
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile--
|
|
# Makefile for src/backend/replication
|
|
#
|
|
# IDENTIFICATION
|
|
# src/backend/replication/Makefile
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src/backend/replication
|
|
top_builddir = ../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
|
|
|
|
OBJS = \
|
|
repl_gram.o \
|
|
repl_scanner.o \
|
|
slot.o \
|
|
slotfuncs.o \
|
|
syncrep.o \
|
|
syncrep_gram.o \
|
|
syncrep_scanner.o \
|
|
walreceiver.o \
|
|
walreceiverfuncs.o \
|
|
walsender.o
|
|
|
|
SUBDIRS = logical
|
|
|
|
include $(top_srcdir)/src/backend/common.mk
|
|
|
|
# See notes in src/backend/parser/Makefile about the following two rules
|
|
repl_gram.h: repl_gram.c
|
|
touch $@
|
|
|
|
repl_gram.c: BISONFLAGS += -d
|
|
|
|
# Force these dependencies to be known even without dependency info built:
|
|
repl_gram.o repl_scanner.o: repl_gram.h
|
|
|
|
# See notes in src/backend/parser/Makefile about the following two rules
|
|
syncrep_gram.h: syncrep_gram.c
|
|
touch $@
|
|
|
|
syncrep_gram.c: BISONFLAGS += -d
|
|
|
|
# Force these dependencies to be known even without dependency info built:
|
|
syncrep_gram.o syncrep_scanner.o: syncrep_gram.h
|
|
|
|
# repl_gram.c, repl_scanner.c, syncrep_gram.c and syncrep_scanner.c
|
|
# are in the distribution tarball, so they are not cleaned here.
|
|
# (Our parent Makefile takes care of them during maintainer-clean.)
|