head	1.16;
access;
symbols
	REL7_2_8:1.12
	REL7_2_7:1.12
	REL7_2_6:1.12
	REL7_2_5:1.12
	REL7_2_4:1.12
	REL7_2_3:1.12
	REL7_2_STABLE:1.12.0.4
	REL7_2:1.12
	REL7_2_RC2:1.12
	REL7_2_RC1:1.12
	REL7_2_BETA5:1.12
	REL7_2_BETA4:1.12
	REL7_2_BETA3:1.12
	REL7_2_BETA2:1.12
	REL7_2_BETA1:1.12
	REL7_1_2:1.12
	REL7_1_STABLE:1.12.0.2
	REL7_1_BETA:1.12
	REL7_1_BETA3:1.12
	REL7_1_BETA2:1.12
	REL7_1:1.12
	REL7_0_PATCHES:1.10.0.2
	REL7_0:1.10
	REL6_5_PATCHES:1.9.0.2
	REL6_5:1.9
	REL6_4:1.8.0.2
	release-6-3:1.8
	REL2_0B:1.5.0.2
	REL2_0:1.5
	Release_2_0_0:1.1.1.1
	Release_1_0_3:1.1.1.1.0.2
	Release_2_0:1.1.1.1
	Release_1_0_2:1.1.1.1
	PG95-1_01:1.1.1.1
	PG95_DIST:1.1.1;
locks; strict;
comment	@# @;


1.16
date	2002.08.22.00.15.14;	author scrappy;	state dead;
branches;
next	1.15;

1.15
date	2002.07.27.20.10.05;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2002.06.20.20.29.54;	author momjian;	state Exp;
branches;
next	1.13;

1.13
date	2002.06.15.18.49.29;	author momjian;	state Exp;
branches;
next	1.12;

1.12
date	2000.06.17.00.10.20;	author petere;	state Exp;
branches;
next	1.11;

1.11
date	2000.05.29.05.45.52;	author tgl;	state Exp;
branches;
next	1.10;

1.10
date	2000.03.02.02.00.59;	author momjian;	state Exp;
branches;
next	1.9;

1.9
date	99.05.23.01.04.04;	author momjian;	state Exp;
branches;
next	1.8;

1.8
date	97.09.16.18.47.29;	author momjian;	state Exp;
branches;
next	1.7;

1.7
date	97.04.04.10.42.52;	author scrappy;	state Exp;
branches;
next	1.6;

1.6
date	97.02.13.10.00.39;	author scrappy;	state Exp;
branches;
next	1.5;

1.5
date	96.11.18.01.44.19;	author bryanh;	state Exp;
branches;
next	1.4;

1.4
date	96.11.13.10.35.49;	author bryanh;	state Exp;
branches;
next	1.3;

1.3
date	96.11.12.11.42.35;	author bryanh;	state Exp;
branches;
next	1.2;

1.2
date	96.11.04.05.14.48;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	96.07.09.06.22.18;	author scrappy;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.07.09.06.22.18;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.16
log
@
Okay, libpq++ is moved to GBorg, and all traces of it have been removed
from the core repository ... I haven't *moved* the libpq++ files out of the
tree, mainly as we want to keep them in place for past branches ...

Peter, I think I've covered all the files I need, and re-ran autoconf to make
sure the configure file is in place properly ...
@
text
@#-------------------------------------------------------------------------
#
# Makefile for libpq++ examples
#
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql-server/src/interfaces/libpq++/examples/Makefile,v 1.15 2002/07/27 20:10:05 petere Exp $
#
#-------------------------------------------------------------------------

subdir = src/interfaces/libpq++/examples
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global

LIBNAME= libpq++
HEADERDIR= $(includedir)
LIBPQDIR= $(libdir)

CXXFLAGS= $(CFLAGS)

CXXFLAGS+= -I$(HEADERDIR)

LDFLAGS+= -L$(LIBPQDIR) -lpq++ 

PROGS=	testlibpq0 testlibpq1 testlibpq2 testlibpq3 \
	testlibpq4 testlibpq5 testlibpq6 testlo

all: $(PROGS)

$(PROGS): % : %.cc
	$(CXX) $(CXXFLAGS) -o $@@ $@@.cc $(LDFLAGS)

clean: 
	rm -f $(PROGS)

@


1.15
log
@Assemble portability modules into libpgport library.
Some makefile simplifications.
@
text
@d8 1
a8 1
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Makefile,v 1.14 2002/06/20 20:29:54 momjian Exp $
@


1.14
log
@Update copyright to 2002.
@
text
@d8 1
a8 1
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Makefile,v 1.13 2002/06/15 18:49:29 momjian Exp $
a32 2

.PHONY: submake
@


1.13
log
@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
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
d8 1
a8 1
# $Header$
@


1.12
log
@Remove fmgrstamp-h business -- not needed and confusing

Add options to configure to automatically build for Kerberos
support; no more editing of make files.
@
text
@d1 1
d3 1
a3 1
# Makefile for example programs
d5 6
d12 3
d17 2
a18 7
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.
a19 1
#CXXFLAGS= $(CFLAGS) -Wno-error -Wno-unused -Wl,-Bdynamic
@


1.11
log
@Generated header files parse.h and fmgroids.h are now copied into
the src/include tree, so that -I backend is no longer necessary anywhere.
Also, clean up some bit rot in contrib tree.
@
text
@a21 8
#
# And where libpq goes, so goes the authentication stuff...
#
ifdef KRBVERS
LDFLAGS+= $(KRBLIBS)
CXXFLAGS+= $(KRBFLAGS)
endif

@


1.10
log
@Patch for Irix from Mark Dalphin.
@
text
@d18 1
a18 3
INCLUDE_OPT= -I$(HEADERDIR)

CXXFLAGS+= $(INCLUDE_OPT)
@


1.9
log
@Here it is.  Remove or rename the current interfaces/libpq++ and untar
this file in interfaces/

It will all need to be checked in.  I used the char *rcsid[] method for
cvs ids so it can be strings | grep'd to find version numbers.  The new
version for the library is 3.0.

Run configure from src/ to create the Makefile and it should be good to
go.

I did minimal documentation references in the README, I'll see if I can
get something to Tom Lockhart rather quickly.

Vince.
@
text
@d15 2
a16 1
CXXFLAGS= $(CFLAGS) -Wno-error -Wno-unused -Wl,-Bdynamic
@


1.8
log
@Makefile cleanup.
@
text
@a4 2
SRCDIR= ../../..
include ../../../Makefile.global
d7 3
d15 3
a17 1
CXXFLAGS= $(CFLAGS) -Wno-error
a18 6
INCLUDE_OPT= \
             -I.. \
             -I../../../backend \
             -I../../../include \
             -I$(LIBPQDIR) \
             -I$(HEADERDIR)
d21 1
a21 1
LDFLAGS+= -L.. -lpq++ -L$(LIBPQDIR) -lpq 
d34 1
a34 1
all: submake $(PROGS)
d36 1
a36 1
$(PROGS): % : %.cc ../$(LIBNAME).a
a39 5
submake: 
	$(MAKE) -C.. $(LIBNAME).a

../$(LIBNAME).a:
	$(MAKE) -C.. $(LIBNAME).a
@


1.7
log
@This commit represents a clean compile with the new templates under
FreeBSD

The Makefile(s) have all been cleaned up such that there is a single
LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE.  The Makefile(s)
should be alot more straightforward then they were before...and
consistent
@
text
@d5 2
a6 2
SRCDIR= ../..
include ../../Makefile.global
d18 2
a19 2
             -I../../backend \
             -I../../include \
@


1.6
log
@Bring in Leo's <lsh@@lubrizol.com> massive changes to libpq++
@
text
@d24 1
a24 1
LD_ADD+= -L.. -lpq++ -L$(LIBPQDIR) -lpq 
d30 1
a30 1
LD_ADD+= $(KRBLIBS)
d40 1
a40 1
	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@@ $@@.cc $(LD_ADD)
@


1.5
log
@Quiet compiler warnings, ignore the ones we can't.
@
text
@d8 2
d20 2
a21 2
             -I$(LIBPQDIR) 

d34 2
a35 1
PROGS= testlibpq0 testlibpq1 testlibpq2 testlibpq3 testlibpq4 testlo
d39 1
a39 1
$(PROGS): % : %.cc ../libpq++.a
d44 1
a44 1
	$(MAKE) -C.. libpq++.a
d46 2
a47 2
../libpq++.a:
	$(MAKE) -C.. libpq++.a
d51 1
@


1.4
log
@Eliminate MKDIR, srcdir, objdir.  Centralize setting of LIBPQDIR.
@
text
@d8 5
a12 1
CXXFLAGS= $(CFLAGS)
@


1.3
log
@End of the make file simplifications.
@
text
@a5 1
LIBPQDIR= $(SRCDIR)/libpq
@


1.2
log
@Rename CDEBUG to COPT
@
text
@d5 3
a7 1
CPP_PROG = true
d9 1
a9 2
MKDIR=	../../mk
include $(MKDIR)/postgres.mk
d11 5
a15 2
CXXFLAGS+= -I$(HEADERDIR) -I$(srcdir)/libpq -I$(srcdir)/backend \
 	 -I$(srcdir)/backend/include
d17 3
a19 1
LD_ADD+=-L$(LIBDIR) -lpq++ -lpq
d29 1
a29 32
P0_PROG:= testlibpq0
P0_OBJS:= testlibpq0.o

$(P0_PROG):  $(addprefix $(objdir)/,$(P0_OBJS))
	$(CXX) $(CFLAGS) -o $(objdir)/$(@@F) $< $(LD_ADD)

P1_PROG:= testlibpq1
P1_OBJS:= testlibpq1.o

$(P1_PROG):  $(addprefix $(objdir)/,$(P1_OBJS))
	$(CXX) $(CFLAGS) -o $(objdir)/$(@@F) $< $(LD_ADD)

P2_PROG:= testlibpq2
P2_OBJS:= testlibpq2.o

$(P2_PROG):  $(addprefix $(objdir)/,$(P2_OBJS))
	$(CXX) $(CFLAGS) -o $(objdir)/$(@@F) $< $(LD_ADD)

P3_PROG:= testlibpq3
P3_OBJS:= testlibpq3.o

$(P3_PROG):  $(addprefix $(objdir)/,$(P3_OBJS))
	$(CXX) $(CFLAGS) -o $(objdir)/$(@@F) $< $(LD_ADD)

P4_PROG:= testlibpq4
P4_OBJS:= testlibpq4.o

$(P4_PROG):  $(addprefix $(objdir)/,$(P4_OBJS))
	$(CXX) $(CFLAGS) -o $(objdir)/$(@@F) $< $(LD_ADD)

P5_PROG:= testlo
P5_OBJS:= testlo.o
d31 1
a31 2
$(P5_PROG):  $(addprefix $(objdir)/,$(P5_OBJS))
	$(CXX) $(CFLAGS) -o $(objdir)/$(@@F) $< $(LD_ADD)
d33 2
a34 2
OBJS:= $(P0_OBJS) $(P1_OBJS) $(P2_OBJS) $(P3_OBJS) $(P4_OBJS) $(P5_OBJS)
PROGS:= $(P0_PROG) $(P1_PROG) $(P2_PROG) $(P3_PROG) $(P4_PROG) $(P5_PROG)
d36 3
a38 1
CLEANFILES+= $(OBJS) $(PROGS)
d40 2
a41 1
all:: $(PROGS)
d43 2
a44 5
install:: $(PROGS)
	@@for i in ${PROGS}; do \
		echo "Installing $$i"; \
		$(INSTALL) $(objdir)/$$i $(DESTDIR)$(BINDIR)/$$i;\
	done
@


1.1
log
@Initial revision
@
text
@d27 1
a27 1
	$(CXX) $(CDEBUG) -o $(objdir)/$(@@F) $< $(LD_ADD)
d33 1
a33 1
	$(CXX) $(CDEBUG) -o $(objdir)/$(@@F) $< $(LD_ADD)
d39 1
a39 1
	$(CXX) $(CDEBUG) -o $(objdir)/$(@@F) $< $(LD_ADD)
d45 1
a45 1
	$(CXX) $(CDEBUG) -o $(objdir)/$(@@F) $< $(LD_ADD)
d51 1
a51 1
	$(CXX) $(CDEBUG) -o $(objdir)/$(@@F) $< $(LD_ADD)
d57 1
a57 1
	$(CXX) $(CDEBUG) -o $(objdir)/$(@@F) $< $(LD_ADD)
@


1.1.1.1
log
@Postgres95 1.01 Distribution - Virgin Sources
@
text
@@
