2002-08-17 04:44:24 +02:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile for src/bin/pg_resetxlog
|
|
|
|
#
|
2009-01-01 18:24:05 +01:00
|
|
|
# Copyright (c) 1998-2009, PostgreSQL Global Development Group
|
2002-08-17 04:44:24 +02:00
|
|
|
#
|
2009-01-01 18:24:05 +01:00
|
|
|
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.20 2009/01/01 17:23:54 momjian Exp $
|
2002-08-17 04:44:24 +02:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2004-10-05 21:30:25 +02:00
|
|
|
PGFILEDESC = "pg_resetxlog - reset PostgreSQL WAL log"
|
2002-08-17 04:44:24 +02:00
|
|
|
subdir = src/bin/pg_resetxlog
|
|
|
|
top_builddir = ../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
2004-10-05 21:30:25 +02:00
|
|
|
OBJS= pg_resetxlog.o pg_crc.o $(WIN32RES)
|
2002-08-17 04:44:24 +02:00
|
|
|
|
|
|
|
all: submake-libpgport pg_resetxlog
|
|
|
|
|
|
|
|
pg_resetxlog: $(OBJS)
|
2004-04-26 19:40:48 +02:00
|
|
|
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LIBS) -o $@$(X)
|
2002-08-17 04:44:24 +02:00
|
|
|
|
2002-08-17 06:03:36 +02:00
|
|
|
pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
|
|
|
|
rm -f $@ && $(LN_S) $< .
|
|
|
|
|
2002-08-17 04:44:24 +02:00
|
|
|
install: all installdirs
|
2005-12-09 22:19:36 +01:00
|
|
|
$(INSTALL_PROGRAM) pg_resetxlog$(X) '$(DESTDIR)$(bindir)/pg_resetxlog$(X)'
|
2002-08-17 04:44:24 +02:00
|
|
|
|
|
|
|
installdirs:
|
2005-12-09 22:19:36 +01:00
|
|
|
$(mkinstalldirs) '$(DESTDIR)$(bindir)'
|
2002-08-17 04:44:24 +02:00
|
|
|
|
|
|
|
uninstall:
|
2005-12-09 22:19:36 +01:00
|
|
|
rm -f '$(DESTDIR)$(bindir)/pg_resetxlog$(X)'
|
2002-08-17 04:44:24 +02:00
|
|
|
|
|
|
|
clean distclean maintainer-clean:
|
2004-10-04 15:43:59 +02:00
|
|
|
rm -f pg_resetxlog$(X) $(OBJS) pg_crc.c
|