summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq++/examples
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-06-15 18:49:29 +0000
committerBruce Momjian <bruce@momjian.us>2002-06-15 18:49:29 +0000
commit2e58024066e1ddf63d729ffb42077938fe25a9bf (patch)
tree8af75e9dd7c45531ea18c44322eb628af57162dd /src/interfaces/libpq++/examples
parent133df7ce70749156a6115ef49ef7d52e0c584adc (diff)
This patch fixes a few minor problems with libpq++: remove the deprecated
PQExec(" ") in the wrapper around PQnotifies(), fix the Makefile for the examples so that they will actually compile properly (with the exception of #5, which depends on internal headers), make a minor change to libpq++.h so that "make examples" now works on my machine, update some documentation, fix some grammatical problems, and remove some of the more hideous comments. Neil Conway
Diffstat (limited to 'src/interfaces/libpq++/examples')
-rw-r--r--src/interfaces/libpq++/examples/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/interfaces/libpq++/examples/Makefile b/src/interfaces/libpq++/examples/Makefile
index c6ce50f8c68..919e637712f 100644
--- a/src/interfaces/libpq++/examples/Makefile
+++ b/src/interfaces/libpq++/examples/Makefile
@@ -1,18 +1,22 @@
+#-------------------------------------------------------------------------
#
-# Makefile for example programs
+# Makefile for libpq++ examples
#
+# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
+# Portions Copyright (c) 1994, Regents of the University of California
+#
+# $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/Makefile,v 1.13 2002/06/15 18:49:29 momjian Exp $
+#
+#-------------------------------------------------------------------------
+subdir = src/interfaces/libpq++/examples
+top_builddir = ../../../..
+include $(top_builddir)/src/Makefile.global
LIBNAME= libpq++
-HEADERDIR= /usr/local/pgsql/include
-LIBPQDIR= /usr/local/pgsql/lib
-
-
-# We have to override -Werror, which makes warnings, fatal, because we
-# inevitably get the warning, "abstract declarator used as declaration"
-# because of our inclusion of c.h and we don't know how to stop that.
+HEADERDIR= $(includedir)
+LIBPQDIR= $(libdir)
-#CXXFLAGS= $(CFLAGS) -Wno-error -Wno-unused -Wl,-Bdynamic
CXXFLAGS= $(CFLAGS)
CXXFLAGS+= -I$(HEADERDIR)