1
0
mirror of https://github.com/postgres/postgres.git synced 2026-01-05 23:38:41 +03:00

To fix the perpetually broken makefiles in the contrib tree, I have

written a generic framework of rules that the contrib makefiles can
use instead of writing their own each time.  You only need to set a few
variables and off you go.
This commit is contained in:
Peter Eisentraut
2001-09-06 10:49:30 +00:00
parent 22ae53d4cd
commit 17cc78ef01
32 changed files with 394 additions and 1061 deletions

View File

@@ -1,18 +1,12 @@
#
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.2 2001/04/03 19:01:57 tgl Exp $
#
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.3 2001/09/06 10:49:30 petere Exp $
subdir = contrib/pg_resetxlog
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
PROGRAM = pg_resetxlog
OBJS = pg_resetxlog.o pg_crc.o $(SNPRINTF)
all: pg_resetxlog
pg_resetxlog: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
rm -f $@ && $(LN_S) $< .
@@ -20,22 +14,8 @@ pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
snprintf.c: $(top_srcdir)/src/backend/port/snprintf.c
rm -f $@ && $(LN_S) $< .
install: all installdirs
$(INSTALL_PROGRAM) pg_resetxlog$(X) $(bindir)
$(INSTALL_DATA) README.pg_resetxlog $(docdir)/contrib
EXTRA_CLEAN = pg_crc.c snprintf.c
installdirs:
$(mkinstalldirs) $(bindir) $(docdir)/contrib
DOCS = README.pg_resetxlog
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 snprintf.c
depend dep:
$(CC) -MM -MG $(CFLAGS) *.c > depend
ifeq (depend,$(wildcard depend))
include depend
endif
include $(top_srcdir)/contrib/contrib-global.mk