postgresql/src/bin/pg_resetwal/Makefile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.0 KiB
Makefile
Raw Normal View History

2002-08-17 04:44:24 +02:00
#-------------------------------------------------------------------------
#
# Makefile for src/bin/pg_resetwal
2002-08-17 04:44:24 +02:00
#
# Copyright (c) 1998-2023, PostgreSQL Global Development Group
2002-08-17 04:44:24 +02:00
#
# src/bin/pg_resetwal/Makefile
2002-08-17 04:44:24 +02:00
#
#-------------------------------------------------------------------------
PGFILEDESC = "pg_resetwal - reset PostgreSQL WAL log"
PGAPPICON=win32
subdir = src/bin/pg_resetwal
2002-08-17 04:44:24 +02:00
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils
OBJS = \
$(WIN32RES) \
pg_resetwal.o
2002-08-17 04:44:24 +02:00
all: pg_resetwal
2002-08-17 04:44:24 +02:00
pg_resetwal: $(OBJS) | submake-libpgport
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
2002-08-17 04:44:24 +02:00
install: all installdirs
$(INSTALL_PROGRAM) pg_resetwal$(X) '$(DESTDIR)$(bindir)/pg_resetwal$(X)'
2002-08-17 04:44:24 +02:00
installdirs:
$(MKDIR_P) '$(DESTDIR)$(bindir)'
2002-08-17 04:44:24 +02:00
uninstall:
rm -f '$(DESTDIR)$(bindir)/pg_resetwal$(X)'
2002-08-17 04:44:24 +02:00
clean distclean maintainer-clean:
rm -f pg_resetwal$(X) $(OBJS)
rm -rf tmp_check
check:
$(prove_check)
installcheck:
$(prove_installcheck)