2013-02-23 03:46:24 +08:00
|
|
|
# contrib/pg_xlogdump/Makefile
|
|
|
|
|
2014-07-15 02:07:52 +08:00
|
|
|
PGFILEDESC = "pg_xlogdump - decode and display WAL"
|
2013-02-23 03:46:24 +08:00
|
|
|
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))
|
|
|
|
|
2013-02-24 21:58:00 +08:00
|
|
|
EXTRA_CLEAN = $(RMGRDESCSOURCES) xlogreader.c
|
2013-02-23 03:46:24 +08:00
|
|
|
|
|
|
|
ifdef USE_PGXS
|
2013-10-02 04:36:15 +08:00
|
|
|
$(error "pg_xlogdump cannot be built with PGXS")
|
|
|
|
endif
|
|
|
|
|
2013-02-23 03:46:24 +08:00
|
|
|
subdir = contrib/pg_xlogdump
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
2013-10-02 04:36:15 +08:00
|
|
|
|
2013-02-23 03:46:24 +08:00
|
|
|
|
|
|
|
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
|
|
|
|
|
2013-02-24 21:58:00 +08:00
|
|
|
xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/%
|
2013-02-23 03:46:24 +08:00
|
|
|
rm -f $@ && $(LN_S) $< .
|
|
|
|
|
|
|
|
$(RMGRDESCSOURCES): % : $(top_srcdir)/src/backend/access/rmgrdesc/%
|
|
|
|
rm -f $@ && $(LN_S) $< .
|