head	1.31;
access;
symbols
	REL7_2_8:1.30
	REL7_2_7:1.30
	REL7_2_6:1.30
	REL7_2_5:1.30
	REL7_2_4:1.30
	REL7_2_3:1.30
	REL7_2_STABLE:1.30.0.2
	REL7_2:1.30
	REL7_2_RC2:1.30
	REL7_2_RC1:1.30
	REL7_2_BETA5:1.30
	REL7_2_BETA4:1.30
	REL7_2_BETA3:1.30
	REL7_2_BETA2:1.30
	REL7_2_BETA1:1.30
	REL7_1_2:1.28
	REL7_1_STABLE:1.28.0.2
	REL7_1_BETA:1.27
	REL7_1_BETA3:1.27
	REL7_1_BETA2:1.27
	REL7_1:1.28
	release-6-3:1.9
	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.31
date	2002.08.22.00.15.12;	author scrappy;	state dead;
branches;
next	1.30;

1.30
date	2001.05.22.11.24.28;	author momjian;	state Exp;
branches;
next	1.29;

1.29
date	2001.05.11.01.46.33;	author momjian;	state Exp;
branches;
next	1.28;

1.28
date	2001.02.20.19.20.29;	author petere;	state Exp;
branches;
next	1.27;

1.27
date	2000.10.23.21.43.57;	author petere;	state Exp;
branches;
next	1.26;

1.26
date	2000.10.20.21.04.12;	author petere;	state Exp;
branches;
next	1.25;

1.25
date	2000.09.17.13.02.50;	author petere;	state Exp;
branches;
next	1.24;

1.24
date	2000.08.31.16.11.51;	author petere;	state Exp;
branches;
next	1.23;

1.23
date	2000.06.30.16.10.54;	author petere;	state Exp;
branches;
next	1.22;

1.22
date	2000.06.28.18.29.48;	author petere;	state Exp;
branches;
next	1.21;

1.21
date	98.09.11.16.56.22;	author momjian;	state dead;
branches;
next	1.20;

1.20
date	98.08.22.04.24.35;	author momjian;	state Exp;
branches;
next	1.19;

1.19
date	98.07.12.19.20.45;	author momjian;	state Exp;
branches;
next	1.18;

1.18
date	98.07.12.18.48.06;	author momjian;	state Exp;
branches;
next	1.17;

1.17
date	98.06.15.21.01.48;	author momjian;	state Exp;
branches;
next	1.16;

1.16
date	98.04.06.16.52.36;	author momjian;	state Exp;
branches;
next	1.15;

1.15
date	98.04.06.04.57.32;	author momjian;	state Exp;
branches;
next	1.14;

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

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

1.12
date	98.04.06.00.31.13;	author momjian;	state Exp;
branches;
next	1.11;

1.11
date	98.04.05.22.02.41;	author momjian;	state Exp;
branches;
next	1.10;

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

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

1.8
date	97.04.04.10.42.43;	author scrappy;	state Exp;
branches;
next	1.7;

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

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

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

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

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

1.2
date	96.11.12.11.42.24;	author bryanh;	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.31
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++ library
#
# Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql-server/src/interfaces/libpq++/Makefile,v 1.30 2001/05/22 11:24:28 momjian Exp $
#
#-------------------------------------------------------------------------

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

NAME= pq++
SO_MAJOR_VERSION= 4
SO_MINOR_VERSION= 0

override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)

OBJS = pgconnection.o pgdatabase.o pgtransdb.o pgcursordb.o pglobject.o 

SHLIB_LINK= $(libpq)

# communicate with Makefile.shlib
cplusplus := yes


all: all-lib

# Shared library stuff
include $(top_srcdir)/src/Makefile.shlib


.PHONY: examples
examples:
	$(MAKE) -C examples all

install: all installdirs install-headers install-lib

libpqxx_includedir = $(includedir)/libpq++
MAINHEADER = libpq++.h
LIBPGXXHEADERS = pgconnection.h pgdatabase.h pgtransdb.h pgcursordb.h pglobject.h

.PHONY: install-headers
install-headers: $(MAINHEADER) $(LIBPGXXHEADERS)
	$(INSTALL_DATA) $< $(DESTDIR)$(includedir)
	for i in $(LIBPGXXHEADERS); do $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(libpqxx_includedir) || exit 1; done

installdirs:
	$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(libpqxx_includedir)

uninstall: uninstall-lib
	rm -f $(DESTDIR)$(includedir)/$(MAINHEADER)
	for i in $(LIBPGXXHEADERS); do rm -f $(DESTDIR)$(libpqxx_includedir)/$$i || exit; done

clean distclean maintainer-clean: clean-lib
	rm -f $(OBJS)
	-$(MAKE) -C examples clean


dep depend:
	$(CXX) -MM $(CPPFLAGS) $(CXXFLAGS) *.cc >depend

ifeq (depend,$(wildcard depend))
include depend
endif
@


1.30
log
@Bump major libpq++ version after API changes, Patrick Welche
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.29 2001/05/11 01:46:33 momjian Exp $
@


1.29
log
@Stamp CVS as 7.2.  Update all interface version numbers.  This is the
time to do it, not during beta because people are using this stuff in
production sometimes.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.28 2001/02/20 19:20:29 petere Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 2
@


1.28
log
@Make sure -L and -I's for our source tree are always before system include
or library directories on the command line.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.27 2000/10/23 21:43:57 petere Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1
@


1.27
log
@Polish shared library build to reduce number of special hacks.  In
particular, allow linking with arbitrary commands rather than only $(AR) or
$(LD), and treat C++ without hacks.

Add option to disable shared libraries.  This takes the place of the
BSD_SHLIB variable.  The regression test driver ignores the plpgsql test
if there are no shared libraries available.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.26 2000/10/20 21:04:12 petere Exp $
d19 1
a19 1
override CPPFLAGS += -I$(libpq_srcdir)
@


1.26
log
@Add support for VPATH builds, that is, building somewhere else than in the
source directory.  This involves mostly makefiles using $(srcdir) when they
might have used ".".  (Regression tests don't work with this, yet.)

Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS).  Add "override" keyword
in most places, to preserve necessary flags even when the user overrode the
flags.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.25 2000/09/17 13:02:50 petere Exp $
a22 3
ifeq ($(PORTNAME), win)
SHLIB_LINK+= --driver-name g++ $(libpq)
else
a23 1
endif
d25 2
a26 16
# For CC on IRIX, must use CC as linker/archiver of C++ libraries
ifeq ($(PORTNAME), irix5)
  ifneq ($(GXX), yes)
    AR		:= CC
    AROPT	:= -ar -o
    LD		:= CC
  endif
endif
# Same for Solaris with native compiler
ifeq ($(PORTNAME), solaris)
  ifneq ($(GXX), yes)
    AR		:= CC
    AROPT	:= -xar -o
    LD		:= CC
  endif
endif
a32 3

# Pull shared-lib CFLAGS into CXXFLAGS
override CXXFLAGS+= $(CFLAGS_SL)
@


1.25
log
@Support for DESTDIR make variable. This is used as in `make install
DESTDIR=/else/where' and prepends the value of DESTDIR to the full
installation paths (e.g., /else/where/usr/local/pgsql/bin). This allows
users to install the package into a location different from the one that
was configured and hard-coded into various scripts, e.g., for creating
binary packages.

DESTDIR is in many cases preferrable over `make install
prefix=/else/where' because

a) `prefix' affects the path that is hard-coded into the files, which can
lead to a `make install prefix=xxx' (as done by the regression test
driver) corrupting the files in the source tree with wrong paths.

b) it doesn't work at all if a directory was overridden to not depend on
`prefix', e.g., --sysconfdir=/etc.

(Updating the regression test driver to use DESTDIR is a separate
undertaking.)

See also autoconf@@gnu.org, From: Akim Demaille <akim@@epita.fr>, Date: 08
Sep 2000 12:48:59 +0200, Message-ID:
<mv4em2vb1lw.fsf@@nostromo.lrde.epita.fr>, Subject: Re: HTML format
documentation.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.24 2000/08/31 16:11:51 petere Exp $
d19 1
a19 2
SRCHEADERDIR = $(top_srcdir)/src/include
CXXFLAGS+= -I$(SRCHEADERDIR) -I$(libpq_srcdir)
d31 1
a31 1
  ifeq ($(CXX), CC)
d38 2
a39 9
ifeq ($(PORTNAME), solaris_sparc)
  ifeq ($(CXX), CC)
    AR		:= CC
    AROPT	:= -xar -o
    LD		:= CC
  endif
endif
ifeq ($(PORTNAME), solaris_i386)
  ifeq ($(CXX), CC)
d45 1
d50 1
a50 1
include $(top_builddir)/src/Makefile.shlib
d53 1
a53 1
CXXFLAGS+= $(CFLAGS_SL)
d84 1
a84 1
	$(CXX) -MM $(CXXFLAGS) *.cc >depend
@


1.24
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.23 2000/06/30 16:10:54 petere Exp $
d75 2
a76 2
	$(INSTALL_DATA) $< $(includedir)
	for i in $(LIBPGXXHEADERS); do $(INSTALL_DATA) $(srcdir)/$$i $(libpqxx_includedir) || exit 1; done
d79 1
a79 1
	$(mkinstalldirs) $(libdir) $(includedir) $(libpqxx_includedir)
d82 2
a83 2
	rm -f $(includedir)/$(MAINHEADER)
	rm -rf $(libpqxx_includedir)
@


1.23
log
@Fixes for Solaris/cc suggested by <pgsql-hackers@@thewrittenword.com>

Don't use DISABLE_COMPLEX_MACRO on Solaris. Don't define the
replacement function in the header file. Use -KPIC, not -K PIC.
Use CC to link C++ libraries, not ld/ar.

Eliminate file not found warnings in tcl build code.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.22 2000/06/28 18:29:48 petere Exp $
d13 1
a13 1
include ../../Makefile.global
d20 1
a20 1
CXXFLAGS+= -I$(SRCHEADERDIR) -I$(LIBPQDIR)
d25 1
a25 1
SHLIB_LINK+= --driver-name g++ $(LIBPQ)
d27 1
a27 1
SHLIB_LINK= $(LIBPQ)
@


1.22
log
@Makefile cleanup for interface tree. Now essentially with all the
standard targets and behaviour. Replaced Makefile.in's with
Makefile's and declared the respective variables in Makefile.global.

maintainer-clean target now available at top level, although it does
not work in the backend tree yet.

Cleanup pass over Makefile.shlib, renamed some targets and variables.
The shared library symlink tests are now done by make, not the shell.

ecpg: Remove one warning in sloppy flex output.

PL/Perl and Perl interface: the MakeMaker documentation is confusing,
the realclean target *does* "delete derived files", but it also
uninstalls them. Don't use that.

The submake targets in the various bin directories that update libpq
should `make all', not `make libpq.a'. That is a) unportable, and
b) doesn't build the shared library.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq++/Makefile.in,v 1.27 2000/06/17 00:10:17 petere Exp $
d33 18
a50 3
    AR = CC
    AROPT = -ar -o
    LD = CC
@


1.21
log
@The attached patches fix the following problems:

1.  The UnixWare tas macro was reformatted (by indent or it like?) which caused
    it to break.  The asm macro construct is very particular about the %mem
    construct -- it has to start in column 1.

2.  When compiling libpq++, g++ was used even if configure found the C++ com-
    piler to be CC.

3.  When compiling libpq++, '-Wno-error' was added to CXXFLAGS, even if the
    compiler wasn't g++.

Billy G. Allie
@
text
@d3 1
a3 2
# Makefile
#    Makefile for libpq++ library
d7 1
a7 3
#
# IDENTIFICATION
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.20 1998/08/22 04:24:35 momjian Exp $
d11 3
a13 4
SRCDIR= ../..
include $(SRCDIR)/Makefile.global
SRCHEADERDIR = $(SRCDIR)/include
LIBPQHEADERDIR = $(SRCHEADERDIR)/libpq
d15 3
a17 1
LIBNAME= libpq++
d19 2
a20 3
# 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.
d22 1
a22 1
CXXFLAGS= $(CFLAGS) -Wno-error
d24 5
a28 4
INCLUDE_OPT= \
             -I$(SRCDIR)/backend \
             -I$(SRCHEADERDIR) \
             -I$(LIBPQDIR)
d30 7
a36 5
CXXFLAGS+= $(INCLUDE_OPT)
#CXXFLAGS+= -DDEBUG

ifdef KRBVERS
CXXFLAGS+= $(KRBFLAGS)
d39 1
a39 2

OBJS = pgenv.o pgconnection.o pgtransdb.o pgcursordb.o pglobject.o
d42 1
a42 15
SHLIB := 
INSTALL-SHLIB-DEP :=
ifeq ($(PORTNAME), linux)
  INSTALL-SHLIB-DEP := install-shlib
  SHLIB := libpq++.so.1
  LDFLAGS_SL = -shared -soname $(SHLIB)
  CFLAGS += $(CFLAGS_SL)
endif

ifeq ($(PORTNAME), solaris)
  INSTALL-SHLIB-DEP := install-shlib
  SHLIB := libpq++.so.1
  LDFLAGS_SL = -G -z text -shared -soname $(SHLIB)
  CFLAGS += $(CFLAGS_SL)
endif
d44 2
a45 30
ifeq ($(PORTNAME), unixware)
  install-shlib-dep := install-shlib
  shlib := libpq.so.1
  LDFLAGS_SL = -G -z text
  CFLAGS += $(CFLAGS_SL)
endif

ifeq ($(PORTNAME), univel)
  install-shlib-dep := install-shlib
  shlib := libpq.so.1
  LDFLAGS_SL = -G -z text
  CFLAGS += $(CFLAGS_SL)
endif

ifeq ($(PORTNAME), hpux)
  install-shlib-dep := install-shlib
  shlib := libpq.sl
  LDFLAGS_SL = -b
  CFLAGS += $(CFLAGS_SL)
endif

all: $(LIBNAME).a $(SHLIB)

$(LIBNAME).a: $(OBJS)
ifdef MK_NO_LORDER
	$(AR) $(AROPT) $(LIBNAME).a $(OBJS)
else
	$(AR) $(AROPT) $(LIBNAME).a `lorder $(OBJS) | tsort`
endif
	$(RANLIB) $(LIBNAME).a
a46 2
$(SHLIB): $(OBJS)
	$(LD) $(LDFLAGS) $(LDFLAGS_SL) -o $@@ $(OBJS)
d52 1
a52 2
.PHONY: beforeinstall-headers install-headers 
.PHONY: install beforeinstall-lib install-$(LIBNAME) doc
d54 19
a72 1
install: install-headers install-$(LIBNAME) $(INSTALL-SHLIB-DEP) doc
a73 39
LIBPGXXDIR = $(LIBNAME)
LIBPGXXHEADERDIR = $(HEADERDIR)/$(LIBPGXXDIR)
MAINHEADER = $(LIBNAME).h
LIBPGXXHEADERS = pgenv.h \
		 pgconnection.h \
		 pgdatabase.h \
		 pgtransdb.h \
		 pgcursordb.h \
		 pglobject.h

install-headers: beforeinstall-headers $(MAINHEADER)
	@@$(INSTALL) $(INSTLOPTS) $(MAINHEADER) $(HEADERDIR)/$(MAINHEADER)
	@@for i in ${LIBPGXXHEADERS}; do \
		echo "Installing $(LIBPGXXHEADERDIR)/$$i."; \
		$(INSTALL) $(INSTLOPTS) $$i $(LIBPGXXHEADERDIR)/$$i; \
	done

beforeinstall-headers:
	@@if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi
	@@if [ ! -d $(LIBPGXXHEADERDIR) ]; then mkdir $(LIBPGXXHEADERDIR); fi

beforeinstall-lib:
	@@if [ ! -d $(LIBDIR) ] ; then mkdir $(LIBDIR); fi

install-$(LIBNAME): $(LIBNAME).a beforeinstall-lib
	$(INSTALL) $(INSTL_LIB_OPTS) $(LIBNAME).a $(LIBDIR)/$(LIBNAME).a

install-shlib: $(SHLIBNAME) beforeinstall-lib
	$(INSTALL) $(INSTL_SHLIB_OPTS) $(SHLIB) $(LIBDIR)/$(SHLIB)
	rm -f $(LIBDIR)/libpq++.so
	ln -sf $(SHLIB) $(LIBDIR)/libpq++.so


doc:
	$(MAKE) -C man install

clean:
	rm -f $(LIBNAME).a $(OBJS)
	$(MAKE) -C examples clean
d76 1
a76 1
	$(CXX) -MM $(CXXFLAGS) *.cc > depend
@


1.20
log
@
Here are additional patches for the UnixWare 7 port.

Summary of changes:

In pqcomm.h, use the SUN_LEN macro if it is defined to calculate
the size of the sockaddr_un structure.

In unixware.h, drop the use of the UNIXWARE macro.  Everything can
be handled with the USE_UNIVEL_CC and DISABLE_COMPLEX_MACRO macros.

In s_lock.h, remove the reference to the UNIXWARE macro (see above).

In the unixware template, add the YFLAGS:-d line.

In various makefile templates, add (or cleanup) unixware and univel
port specific information.

-- Billy G. Allie
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.19 1998/07/12 19:20:45 momjian Exp $
@


1.19
log
@Fix distclean in libpq++.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.18 1998/07/12 18:48:06 momjian Exp $
d56 14
@


1.18
log
@Update linux_i386 fix.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.17 1998/06/15 21:01:48 momjian Exp $
d125 1
a125 1
	rm $(LIBNAME).a $(OBJS)
@


1.17
log
@Fix portname defines in Makefiles.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.16 1998/04/06 16:52:36 momjian Exp $
d45 1
a45 1
ifeq ($(PORTNAME), linux_i386)
d51 2
a52 1
ifeq ($(PORTNAME), solaris_i386)
d58 1
@


1.16
log
@DESTDIR removed, again.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.15 1998/04/06 04:57:32 momjian Exp $
d45 1
a45 1
ifeq ($(PORTNAME), i386_solaris)
d48 1
a48 1
  LDFLAGS_SL = -G -z text -shared -soname $(SHLIB)
d51 1
a51 1
ifeq ($(PORTNAME), linux)
d54 1
a54 1
  LDFLAGS_SL = -shared -soname $(SHLIB)
@


1.15
log
@destdir cleanup.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.14 1998/04/06 01:36:07 momjian Exp $
d97 1
a97 1
	@@$(INSTALL) $(INSTLOPTS) $(MAINHEADER) $(DESTDIR)$(HEADERDIR)/$(MAINHEADER)
d100 1
a100 1
		$(INSTALL) $(INSTLOPTS) $$i $(DESTDIR)$(LIBPGXXHEADERDIR)/$$i; \
d104 2
a105 2
	@@if [ ! -d $(DESTDIR)$(HEADERDIR) ]; then mkdir $(DESTDIR)$(HEADERDIR); fi
	@@if [ ! -d $(DESTDIR)$(LIBPGXXHEADERDIR) ]; then mkdir $(DESTDIR)$(LIBPGXXHEADERDIR); fi
d108 1
a108 1
	@@if [ ! -d $(DESTDIR)$(LIBDIR) ] ; then mkdir $(DESTDIR)$(LIBDIR); fi
d111 1
a111 1
	$(INSTALL) $(INSTL_LIB_OPTS) $(LIBNAME).a $(DESTDIR)$(LIBDIR)/$(LIBNAME).a
d114 3
a116 3
	$(INSTALL) $(INSTL_SHLIB_OPTS) $(SHLIB) $(DESTDIR)$(LIBDIR)/$(SHLIB)
	rm -f $(DESTDIR)$(LIBDIR)/libpq++.so
	ln -sf $(SHLIB) $(DESTDIR)$(LIBDIR)/libpq++.so
@


1.14
log
@Make DESTDIR consistent, and verious Linux cleanups.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.13 1998/04/06 01:16:47 momjian Exp $
d97 1
a97 1
	@@$(INSTALL) $(INSTLOPTS) $(MAINHEADER) $(DESTDIR)/$(HEADERDIR)/$(MAINHEADER)
d100 1
a100 1
		$(INSTALL) $(INSTLOPTS) $$i $(DESTDIR)/$(LIBPGXXHEADERDIR)/$$i; \
d104 2
a105 2
	@@if [ ! -d $(DESTDIR)/$(HEADERDIR) ]; then mkdir $(DESTDIR)/$(HEADERDIR); fi
	@@if [ ! -d $(DESTDIR)/$(LIBPGXXHEADERDIR) ]; then mkdir $(DESTDIR)/$(LIBPGXXHEADERDIR); fi
d108 1
a108 1
	@@if [ ! -d $(DESTDIR)/$(LIBDIR) ] ; then mkdir $(DESTDIR)/$(LIBDIR); fi
d114 3
a116 3
	$(INSTALL) $(INSTL_SHLIB_OPTS) $(SHLIB) $(DESTDIR)/$(LIBDIR)/$(SHLIB)
	rm -f $(DESTDIR)/$(LIBDIR)/libpq++.so
	ln -sf $(SHLIB) $(DESTDIR)/$(LIBDIR)/libpq++.so
@


1.13
log
@Re-introduce $DISTDIR.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.12 1998/04/06 00:31:13 momjian Exp $
d48 7
a54 1
  LDFLAGS_SL = -G -z text
d64 1
a64 1
all: $(LIBNAME).a $(SHLIB) install examples
d97 1
a97 1
	@@$(INSTALL) $(INSTLOPTS) $(MAINHEADER) $(HEADERDIR)/$(MAINHEADER)
d100 1
a100 1
		$(INSTALL) $(INSTLOPTS) $$i $(LIBPGXXHEADERDIR)/$$i; \
d104 2
a105 2
	@@if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi
	@@if [ ! -d $(LIBPGXXHEADERDIR) ]; then mkdir $(LIBPGXXHEADERDIR); fi
@


1.12
log
@Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.11 1998/04/05 22:02:41 momjian Exp $
d102 1
a102 1
	@@if [ ! -d $(LIBDIR) ] ; then mkdir $(LIBDIR); fi
d105 1
a105 1
	$(INSTALL) $(INSTL_LIB_OPTS) $(LIBNAME).a $(LIBDIR)/$(LIBNAME).a
d108 3
a110 3
	$(INSTALL) $(INSTL_SHLIB_OPTS) $(SHLIB) $(LIBDIR)/$(SHLIB)
	rm -f $(LIBDIR)/libpq++.so
	ln -sf $(SHLIB) $(LIBDIR)/libpq++.so
@


1.11
log
@Remove DISTDIR.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.10 1998/03/20 04:07:11 momjian Exp $
d120 2
d123 3
a125 5
###########################################################################
# Dependencies for the library
###########################################################################
include ./dependencies

@


1.10
log
@HPUX build does not build shared lib versions of libpq and libpq++

--------------------------------------------------------------------------

Test Case:  ----------


--------------------------------------------------------------------------

Solution:  --------- Add this to the libpq and libpq++ Makefiles
to build shared libs:

Mike Ferrara
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.9 1997/09/16 18:47:23 momjian Exp $
d102 1
a102 1
	@@if [ ! -d $(DESTDIR)/$(LIBDIR) ] ; then mkdir $(DESTDIR)/$(LIBDIR); fi
d105 1
a105 1
	$(INSTALL) $(INSTL_LIB_OPTS) $(LIBNAME).a $(DESTDIR)$(LIBDIR)/$(LIBNAME).a
d108 3
a110 3
	$(INSTALL) $(INSTL_SHLIB_OPTS) $(SHLIB) $(DESTDIR)/$(LIBDIR)/$(SHLIB)
	rm -f $(DESTDIR)/$(LIBDIR)/libpq++.so
	ln -sf $(SHLIB) $(DESTDIR)/$(LIBDIR)/libpq++.so
@


1.9
log
@Makefile cleanup.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpq++/Makefile,v 1.8 1997/04/04 10:42:43 scrappy Exp $
d49 6
@


1.8
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
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpq++/Makefile,v 1.7 1997/03/25 09:20:32 scrappy Exp $
d14 3
a16 3
SRCDIR= ..
include ../Makefile.global
SRCHEADERDIR = ../include
d28 1
a28 1
             -I../backend \
@


1.7
log
@Various patches for shared libraries under i386-solaris by:

Christoph Kaesling <ck@@dog.pfalz.sub.de>
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpq++/Makefile,v 1.6 1997/02/13 10:00:23 scrappy Exp $
d49 1
a49 1
  CFLAGS += -fPIC
@


1.6
log
@Bring in Leo's <lsh@@lubrizol.com> massive changes to libpq++
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpq++/Makefile,v 1.5 1997/1/31 01:43:54 lsh Exp $
d42 11
a52 1
all: $(LIBNAME).a install examples
d62 3
d70 1
a70 1
.PHONY: install install-$(LIBNAME) doc
d72 1
a72 1
install: install-headers install-$(LIBNAME) doc
d95 4
a98 1
install-$(LIBNAME): $(LIBNAME).a
d100 6
@


1.5
log
@Ignore compiler warnings, because we can't escape "abstract declarator used
as declaration".
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.4 1996/11/08 00:58:07 scrappy Exp $
d16 4
d29 2
a30 2
             -I../include \
             -I$(LIBPQDIR) 
d33 1
a38 1
OBJS= pgenv.o pgconnection.o pglobject.o
d40 3
a42 1
all: libpq++.a examples
d44 1
a44 1
libpq++.a: $(OBJS)
d46 1
a46 1
	$(AR) $(AROPT) libpq++.a $(OBJS)
d48 1
a48 1
	$(AR) $(AROPT) libpq++.a `lorder $(OBJS) | tsort`
d50 1
a50 1
	$(RANLIB) libpq++.a
d57 1
a57 1
.PHONY: install install-libpq++ doc
d59 1
a59 1
install: install-headers install-libpq++ doc
d61 16
a76 2
install-headers: beforeinstall-headers libpq++.H
	$(INSTALL) $(INSTLOPTS) libpq++.H $(HEADERDIR)/libpq++.H
d80 1
d82 2
a83 2
install-libpq++: libpq++.a
	$(INSTALL) $(INSTL_LIB_OPTS) libpq++.a $(DESTDIR)$(LIBDIR)/libpq++.a
d89 1
a89 1
	rm libpq++.a $(OBJS)
d91 7
@


1.4
log
@Remove most compile-time options, add a few runtime options to make up for it.
In particular, no more compiled-in default for PGDATA or LIBDIR.  Commands
that need them need either invocation options or environment variables.
PGPORT default is hardcoded as 5432, but overrideable with options or
environment variables.
@
text
@d17 5
a21 1
CXXFLAGS= $(CFLAGS)
@


1.3
log
@Eliminate MKDIR, srcdir, objdir.  Centralize setting of LIBPQDIR.
@
text
@d24 1
a24 1
CXXFLAGS+= $(INCLUDE_OPT) -DPOSTPORT='"$(POSTPORT)"'
@


1.2
log
@End of the make file simplifications.
@
text
@a14 1
LIBPQDIR= $(SRCDIR)/libpq
d65 1
a65 1
	$(MAKE) -C examples clean@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/postgres95/src/libpq++/Makefile,v 1.1.1.1 1996/07/09 05:32:40 scrappy Exp $
d14 10
a23 1
CPP_LIB=	true
d25 1
a25 1
LIB=	pq++
d27 3
a29 2
MKDIR=	../mk
include $(MKDIR)/postgres.mk
d31 1
a31 1
CXXFLAGS = $(CFLAGS)
d33 1
a33 4
CXXFLAGS+= -I$(srcdir)/backend/include \
	-I$(srcdir)/backend \
	-I$(srcdir)/libpq \
	-I$(CURDIR) \
d35 5
a39 2
ifdef KRBVERS
CXXFLAGS+= $(KRBFLAGS)
d41 5
d47 2
d50 1
a50 1
LIBSRCS =  pgenv.cc pgconnection.cc pglobject.cc
d52 2
a53 1
.PHONY: beforeinstall-headers install-headers
a54 1
ifndef NO_BEFOREINSTL
d56 1
a56 6
	@@-if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi
else
beforeinstall-headers: .dosomething
endif

HEADERFILES = libpq++.H
d58 2
a59 5
install-headers: beforeinstall-headers
	@@for i in ${HEADERFILES}; do \
		echo "Installing $(HEADERDIR)/$$i."; \
		$(INSTALL) -c -m 444 $$i $(HEADERDIR)/$$i; \
	done
d61 2
a62 1
install:: install-headers
d64 3
a66 1
include $(MKDIR)/postgres.lib.mk
@


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