2009-12-08 02:21:28 +02:00
|
|
|
PROGRAM = pg_rman
|
|
|
|
SRCS = \
|
|
|
|
backup.c \
|
|
|
|
catalog.c \
|
|
|
|
data.c \
|
|
|
|
delete.c \
|
|
|
|
dir.c \
|
2013-12-12 21:55:39 +03:00
|
|
|
fetch.c \
|
2009-12-08 02:21:28 +02:00
|
|
|
init.c \
|
|
|
|
parray.c \
|
|
|
|
pg_rman.c \
|
|
|
|
restore.c \
|
|
|
|
show.c \
|
2013-12-12 17:54:52 +03:00
|
|
|
status.c \
|
2009-12-08 02:21:28 +02:00
|
|
|
util.c \
|
|
|
|
validate.c \
|
|
|
|
xlog.c \
|
|
|
|
pgut/pgut.c \
|
|
|
|
pgut/pgut-port.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
# pg_crc.c and are copied from PostgreSQL source tree.
|
|
|
|
|
|
|
|
# XXX for debug, add -g and disable optimization
|
|
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
|
|
|
PG_LIBS = $(libpq_pgport)
|
|
|
|
|
2011-11-28 07:22:05 +03:00
|
|
|
REGRESS = option init show_validate backup_restore
|
2009-12-08 02:21:28 +02:00
|
|
|
|
|
|
|
ifdef USE_PGXS
|
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/pg_rman
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
endif
|
|
|
|
|
2010-06-01 10:10:49 +03:00
|
|
|
# remove dependency to libxml2 and libxslt
|
|
|
|
LIBS := $(filter-out -lxml2, $(LIBS))
|
|
|
|
LIBS := $(filter-out -lxslt, $(LIBS))
|
|
|
|
|
2009-12-08 02:21:28 +02:00
|
|
|
$(OBJS): pg_rman.h
|