1 #-------------------------------------------------------------------------
3 # Makefile for src/bin/pg_checksums
5 # Copyright (c) 1998-2021, PostgreSQL Global Development Group
7 # src/bin/pg_checksums/Makefile
9 #-------------------------------------------------------------------------
11 PGFILEDESC
= "pg_checksums - verify data checksums in an offline cluster"
14 subdir
= src
/bin
/pg_checksums
15 top_builddir
= ..
/..
/..
16 include $(top_builddir
)/src
/Makefile.global
18 # We need libpq only because fe_utils does.
19 LDFLAGS_INTERNAL
+= -L
$(top_builddir
)/src
/fe_utils
-lpgfeutils
$(libpq_pgport
)
27 pg_checksums
: $(OBJS
) | submake-libpgport
28 $(CC
) $(CFLAGS
) $^
$(LDFLAGS
) $(LDFLAGS_EX
) $(LIBS
) -o
$@
$(X
)
30 install: all installdirs
31 $(INSTALL_PROGRAM
) pg_checksums
$(X
) '$(DESTDIR)$(bindir)/pg_checksums$(X)'
34 $(MKDIR_P
) '$(DESTDIR)$(bindir)'
37 rm -f
'$(DESTDIR)$(bindir)/pg_checksums$(X)'
39 clean distclean maintainer-clean
:
40 rm -f pg_checksums
$(X
) $(OBJS
)