head	1.47;
access;
symbols
	REL9_0_0:1.46
	REL9_1_ALPHA1:1.47
	REL9_0_RC1:1.46
	REL9_0_BETA4:1.46
	REL9_0_STABLE:1.46.0.6
	REL9_0_BETA3:1.46
	REL9_0_BETA2:1.46
	REL7_4_29:1.11.2.3
	REL8_0_25:1.18.4.1
	REL8_1_21:1.21
	REL8_2_17:1.25
	REL8_3_11:1.37
	REL8_4_4:1.42
	REL9_0_BETA1:1.46
	REL9_0_ALPHA5_BRANCH:1.46.0.4
	REL9_0_ALPHA5:1.46
	REL7_4_28:1.11.2.3
	REL8_0_24:1.18.4.1
	REL8_1_20:1.21
	REL8_2_16:1.25
	REL8_3_10:1.37
	REL8_4_3:1.42
	REL9_0_ALPHA4:1.46
	REL9_0_ALPHA4_BRANCH:1.46.0.2
	REL8_5_ALPHA3:1.45
	REL8_5_ALPHA3_BRANCH:1.45.0.6
	REL7_4_27:1.11.2.3
	REL8_0_23:1.18.4.1
	REL8_1_19:1.21
	REL8_2_15:1.25
	REL8_3_9:1.37
	REL8_4_2:1.42
	REL8_5_ALPHA2:1.45
	REL8_5_ALPHA2_BRANCH:1.45.0.4
	REL7_4_26:1.11.2.3
	REL8_0_22:1.18.4.1
	REL8_1_18:1.21
	REL8_2_14:1.25
	REL8_3_8:1.37
	REL8_4_1:1.42
	REL8_5_ALPHA1:1.45
	REL8_5_ALPHA1_BRANCH:1.45.0.2
	REL8_4_STABLE:1.42.0.2
	REL8_4_0:1.42
	REL8_4_RC2:1.42
	REL8_4_RC1:1.42
	REL8_4_BETA2:1.42
	REL8_4_BETA1:1.42
	REL7_4_25:1.11.2.3
	REL8_0_21:1.18.4.1
	REL8_1_17:1.21
	REL8_2_13:1.25
	REL8_3_7:1.37
	REL7_4_24:1.11.2.3
	REL8_0_20:1.18.4.1
	REL8_1_16:1.21
	REL8_2_12:1.25
	REL8_3_6:1.37
	REL7_4_23:1.11.2.3
	REL8_0_19:1.18.4.1
	REL8_1_15:1.21
	REL8_2_11:1.25
	REL8_3_5:1.37
	REL7_4_22:1.11.2.3
	REL8_0_18:1.18.4.1
	REL8_1_14:1.21
	REL8_2_10:1.25
	REL8_3_4:1.37
	REL7_4_21:1.11.2.3
	REL8_0_17:1.18.4.1
	REL8_1_13:1.21
	REL8_2_9:1.25
	REL8_3_3:1.37
	REL7_4_20:1.11.2.3
	REL8_0_16:1.18.4.1
	REL8_1_12:1.21
	REL8_2_8:1.25
	REL8_3_2:1.37
	REL8_2_7:1.25
	REL8_3_1:1.37
	REL8_3_STABLE:1.37.0.2
	REL8_3_0:1.37
	REL8_3_RC2:1.37
	REL7_4_19:1.11.2.3
	REL8_0_15:1.18.4.1
	REL8_1_11:1.21
	REL8_2_6:1.25
	REL8_3_RC1:1.37
	REL8_3_BETA4:1.36
	REL8_3_BETA3:1.36
	REL8_3_BETA2:1.36
	REL8_3_BETA1:1.36
	REL7_4_18:1.11.2.3
	REL8_0_14:1.18.4.1
	REL8_1_10:1.21
	REL8_2_5:1.25
	REL7_4_17:1.11.2.3
	REL8_0_13:1.18.4.1
	REL8_1_9:1.21
	REL8_2_4:1.25
	REL8_0_12:1.18.4.1
	REL8_1_8:1.21
	REL8_2_3:1.25
	REL7_4_16:1.11.2.3
	REL8_0_11:1.18.4.1
	REL8_1_7:1.21
	REL8_2_2:1.25
	REL8_0_10:1.18.4.1
	REL8_1_6:1.21
	REL8_2_1:1.25
	REL7_4_15:1.11.2.3
	REL8_2_STABLE:1.25.0.2
	REL8_2_0:1.25
	REL8_2_RC1:1.25
	REL8_2_BETA3:1.25
	REL8_2_BETA2:1.25
	REL8_1_5:1.21
	REL8_0_9:1.18.4.1
	REL7_4_14:1.11.2.3
	REL8_2_BETA1:1.25
	REL7_4_13:1.11.2.3
	REL8_0_8:1.18.4.1
	REL8_1_4:1.21
	REL7_4_12:1.11.2.3
	REL8_0_7:1.18.4.1
	REL8_1_3:1.21
	REL7_4_11:1.11.2.3
	REL8_0_6:1.18.4.1
	REL8_1_2:1.21
	REL7_4_10:1.11.2.3
	REL8_0_5:1.18.4.1
	REL8_1_1:1.21
	REL8_1_STABLE:1.21.0.2
	REL8_1_0:1.21
	REL8_1_0RC1:1.21
	REL8_1_0BETA4:1.21
	REL8_1_0BETA3:1.21
	REL7_4_9:1.11.2.3
	REL8_0_4:1.18.4.1
	REL8_1_0BETA2:1.21
	REL8_1_0BETA1:1.21
	REL7_4_8:1.11.2.3
	REL8_0_3:1.18.4.1
	REL8_0_2:1.18.4.1
	REL7_4_7:1.11.2.3
	REL8_0_1:1.18
	REL8_0_STABLE:1.18.0.4
	REL8_0_0:1.18.0.2
	REL8_0_0RC5:1.18
	REL8_0_0RC4:1.18
	REL8_0_0RC3:1.18
	REL8_0_0RC2:1.18
	REL8_0_0RC1:1.18
	REL8_0_0BETA5:1.18
	REL8_0_0BETA4:1.18
	REL7_4_6:1.11.2.3
	REL8_0_0BETA3:1.18
	REL8_0_0BETA2:1.18
	REL7_4_5:1.11.2.3
	REL7_4_4:1.11.2.3
	REL8_0_0BETA1:1.18
	REL7_4_3:1.11.2.3
	REL7_4_2:1.11.2.2
	REL7_4_1:1.11.2.1
	REL7_4:1.11
	REL7_4_RC2:1.11
	REL7_4_STABLE:1.11.0.2
	REL7_4_RC1:1.11
	REL7_4_BETA5:1.10
	REL7_4_BETA4:1.10
	REL7_4_BETA3:1.8
	REL7_4_BETA2:1.8
	WIN32_DEV:1.8.0.2
	REL7_4_BETA1:1.7;
locks; strict;
comment	@# @;


1.47
date	2010.07.12.16.18.44;	author momjian;	state Exp;
branches;
next	1.46;

1.46
date	2010.01.02.16.58.10;	author momjian;	state Exp;
branches;
next	1.45;

1.45
date	2009.08.14.13.28.22;	author meskes;	state Exp;
branches;
next	1.44;

1.44
date	2009.08.07.10.51.20;	author meskes;	state Exp;
branches;
next	1.43;

1.43
date	2009.07.13.01.37.05;	author momjian;	state Exp;
branches;
next	1.42;

1.42
date	2009.01.01.17.24.02;	author momjian;	state Exp;
branches;
next	1.41;

1.41
date	2008.05.18.03.24.17;	author tgl;	state Exp;
branches;
next	1.40;

1.40
date	2008.04.07.14.15.58;	author petere;	state Exp;
branches;
next	1.39;

1.39
date	2008.02.26.06.41.23;	author petere;	state Exp;
branches;
next	1.38;

1.38
date	2008.02.13.18.14.46;	author momjian;	state Exp;
branches;
next	1.37;

1.37
date	2008.01.01.19.45.59;	author momjian;	state Exp;
branches;
next	1.36;

1.36
date	2007.10.05.01.51.40;	author tgl;	state Exp;
branches;
next	1.35;

1.35
date	2007.10.04.18.32.07;	author tgl;	state Exp;
branches;
next	1.34;

1.34
date	2007.10.04.07.58.15;	author meskes;	state Exp;
branches;
next	1.33;

1.33
date	2007.10.03.15.24.19;	author meskes;	state Exp;
branches;
next	1.32;

1.32
date	2007.10.03.15.04.23;	author tgl;	state Exp;
branches;
next	1.31;

1.31
date	2007.10.03.14.42.16;	author meskes;	state Exp;
branches;
next	1.30;

1.30
date	2007.10.03.13.40.52;	author meskes;	state Exp;
branches;
next	1.29;

1.29
date	2007.10.03.13.24.54;	author meskes;	state Exp;
branches;
next	1.28;

1.28
date	2007.10.03.13.20.19;	author meskes;	state Exp;
branches;
next	1.27;

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

1.26
date	2007.01.05.20.54.39;	author momjian;	state Exp;
branches;
next	1.25;

1.25
date	2006.09.10.22.07.02;	author tgl;	state Exp;
branches;
next	1.24;

1.24
date	2006.08.28.16.13.10;	author tgl;	state Exp;
branches;
next	1.23;

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

1.22
date	2005.12.09.02.49.09;	author momjian;	state Exp;
branches;
next	1.21;

1.21
date	2005.03.14.17.27.49;	author momjian;	state Exp;
branches;
next	1.20;

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

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

1.18
date	2004.07.13.00.06.39;	author tgl;	state Exp;
branches
	1.18.4.1;
next	1.17;

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

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

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

1.14
date	2004.02.10.07.26.25;	author tgl;	state Exp;
branches;
next	1.13;

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

1.12
date	2003.11.29.19.52.08;	author pgsql;	state Exp;
branches;
next	1.11;

1.11
date	2003.10.28.21.55.58;	author tgl;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	2003.09.27.19.35.32;	author tgl;	state Exp;
branches;
next	1.9;

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

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

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

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

1.5
date	2003.06.24.14.45.46;	author momjian;	state Exp;
branches;
next	1.4;

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

1.3
date	2003.04.16.05.23.55;	author tgl;	state Exp;
branches;
next	1.2;

1.2
date	2003.04.08.17.08.15;	author tgl;	state Exp;
branches;
next	1.1;

1.1
date	2003.03.30.13.26.09;	author meskes;	state Exp;
branches;
next	;

1.11.2.1
date	2003.12.17.15.31.51;	author meskes;	state Exp;
branches;
next	1.11.2.2;

1.11.2.2
date	2004.02.10.07.26.48;	author tgl;	state Exp;
branches;
next	1.11.2.3;

1.11.2.3
date	2004.03.14.12.18.35;	author meskes;	state Exp;
branches;
next	;

1.18.4.1
date	2005.03.13.22.04.45;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.47
log
@Bump minor library version numbers, for 9.1 release.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for ecpg compatibility library
#
# Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.46 2010/01/02 16:58:10 momjian Exp $
#
#-------------------------------------------------------------------------

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

NAME= ecpg_compat
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 3

override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
	-I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
override CFLAGS += $(PTHREAD_CFLAGS)

SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
	$(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)

SHLIB_EXPORTS = exports.txt

# Need to recompile any libpgport object files
LIBS := $(filter-out -lpgport, $(LIBS))

OBJS= informix.o $(filter snprintf.o, $(LIBOBJS))

all: all-lib

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

snprintf.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .

install: all installdirs install-lib

installdirs: installdirs-lib

uninstall: uninstall-lib

clean distclean: clean-lib
	rm -f $(OBJS) snprintf.c

maintainer-clean: distclean maintainer-clean-lib
@


1.46
log
@Update copyright for the year 2010.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.45 2009/08/14 13:28:22 meskes Exp $
d18 1
a18 1
SO_MINOR_VERSION= 2
@


1.45
log
@Made sure sqlca is reset for declare cursor in Informix mode as pointed out by
Böszörményi Zoltán <zb@@cybertec.at>.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.44 2009/08/07 10:51:20 meskes Exp $
@


1.44
log
@Added STRING datatype for Informix compatibility mode. This work is
based on a patch send in by Böszörményi Zoltán <zb@@cybertec.at>.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.43 2009/07/13 01:37:05 momjian Exp $
d18 1
a18 1
SO_MINOR_VERSION= 1
@


1.43
log
@Stamp minor library version numbers for 8.5; sorry for the delay.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.42 2009/01/01 17:24:02 momjian Exp $
d18 1
a18 1
SO_MINOR_VERSION= 2
@


1.42
log
@Update copyright for 2009.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.41 2008/05/18 03:24:17 tgl Exp $
d18 1
a18 1
SO_MINOR_VERSION= 1
@


1.41
log
@okay, looks like ecpg/compatlib needs -lintl too.
Per buildfarm results.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.40 2008/04/07 14:15:58 petere Exp $
@


1.40
log
@Implement a few changes to how shared libraries and dynamically loadable
modules are built.  Foremost, it creates a solid distinction between these two
types of targets based on what had already been implemented and duplicated in
ad hoc ways before.  Specifically,

- Dynamically loadable modules no longer get a soname.  The numbers previously
set in the makefiles were dummy numbers anyway, and the presence of a soname
upset a few packaging tools, so it is nicer not to have one.

- The cumbersome detour taken on installation (build a libfoo.so.0.0.0 and
then override the rule to install foo.so instead) is removed.

- Lots of duplicated code simplified.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.39 2008/02/26 06:41:23 petere Exp $
d24 2
a25 2
SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) -lm \
	$(PTHREAD_LIBS)
@


1.39
log
@Refactor the code that creates the shared library export files to appear
only once in Makefile.shlib and not in four copies.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.38 2008/02/13 18:14:46 momjian Exp $
a18 1
DLTYPE= library
d44 1
a44 2
installdirs:
	$(mkinstalldirs) '$(DESTDIR)$(libdir)'
@


1.38
log
@Bump minor library version numbers for 8.4.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.37 2008/01/01 19:45:59 momjian Exp $
d28 2
d35 1
a35 5
ifeq ($(PORTNAME), win32)
DLL_DEFFILE=libecpg_compatdll.def
endif

all: def-files all-lib
a42 49
# We need several not-quite-identical variants of .DEF files to build libecpg
# DLLs for Windows.  These are made from the single source file exports.txt.
# Since we can't assume that Windows boxes will have sed, the .DEF files are
# always built and included in distribution tarballs.

distprep: def-files

.PHONY: def-files

def-files: $(srcdir)/libecpg_compatdll.def $(srcdir)/blibecpg_compatdll.def

$(srcdir)/libecpg_compatdll.def: exports.txt
	echo '; DEF file for MS VC++' > $@@
	echo 'LIBRARY LIBECPG_COMPAT' >> $@@
	echo 'EXPORTS' >> $@@
	sed -e '/^#/d' -e 's/^\(.* \)\([0-9][0-9]*\)/    \1@@ \2/' < $< >> $@@

$(srcdir)/blibecpg_compatdll.def: exports.txt
	echo '; DEF file for Borland C++ Builder' > $@@
	echo 'LIBRARY BLIBECPG_COMPAT' >> $@@
	echo 'EXPORTS' >> $@@
	sed -e '/^#/d' -e 's/^\(.* \)\([0-9][0-9]*\)/    _\1@@ \2/' < $< >> $@@
	echo '' >> $@@
	echo '; Aliases for MS compatible names' >> $@@
	sed -e '/^#/d' -e 's/^\(.* \)\([0-9][0-9]*\)/    \1= _\1/' < $< | sed 's/ *$$//' >> $@@

# Where possible, restrict the symbols exported by the library to just the
# official list, so as to avoid unintentional ABI changes.

ifeq ($(PORTNAME), darwin)
$(shlib): exports.list

exports.list: exports.txt
	$(AWK) '/^[^#]/ {printf "_%s\n",$$1}' $< >$@@

exported_symbols_list = -exported_symbols_list exports.list
endif

ifeq ($(PORTNAME), linux)
$(shlib): exports.list

exports.list: exports.txt
	echo '{ global:' >$@@
	$(AWK) '/^[^#]/ {printf "%s;\n",$$1}' $< >>$@@
	echo ' local: *; };' >>$@@

exported_symbols_list = -Wl,--version-script=exports.list
endif

d51 1
a51 1
	rm -f $(OBJS) snprintf.c exports.list
d53 1
a53 2
maintainer-clean: distclean
	rm -f $(srcdir)/libecpg_compatdll.def $(srcdir)/blibecpg_compatdll.def
@


1.37
log
@Update copyrights in source tree to 2008.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.36 2007/10/05 01:51:40 tgl Exp $
d18 1
a18 1
SO_MINOR_VERSION= 0
@


1.36
log
@Fix distprep and maintainer-clean targets so that ecpg's .def files are
made and removed at the correct times.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.35 2007/10/04 18:32:07 tgl Exp $
@


1.35
log
@DLL_DEFFILE should be defined when PORTNAME is win32, not when it isn't,
per the example of libpq/Makefile.
@
text
@d5 2
a6 1
# Copyright (c) 1994, Regents of the University of California
d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.34 2007/10/04 07:58:15 meskes Exp $
d50 2
d53 1
d55 1
d101 1
a101 1
clean distclean maintainer-clean: clean-lib
d103 3
@


1.34
log
@Added def-files to all: target so they are build everytime.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.33 2007/10/03 15:24:19 meskes Exp $
d32 1
a32 1
ifneq ($(PORTNAME), win32)
@


1.33
log
@Argh, missing dll in filename
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.32 2007/10/03 15:04:23 tgl Exp $
d36 1
a36 1
all: all-lib
@


1.32
log
@Fix command for fetching snprintf.c.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.31 2007/10/03 14:42:16 meskes Exp $
d50 2
a51 2
def-files: $(srcdir)/libecpg_compat.def $(srcdir)/blibecpg_compatdll.def
$(srcdir)/libecpg_compat.def: exports.txt
@


1.31
log
@This could be what's missing on some systems.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.30 2007/10/03 13:40:52 meskes Exp $
d23 1
d41 1
a41 1
snprintf.c: $(top_srcdir)/src/port/%
@


1.30
log
@Also build snprintf from pgport if needed.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.29 2007/10/03 13:24:54 meskes Exp $
d40 3
@


1.29
log
@Remove exports.list in clean target.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.28 2007/10/03 13:20:19 meskes Exp $
d26 3
@


1.28
log
@Also created export list for pgytpeslib and compatlib.
Set pgtypes library version to 3.0.
Set compat library version to 3.0.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.27 2007/01/20 17:16:17 petere Exp $
d90 1
a90 1
	rm -f $(OBJS) snprintf.c
@


1.27
log
@Remove remains of old depend target.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.26 2007/01/05 20:54:39 momjian Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 2
SO_MINOR_VERSION= 3
d26 5
a30 1
OBJS= informix.o
d37 45
d90 1
a90 1
	rm -f $(OBJS)
@


1.26
log
@Stamp major release 8.3.0, and increment library version numbers.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.25 2006/09/10 22:07:02 tgl Exp $
a41 7

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

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


1.25
log
@Install a cleaner solution to the AIX libpq linking problem, as per
an earlier discussion.  Centralize assumptions about what libpq depends
on in one place in Makefile.global.  I am unconvinced that this list
is complete, but since ecpg seems to have gotten along with just these
entries, we'll try it this way and see what happens.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.24 2006/08/28 16:13:10 tgl Exp $
d17 1
a17 1
SO_MINOR_VERSION= 2
@


1.24
log
@Partial fix for ecpg's VPATH problems.  It compiles and successfully
builds all the files needed for its regression tests, but the tests
themselves fail because of diffs in the #line directives output by
ecpg itself.  Not sure what to do about that.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.23 2005/12/09 21:19:35 petere Exp $
d23 1
a23 2
SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) \
@


1.23
log
@Allow installation into directories containing spaces in the name.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.22 2005/12/09 02:49:09 momjian Exp $
d20 2
a21 2
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) \
	-I$(top_srcdir)/src/include/utils $(CPPFLAGS)
d24 2
a25 1
	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS)
@


1.22
log
@Stamp libraries for 8.2 by updating minor library version numbers and
Win32 library files.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.21 2005/03/14 17:27:49 momjian Exp $
d36 1
a36 1
	$(mkinstalldirs) $(DESTDIR)$(libdir)
@


1.21
log
@Bump minor version numbers for 8.1 compared to 8.0.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.20 2005/03/11 19:13:42 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1
@


1.20
log
@Add fprintf() custom version to libpgport.

Document use of macros for pg_printf functions.

Bump major versions of all interfaces to handle movement of get_progname
from libpq to libpgport in 8.0, and probably other libpgport changes in 8.1.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.19 2005/01/18 05:00:15 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 0
@


1.19
log
@Update version stamps for 8.1 as listed in RELEASE_CHANGES.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.18 2004/07/13 00:06:39 tgl Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 1
SO_MINOR_VERSION= 2
@


1.18
log
@Cause libpq and ecpg libraries to be built as proper shared libraries
(.dylib format) on Mac OS X, while not messing up loadable modules for
the backend (which are the same kind of animal as a shared library on
every other platform, but not here).  Also get the naming convention
to match OS X practice, viz libFOO.version.so not libFOO.so.version.
In support of that last, refactor code in Makefile.shlib to make it
easier to have platform-specific shlib naming conventions.
This patch is loosely based on the Fink project's current postgresql.patch.
Tested by yours truly on OS X 10.3.4; does anyone have 10.2.* to check
it on?
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.17 2004/04/30 04:14:05 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1
@


1.18.4.1
log
@Increment all major version numbers in 8.0.X to force recompile of
client aplications so 7.4.X releases can be installed on the same
machine as 8.0.X.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.18 2004/07/13 00:06:39 tgl Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 2
SO_MINOR_VERSION= 0
@


1.17
log
@Minor adjustments to enable public-domain timezone library to be called
from our code.
@
text
@d3 1
a3 1
# Makefile for ecpg library
d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.16 2004/04/25 20:57:32 momjian Exp $
d18 1
@


1.16
log
@Make thread flags CFLAGS, not CPPFLAGS.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.15 2004/04/23 18:15:54 momjian Exp $
d19 2
a20 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
@


1.15
log
@Add new auto-detection of thread flags.

Allow additional thread flags to be added via port templates.

Change thread flag names to PTHREAD_CFLAGS and PTHREAD_LIBS to match new
configure script.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.14 2004/02/10 07:26:25 tgl Exp $
d19 2
a20 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS) $(PTHREAD_CFLAGS)
@


1.14
log
@Repair missing inclusions of -lintl for shared libraries.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.13 2003/11/30 06:09:42 momjian Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS) $(THREAD_CPPFLAGS)
d21 1
a21 1
	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)
@


1.13
log
@Bump all version numbers and version stamps mentioned in RELEASE_CHANGES.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.12 2003/11/29 19:52:08 pgsql Exp $
d21 1
a21 1
	$(filter -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)
@


1.12
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
# $PostgreSQL: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.11 2003/10/28 21:55:58 tgl Exp $
d17 1
a17 1
SO_MINOR_VERSION= 0
@


1.11
log
@Include -lkrb5 when needed for shlibs depending on libpq.  Per report
from Johan Henselmans.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.10 2003/09/27 19:35:32 tgl Exp $
@


1.11.2.1
log
@Applied all bug fixes from head also to 7.4. Just bugfixes, no new features.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.13 2003/11/30 06:09:42 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1
@


1.11.2.2
log
@Repair missing inclusions of -lintl for shared libraries.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.11.2.1 2003/12/17 15:31:51 meskes Exp $
d21 1
a21 1
	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)
@


1.11.2.3
log
@Committed Informix compat bug fix to 7.4 as well.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.14 2004/02/10 07:26:25 tgl Exp $
d17 1
a17 1
SO_MINOR_VERSION= 2
@


1.10
log
@Adjust Darwin build to use the default 'two level namespace' linking
method.  Fix a number of places where shared libraries were linked without
mentioning all the libraries they depend on; the Darwin and AIX ports
are known to require this, and it doesn't seem to hurt any other supported
platforms.  (Hence, remove code in pl/tcl makefile that tried to avoid
mentioning other libs if not needed.)
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.9 2003/09/27 15:32:47 momjian Exp $
d21 1
a21 1
	$(filter -lssl -lcrypto -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)
@


1.9
log
@Rename thread compile flag.  Move thread test program to tools/thread,
and improve tests.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.8 2003/08/06 02:19:48 momjian Exp $
d20 2
a21 1
SHLIB_LINK = -L../pgtypeslib -lpgtypes -L../ecpglib -lecpg $(THREAD_LIBS)
@


1.8
log
@Add ecpg thread testing file.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.7 2003/08/01 16:18:04 petere Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS) $(THREAD_CFLAGS)
@


1.7
log
@Use only two-part shared library version numbers, for better portability
and consistency.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.6 2003/08/01 13:53:36 petere Exp $
d19 2
a20 2
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
SHLIB_LINK = -L../pgtypeslib -lpgtypes -L../ecpglib -lecpg
@


1.6
log
@Make ecpg SQLSTATE-aware.  Map existing SQLCODE assignments to SQLSTATEs,
rather than parsing the message.  Add some documentation about embedded
SQL.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.5 2003/06/24 14:45:46 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 0.0
@


1.5
log
@Add  -L../ecpglib -lecpg for Cygwin compile.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.4 2003/05/22 17:20:44 petere Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
@


1.4
log
@Fix compilation on Cygwin.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.3 2003/04/16 05:23:55 tgl Exp $
d20 1
a20 1
SHLIB_LINK = -L../pgtypeslib -lpgtypes
@


1.3
log
@Fix some problems exposed by building outside the source tree.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.2 2003/04/08 17:08:15 tgl Exp $
d20 1
@


1.2
log
@Get rid of inappropriate flags in CPPFLAGS override --- these break
non-gcc compilers, and they would never belong in CPPFLAGS anyway.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v 1.1 2003/03/30 13:26:09 meskes Exp $
d11 1
a11 1
subdir = src/interfaces/ecpg/pgtypeslib
@


1.1
log
@Forgot two new files and one that was moved.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.3 2003/03/27 14:29:17 meskes Exp $
d19 1
a19 1
override CPPFLAGS := -O1 -g -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
@
