forked from ossc-db/pg_rman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (36 loc) · 874 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# pg_rman: Makefile
#
# Portions Copyright (c) 2008-2021, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
#
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 \
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) -lm
PG_LIBS = $(libpq_pgport)
REGRESS = init option show delete purge backup backup_management restore restore_checksum backup_from_standby arc_srv_log_management
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
# remove dependency to libxml2 and libxslt
LIBS := $(filter-out -lxml2, $(LIBS))
LIBS := $(filter-out -lxslt, $(LIBS))
$(OBJS): pg_rman.h