2002-08-17 04:44:24 +02:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile for src/bin/pg_resetxlog
|
|
|
|
#
|
2010-01-02 17:58:17 +01:00
|
|
|
# Copyright (c) 1998-2010, PostgreSQL Global Development Group
|
2002-08-17 04:44:24 +02:00
|
|
|
#
|
2010-05-12 13:33:10 +02:00
|
|
|
# $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.23 2010/05/12 11:33:10 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"
|
2010-05-12 13:33:10 +02:00
|
|
|
PGAPPICON=win32
|
|
|
|
|
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:
|
2009-08-27 00:24:44 +02:00
|
|
|
$(MKDIR_P) '$(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
|