mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-25 15:57:19 +02:00
This program relies on rm_desc backend routines and the xlogreader infrastructure to emit human-readable rendering of WAL records. Author: Andres Freund, with many reworks by Álvaro Reviewed (in a much earlier version) by Peter Eisentraut
33 lines
869 B
Makefile
33 lines
869 B
Makefile
# contrib/pg_xlogdump/Makefile
|
|
|
|
PGFILEDESC = "pg_xlogdump"
|
|
PGAPPICON=win32
|
|
|
|
PROGRAM = pg_xlogdump
|
|
OBJS = pg_xlogdump.o compat.o xlogreader.o rmgrdesc.o \
|
|
$(RMGRDESCOBJS) $(WIN32RES)
|
|
|
|
RMGRDESCSOURCES = $(notdir $(wildcard $(top_srcdir)/src/backend/access/rmgrdesc/*desc.c))
|
|
RMGRDESCOBJS = $(patsubst %.c,%.o,$(RMGRDESCSOURCES))
|
|
|
|
EXTRA_CLEAN = $(RMGRDESCSOURCES) xlogreader.c rmgrdesc.c
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/pg_xlogdump
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|
|
|
|
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
|
|
|
|
rmgrdesc.c xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/%
|
|
rm -f $@ && $(LN_S) $< .
|
|
|
|
$(RMGRDESCSOURCES): % : $(top_srcdir)/src/backend/access/rmgrdesc/%
|
|
rm -f $@ && $(LN_S) $< .
|