Debian Codegraph @

src/bin/pg_combinebackup/Makefile

raw
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for src/bin/pg_combinebackup
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_combinebackup/Makefile
9 #
10 #-------------------------------------------------------------------------
11
12 PGFILEDESC = "pg_combinebackup - combine incremental backups"
13 PGAPPICON=win32
14
15 EXTRA_INSTALL=contrib/pg_visibility
16
17 subdir = src/bin/pg_combinebackup
18 top_builddir = ../../..
19 include $(top_builddir)/src/Makefile.global
20
21 override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
22 LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils
23
24 OBJS = \
25 $(WIN32RES) \
26 pg_combinebackup.o \
27 backup_label.o \
28 copy_file.o \
29 load_manifest.o \
30 reconstruct.o \
31 write_manifest.o
32
33 all: pg_combinebackup
34
35 pg_combinebackup: $(OBJS) | submake-libpgport submake-libpgfeutils
36 $(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
37
38 install: all installdirs
39 $(INSTALL_PROGRAM) pg_combinebackup$(X) '$(DESTDIR)$(bindir)/pg_combinebackup$(X)'
40
41 installdirs:
42 $(MKDIR_P) '$(DESTDIR)$(bindir)'
43
44 uninstall:
45 rm -f '$(DESTDIR)$(bindir)/pg_combinebackup$(X)'
46
47 clean distclean maintainer-clean:
48 rm -f pg_combinebackup$(X) $(OBJS)
49 rm -rf tmp_check
50
51 check:
52 $(prove_check)
53
54 installcheck:
55 $(prove_installcheck)