head	1.8;
access;
symbols
	REL7_2_8:1.7
	REL7_2_7:1.7
	REL7_2_6:1.7
	REL7_2_5:1.7
	REL7_2_4:1.7
	REL7_2_3:1.7
	REL7_2_STABLE:1.7.0.2
	REL7_2:1.7
	REL7_2_RC2:1.7
	REL7_2_RC1:1.7
	REL7_2_BETA5:1.7
	REL7_2_BETA4:1.7
	REL7_2_BETA3:1.7
	REL7_2_BETA2:1.7
	REL7_2_BETA1:1.7
	REL7_1_2:1.6
	REL7_1_STABLE:1.6.0.2
	REL7_1_BETA:1.5
	REL7_1_BETA3:1.5
	REL7_1_BETA2:1.5
	REL7_1:1.6;
locks; strict;
comment	@# @;


1.8
date	2002.08.30.13.03.10;	author scrappy;	state dead;
branches;
next	1.7;

1.7
date	2001.05.11.01.46.33;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	2001.02.20.19.20.29;	author petere;	state Exp;
branches;
next	1.5;

1.5
date	2000.10.31.14.37.25;	author petere;	state Exp;
branches;
next	1.4;

1.4
date	2000.10.20.21.04.07;	author petere;	state Exp;
branches;
next	1.3;

1.3
date	2000.09.17.13.02.48;	author petere;	state Exp;
branches;
next	1.2;

1.2
date	2000.08.31.16.11.42;	author petere;	state Exp;
branches;
next	1.1;

1.1
date	2000.06.28.18.29.41;	author petere;	state Exp;
branches;
next	;


desc
@@


1.8
log
@
libpgeasy moved to gborg ...
@
text
@#-------------------------------------------------------------------------
#
# Makefile for src/interfaces/libpgeasy
#
# $Header: /cvsroot/pgsql-server/src/interfaces/libpgeasy/Makefile,v 1.7 2001/05/11 01:46:33 momjian Exp $
#
#-------------------------------------------------------------------------

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


# shared library parameters
NAME= pgeasy
SO_MAJOR_VERSION= 2
SO_MINOR_VERSION= 2

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

OBJS= libpgeasy.o halt.o

SHLIB_LINK = $(libpq)

# If crypt is a separate library, rather than part of libc, it may need
# to be referenced separately to keep (broken) linkers happy.  (This is
# braindead; users of libpq should not need to know what it depends on.)
SHLIB_LINK+= $(filter -L%, $(LDFLAGS)) $(filter -lcrypt, $(LIBS))

all: all-lib

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

install: all installdirs install-headers install-lib

.PHONY: install-headers
install-headers: libpgeasy.h
	$(INSTALL_DATA) $< $(DESTDIR)$(includedir)/libpgeasy.h

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

uninstall: uninstall-lib
	rm -f $(DESTDIR)$(includedir)/libpgeasy.h

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

depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend

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


1.7
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
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgeasy/Makefile,v 1.6 2001/02/20 19:20:29 petere Exp $
@


1.6
log
@Make sure -L and -I's for our source tree are always before system include
or library directories on the command line.
@
text
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgeasy/Makefile,v 1.5 2000/10/31 14:37:25 petere Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1
@


1.5
log
@Use $(filter ...), not $(findstring ...).
@
text
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgeasy/Makefile,v 1.4 2000/10/20 21:04:07 petere Exp $
d19 1
a19 1
override CPPFLAGS += -I$(libpq_srcdir)
d23 1
a23 1
SHLIB_LINK+= $(libpq)
d28 1
a28 1
SHLIB_LINK+= $(filter -lcrypt, $(LIBS))
@


1.4
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
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgeasy/Makefile,v 1.3 2000/09/17 13:02:48 petere Exp $
d28 1
a28 1
SHLIB_LINK+= $(findstring -lcrypt,$(LIBS))
@


1.3
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
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgeasy/Makefile,v 1.2 2000/08/31 16:11:42 petere Exp $
d19 1
a19 1
CPPFLAGS += -I$(libpq_srcdir)
@


1.2
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
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgeasy/Makefile,v 1.1 2000/06/28 18:29:41 petere Exp $
d39 1
a39 1
	$(INSTALL_DATA) $< $(includedir)/libpgeasy.h
d42 1
a42 1
	$(mkinstalldirs) $(libdir) $(includedir)
d45 1
a45 1
	rm -f $(includedir)/libpgeasy.h
@


1.1
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
@d5 1
a5 1
# $Header$
d11 1
a11 1
include ../../Makefile.global
d19 1
a19 1
CFLAGS+= -I$(LIBPQDIR)
d23 1
a23 1
SHLIB_LINK+= $(LIBPQ)
@
