mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-21 13:53:24 +02:00
38 lines
861 B
Makefile
38 lines
861 B
Makefile
#
|
|
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.1 2001/03/14 00:57:43 tgl Exp $
|
|
#
|
|
|
|
subdir = contrib/pg_resetxlog
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
OBJS = pg_resetxlog.o pg_crc.o
|
|
|
|
all: pg_resetxlog
|
|
|
|
pg_resetxlog: $(OBJS)
|
|
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
|
|
|
|
pg_crc.c: $(top_builddir)/src/backend/utils/hash/pg_crc.c
|
|
rm -f $@ && $(LN_S) $< .
|
|
|
|
install: all installdirs
|
|
$(INSTALL_PROGRAM) pg_resetxlog$(X) $(bindir)
|
|
$(INSTALL_DATA) README.pg_resetxlog $(docdir)/contrib
|
|
|
|
installdirs:
|
|
$(mkinstalldirs) $(bindir) $(docdir)/contrib
|
|
|
|
uninstall:
|
|
rm -f $(bindir)/pg_resetxlog$(X) $(docdir)/contrib/README.pg_resetxlog
|
|
|
|
clean distclean maintainer-clean:
|
|
rm -f pg_resetxlog$(X) $(OBJS) pg_crc.c
|
|
|
|
depend dep:
|
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
include depend
|
|
endif
|