summaryrefslogtreecommitdiff
path: root/contrib/oid2name
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2001-09-06 10:49:30 +0000
committerPeter Eisentraut <peter_e@gmx.net>2001-09-06 10:49:30 +0000
commit17cc78ef01679deae3f0dac1c35ae777c2c73723 (patch)
tree57c116d4f29272878495dc748a14cb7249f5dc7c /contrib/oid2name
parent22ae53d4cdca7244b0de25f1d28255e1649aa936 (diff)
downloadpostgresql-17cc78ef01679deae3f0dac1c35ae777c2c73723.tar.gz
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.
Diffstat (limited to 'contrib/oid2name')
-rw-r--r--contrib/oid2name/Makefile31
1 files changed, 6 insertions, 25 deletions
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