From 17cc78ef01679deae3f0dac1c35ae777c2c73723 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 6 Sep 2001 10:49:30 +0000 Subject: 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. --- contrib/oid2name/Makefile | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) (limited to 'contrib/oid2name') diff --git a/contrib/oid2name/Makefile b/contrib/oid2name/Makefile index 370cd7de12..c69083c57c 100644 --- a/contrib/oid2name/Makefile +++ b/contrib/oid2name/Makefile @@ -1,34 +1,15 @@ -# $Header: /cvsroot/pgsql/contrib/oid2name/Makefile,v 1.3 2001/02/20 19:20:27 petere Exp $ +# $Header: /cvsroot/pgsql/contrib/oid2name/Makefile,v 1.4 2001/09/06 10:49:29 petere Exp $ subdir = contrib/oid2name top_builddir = ../.. include $(top_builddir)/src/Makefile.global -override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS) - +PROGRAM = oid2name OBJS = oid2name.o -all: oid2name - -oid2name: $(OBJS) $(libpq_builddir)/libpq.a - $(CC) $(CFLAGS) $(OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@ -g - -install: all installdirs - $(INSTALL_PROGRAM) oid2name$(X) $(bindir) - $(INSTALL_DATA) README.oid2name $(docdir)/contrib - -installdirs: - $(mkinstalldirs) $(bindir) $(docdir)/contrib - -uninstall: - rm -f $(bindir)/oid2name$(X) $(docdir)/contrib/README.oid2name - -clean distclean maintainer-clean: - rm -f oid2name$(X) $(OBJS) +PG_CPPFLAGS = -I$(libpq_srcdir) +PG_LIBS = $(libpq) -depend dep: - $(CC) -MM -MG $(CFLAGS) *.c > depend +DOCS = README.oid2name -ifeq (depend,$(wildcard depend)) -include depend -endif +include $(top_srcdir)/contrib/contrib-global.mk -- cgit v1.2.1