1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-28 09:33:54 +02:00
pg_probackup/Makefile

65 lines
1.7 KiB
Makefile
Raw Normal View History

PROGRAM = pg_arman
OBJS = backup.o \
catalog.o \
data.o \
delete.o \
dir.o \
fetch.o \
init.o \
parray.o \
pg_arman.o \
restore.o \
show.o \
status.o \
util.o \
validate.o \
datapagemap.o \
parsexlog.o \
xlogreader.o \
streamutil.o \
receivelog.o \
pgut/pgut.o \
pgut/pgut-port.o
2016-06-14 13:39:02 +02:00
EXTRA_CLEAN = datapagemap.c datapagemap.h xlogreader.c receivelog.h streamutil.h
2016-02-29 19:23:48 +02:00
PG_CPPFLAGS = -I$(libpq_srcdir) ${PTHREAD_CFLAGS}
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
PG_LIBS = $(libpq_pgport) ${PTHREAD_LIBS} ${PTHREAD_CFLAGS}
REGRESS = init option show delete backup restore
2016-07-07 13:00:33 +02:00
all: checksrcdir datapagemap.h receivelog.h streamutil.h pg_arman
# This rule's only purpose is to give the user instructions on how to pass
# the path to PostgreSQL source tree to the makefile.
.PHONY: checksrcdir
checksrcdir:
ifndef top_srcdir
@echo "You must have PostgreSQL source tree available to compile."
@echo "Pass the path to the PostgreSQL source tree to make, in the top_srcdir"
@echo "variable: \"make top_srcdir=<path to PostgreSQL source tree>\""
@exit 1
endif
# Those files are symlinked from the PostgreSQL sources.
xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/%
rm -f $@ && $(LN_S) $< .
datapagemap.c: % : $(top_srcdir)/src/bin/pg_rewind/%
rm -f $@ && $(LN_S) $< .
datapagemap.h: % : $(top_srcdir)/src/bin/pg_rewind/%
rm -f && $(LN_S) $< .
2016-04-26 14:24:59 +02:00
receivelog.c: % : $(top_srcdir)/src/bin/pg_basebackup/%
rm -f && $(LN_S) $< .
receivelog.h: % : $(top_srcdir)/src/bin/pg_basebackup/%
rm -f && $(LN_S) $< .
streamutil.c: % : $(top_srcdir)/src/bin/pg_basebackup/%
rm -f && $(LN_S) $< .
streamutil.h: % : $(top_srcdir)/src/bin/pg_basebackup/%
rm -f && $(LN_S) $< .
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)