1
#-------------------------------------------------------------------------
3
# Makefile for src/bin/pg_basebackup
5
# Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
6
# Portions Copyright (c) 1994, Regents of the University of California
8
# src/bin/pg_basebackup/Makefile
10
#-------------------------------------------------------------------------
12
PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL instance"
15
subdir = src/bin/pg_basebackup
16
top_builddir = ../../..
17
include $(top_builddir)/src/Makefile.global
19
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
21
OBJS= pg_basebackup.o $(WIN32RES)
25
pg_basebackup: $(OBJS) | submake-libpq submake-libpgport
26
$(CC) $(CFLAGS) $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
28
install: all installdirs
29
$(INSTALL_PROGRAM) pg_basebackup$(X) '$(DESTDIR)$(bindir)/pg_basebackup$(X)'
32
$(MKDIR_P) '$(DESTDIR)$(bindir)'
35
rm -f '$(DESTDIR)$(bindir)/pg_basebackup$(X)'
37
clean distclean maintainer-clean:
38
rm -f pg_basebackup$(X) $(OBJS)