head	1.20;
access;
symbols
	REL7_3_21:1.16.4.1
	REL7_3_20:1.16.4.1
	REL7_3_19:1.16.4.1
	REL7_3_18:1.16.4.1
	REL7_3_17:1.16.4.1
	REL7_3_16:1.16.4.1
	REL7_3_15:1.16.4.1
	REL7_3_14:1.16.4.1
	REL7_3_13:1.16.4.1
	REL7_3_12:1.16.4.1
	REL7_3_11:1.16.4.1
	REL7_2_8:1.15
	REL7_3_10:1.16.4.1
	REL7_2_7:1.15
	REL7_3_9:1.16.4.1
	REL7_3_8:1.16.4.1
	REL7_2_6:1.15
	REL7_2_5:1.15
	REL7_3_7:1.16.4.1
	REL7_3_6:1.16.4.1
	REL7_3_4:1.16.4.1
	REL7_3_2:1.16.4.1
	REL7_2_4:1.15
	REL7_3_STABLE:1.16.0.4
	REL7_2_3:1.15
	ecpg_big_bison:1.16.0.2
	REL7_2_STABLE:1.15.0.2
	REL7_2:1.15
	REL7_2_RC2:1.15
	REL7_2_RC1:1.15
	REL7_2_BETA5:1.15
	REL7_2_BETA4:1.13
	REL7_2_BETA3:1.13
	REL7_2_BETA2:1.13
	REL7_2_BETA1:1.13
	REL7_1_2:1.11
	REL7_1_STABLE:1.11.0.2
	REL7_1_BETA:1.10
	REL7_1_BETA3:1.10
	REL7_1_BETA2:1.10
	REL7_1:1.11;
locks; strict;
comment	@# @;


1.20
date	2003.03.16.10.49.51;	author meskes;	state dead;
branches;
next	1.19;

1.19
date	2003.02.13.13.11.52;	author meskes;	state Exp;
branches;
next	1.18;

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

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

1.16
date	2002.03.11.12.55.55;	author meskes;	state Exp;
branches
	1.16.4.1;
next	1.15;

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

1.14
date	2001.12.23.12.17.41;	author meskes;	state Exp;
branches;
next	1.13;

1.13
date	2001.09.19.14.09.32;	author meskes;	state Exp;
branches;
next	1.12;

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

1.11
date	2001.02.20.19.20.29;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	2000.10.20.21.04.05;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	2000.09.19.11.47.13;	author meskes;	state Exp;
branches;
next	1.8;

1.8
date	2000.09.17.13.02.46;	author petere;	state Exp;
branches;
next	1.7;

1.7
date	2000.08.31.16.11.36;	author petere;	state Exp;
branches;
next	1.6;

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

1.5
date	98.02.13.13.15.11;	author scrappy;	state dead;
branches;
next	1.4;

1.4
date	98.02.12.12.38.12;	author scrappy;	state Exp;
branches;
next	1.3;

1.3
date	98.02.12.12.37.47;	author scrappy;	state dead;
branches;
next	1.2;

1.2
date	98.02.12.02.14.40;	author scrappy;	state Exp;
branches;
next	1.1;

1.1
date	98.02.10.16.41.22;	author scrappy;	state Exp;
branches;
next	;

1.16.4.1
date	2002.12.11.04.08.04;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.20
log
@Forgot some files...
@
text
@#-------------------------------------------------------------------------
#
# Makefile for ecpg library
#
# Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/lib/Makefile,v 1.19 2003/02/13 13:11:52 meskes Exp $
#
#-------------------------------------------------------------------------

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

NAME= ecpg
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 4.2

override CPPFLAGS := -g -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) $(CPPFLAGS)


OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
	connect.o misc.o

SHLIB_LINK= $(libpq)

all: all-lib

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

install: all installdirs install-lib

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

uninstall: uninstall-lib

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

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

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


1.19
log
@- Applied error reporting patch by Matthew Vanecek
- Started with an Informix compatibility option.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/lib/Makefile,v 1.18 2002/12/11 04:07:39 momjian Exp $
@


1.18
log
@Bump version for 7.3 and 7.4.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/lib/Makefile,v 1.17 2002/12/04 18:14:11 momjian Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) $(CPPFLAGS)
@


1.17
log
@Stamp minor version numbers for 7.4 release.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/lib/Makefile,v 1.16 2002/03/11 12:55:55 meskes Exp $
d17 1
a17 1
SO_MINOR_VERSION= 4.1
@


1.16
log
@Changed the version numbers, but did not commit the Makefiles.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Makefile,v 1.15 2002/01/08 20:41:26 petere Exp $
d17 1
a17 1
SO_MINOR_VERSION= 4.0
@


1.16.4.1
log
@Bump version for 7.3 and 7.4.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/lib/Makefile,v 1.16 2002/03/11 12:55:55 meskes Exp $
d17 1
a17 1
SO_MINOR_VERSION= 4.1
@


1.15
log
@Revert last change (CFLAGS+=-g).  Probably was a mistake...
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Makefile,v 1.14 2001/12/23 12:17:41 meskes Exp $
d17 1
a17 1
SO_MINOR_VERSION= 3.0
@


1.14
log
@- Removed space_or_nl and line_end from pgc.l.
- Fixed several bugs concerning arrays of structs including a memory
  allocation bug.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Makefile,v 1.13 2001/09/19 14:09:32 meskes Exp $
a13 2

CFLAGS=-g
@


1.13
log
@- Synced preproc.y with gram.y.
- Synced pgc.l with scan.l.
- Synced keyword.c.
- Include the remaining patches by Christof Petig <christof.petig@@wtal.de>.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/ecpg/lib/Makefile,v 1.12 2001/05/11 01:46:33 momjian Exp $
d14 2
@


1.12
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/ecpg/lib/Makefile,v 1.11 2001/02/20 19:20:29 petere Exp $
@


1.11
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/ecpg/lib/Makefile,v 1.10 2000/10/20 21:04:05 petere Exp $
d17 1
a17 1
SO_MINOR_VERSION= 2.0
@


1.10
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/ecpg/lib/Makefile,v 1.9 2000/09/19 11:47:13 meskes Exp $
d19 1
a19 1
override CPPFLAGS += -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir)
@


1.9
log
@*** empty log message ***
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/ecpg/lib/Makefile,v 1.8 2000/09/17 13:02:46 petere Exp $
d19 1
a19 1
CPPFLAGS += -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir)
@


1.8
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/ecpg/lib/Makefile,v 1.7 2000/08/31 16:11:36 petere Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1.1
@


1.7
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/ecpg/lib/Makefile,v 1.6 2000/06/28 18:29:39 petere Exp $
d35 1
a35 1
	$(mkinstalldirs) $(libdir)
@


1.6
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/ecpg/lib/Makefile.in,v 1.68 2000/06/17 00:09:59 petere Exp $
d13 1
a13 1
include ../../../Makefile.global
d19 1
a19 1
CFLAGS+= -I$(top_srcdir)/src/interfaces/ecpg/include -I$(LIBPQDIR)
d25 1
a25 1
SHLIB_LINK= $(LIBPQ)
@


1.5
log
@Makefile.in needs to be configured to use PORTNAME variable
@
text
@d1 9
a9 2
SRCDIR= ../../..
include $(SRCDIR)/Makefile.global
d11 3
a13 1
PQ_INCLUDE=-I$(SRCDIR)/include -I$(SRCDIR)/interfaces/libpq
d15 13
a27 2
SO_MAJOR_VERSION=0
SO_MINOR_VERSION=5
d30 11
a40 28
shlib := 
install-shlib-dep :=
ifeq ($(PORTNAME), linux)
  ifdef LINUX_ELF
    install-shlib-dep := install-shlib
    shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
    LDFLAGS_SL = -shared
    CFLAGS += $(CFLAGS_SL)
  endif
endif
ifeq ($(PORTNAME), bsd)
  install-shlib-dep := install-shlib
  shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
  LDFLAGS_SL = -x -Bshareable -Bforcearchive
  CFLAGS += $(CFLAGS_SL)
endif
ifeq ($(PORTNAME), i386_solaris)
  install-shlib-dep := install-shlib
  shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
  LDFLAGS_SL = -G -z text
  CFLAGS += $(CFLAGS_SL)
endif
ifeq ($(PORTNAME), univel)
  install-shlib-dep := install-shlib
  shlib := libecpg.so.1
  LDFLAGS_SL = -G -z text
  CFLAGS += $(CFLAGS_SL)
endif
d42 2
a43 1
all: libecpg.a $(shlib)
d45 3
a47 22
$(shlib): ecpglib.o typename.o
	$(LD) $(LDFLAGS_SL) -o $@@ ecpglib.o typename.o 
	ln -sf $@@ libecpg.so

clean:
	rm -f *.o *.a core a.out *~ $(shlib) libecpg.so

install: libecpg.a
	install -m 644 libecpg.a $(DESTDIR)$(LIBDIR)
	install -m 644 $(shlib) $(DESTDIR)$(LIBDIR)
	ln -sf $(shlib) $(DESTDIR)$(LIBDIR)/libecpg.so

uninstall::
	rm -f $(DESTDIR)$(LIBDIR)/libecpg.a $(DESTDIR)$(LIBDIR)/$(shlib)

# Rules that do something
libecpg.a : libecpg.a(ecpglib.o) libecpg.a(typename.o)

ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
	$(CC) -O2 -g -Wall -I../include $(PQ_INCLUDE) -c ecpglib.c
typename.o : typename.c ../include/ecpgtype.h
	$(CC) -g -O2 -Wall -I../include $(PQ_INCLUDE) -c typename.c
@


1.4
log
@There, fixed
@
text
@@


1.3
log
@Screwed this up...fixing now
@
text
@a0 1
# Generated automatically from Makefile.in by configure.
a7 2

PORTNAME=bsd
@


1.2
log
@Remove configure code from ecpg, as well as remove the 'for' loop from the
Makefile, as it isn't appropriate for GNUmake
@
text
@@


1.1
log
@Erk, the whole directory structure changed on us here...
@
text
@d7 2
a8 1
all: lib
d10 37
a46 1
lib: libecpg.a
d49 1
a49 1
	rm -f *.o *.a core a.out *~
d52 3
a54 1
	install -m 644 libecpg.a $(LIBDIR)
d57 1
a57 1
	rm -f $(LIBDIR)/libecpg.a
@
