Debian Codegraph @

src/bin/pg_walsummary/Makefile

raw
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for src/bin/pg_walsummary
4 #
5 # Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
6 # Portions Copyright (c) 1994, Regents of the University of California
7 #
8 # src/bin/pg_walsummary/Makefile
9 #
10 #-------------------------------------------------------------------------
11
12 PGFILEDESC = "pg_walsummary - print contents of WAL summary files"
13 PGAPPICON=win32
14
15 subdir = src/bin/pg_walsummary
16 top_builddir = ../../..
17 include $(top_builddir)/src/Makefile.global
18
19 override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
20 LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils
21
22 OBJS = \
23 $(WIN32RES) \
24 pg_walsummary.o
25
26 all: pg_walsummary
27
28 pg_walsummary: $(OBJS) | submake-libpgport submake-libpgfeutils
29 $(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
30
31
32 install: all installdirs
33 $(INSTALL_PROGRAM) pg_walsummary$(X) '$(DESTDIR)$(bindir)/pg_walsummary$(X)'
34
35 installdirs:
36 $(MKDIR_P) '$(DESTDIR)$(bindir)'
37
38 uninstall:
39 rm -f '$(DESTDIR)$(bindir)/pg_walsummary$(X)'
40
41 clean distclean maintainer-clean:
42 rm -f pg_walsummary$(X) $(OBJS)
43 rm -rf tmp_check
44
45 check:
46 $(prove_check)
47
48 installcheck:
49 $(prove_installcheck)