mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-25 09:01:48 +02:00
7fbb857d03
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@2 182aca00-e38e-11de-a668-6fd11605f5ce
41 lines
748 B
Makefile
41 lines
748 B
Makefile
PROGRAM = pg_rman
|
|
SRCS = \
|
|
backup.c \
|
|
catalog.c \
|
|
data.c \
|
|
delete.c \
|
|
dir.c \
|
|
init.c \
|
|
parray.c \
|
|
pg_rman.c \
|
|
restore.c \
|
|
show.c \
|
|
util.c \
|
|
validate.c \
|
|
xlog.c \
|
|
pgsql_src/pg_ctl.c \
|
|
pgsql_src/pg_crc.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)
|
|
|
|
REGRESS = option init show_validate backup_restore
|
|
|
|
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
|
|
|
|
$(OBJS): pg_rman.h
|