1 # src/bin/pg_verifybackup/Makefile
3 PGFILEDESC
= "pg_verifybackup - verify a backup against using a backup manifest"
6 # make these available to TAP test scripts
8 # Note that GZIP cannot be used directly as this environment variable is
9 # used by the command "gzip" to pass down options, so stick with a different
11 export GZIP_PROGRAM
=$(GZIP
)
15 subdir
= src
/bin
/pg_verifybackup
16 top_builddir
= ..
/..
/..
17 include $(top_builddir
)/src
/Makefile.global
19 # We need libpq only because fe_utils does.
20 override CPPFLAGS
:= -I
$(libpq_srcdir
) $(CPPFLAGS
)
21 LDFLAGS_INTERNAL
+= -L
$(top_builddir
)/src
/fe_utils
-lpgfeutils
$(libpq_pgport
)
30 pg_verifybackup
: $(OBJS
) | submake-libpq submake-libpgport submake-libpgfeutils
31 $(CC
) $(CFLAGS
) $^
$(LDFLAGS
) $(LDFLAGS_EX
) $(LIBS
) -o
$@
$(X
)
33 install: all installdirs
34 $(INSTALL_PROGRAM
) pg_verifybackup
$(X
) '$(DESTDIR)$(bindir)/pg_verifybackup$(X)'
37 $(MKDIR_P
) '$(DESTDIR)$(bindir)'
40 rm -f
'$(DESTDIR)$(bindir)/pg_verifybackup$(X)'
43 rm -f pg_verifybackup
$(X
) $(OBJS
)