head	1.67;
access;
symbols
	REL9_0_0:1.66
	REL9_1_ALPHA1:1.67
	REL9_0_RC1:1.66
	REL9_0_BETA4:1.66
	REL9_0_STABLE:1.66.0.6
	REL9_0_BETA3:1.66
	REL9_0_BETA2:1.66
	REL7_4_29:1.10.2.3
	REL8_0_25:1.29.4.2
	REL8_1_21:1.33.2.1
	REL8_2_17:1.44
	REL8_3_11:1.54.2.2
	REL8_4_4:1.63
	REL9_0_BETA1:1.66
	REL9_0_ALPHA5_BRANCH:1.66.0.4
	REL9_0_ALPHA5:1.66
	REL7_4_28:1.10.2.3
	REL8_0_24:1.29.4.2
	REL8_1_20:1.33.2.1
	REL8_2_16:1.44
	REL8_3_10:1.54.2.2
	REL8_4_3:1.63
	REL9_0_ALPHA4:1.66
	REL9_0_ALPHA4_BRANCH:1.66.0.2
	REL8_5_ALPHA3:1.64
	REL8_5_ALPHA3_BRANCH:1.64.0.6
	REL7_4_27:1.10.2.3
	REL8_0_23:1.29.4.2
	REL8_1_19:1.33.2.1
	REL8_2_15:1.44
	REL8_3_9:1.54.2.2
	REL8_4_2:1.63
	REL8_5_ALPHA2:1.64
	REL8_5_ALPHA2_BRANCH:1.64.0.4
	REL7_4_26:1.10.2.3
	REL8_0_22:1.29.4.2
	REL8_1_18:1.33.2.1
	REL8_2_14:1.44
	REL8_3_8:1.54.2.2
	REL8_4_1:1.63
	REL8_5_ALPHA1:1.64
	REL8_5_ALPHA1_BRANCH:1.64.0.2
	REL8_4_STABLE:1.63.0.2
	REL8_4_0:1.63
	REL8_4_RC2:1.63
	REL8_4_RC1:1.63
	REL8_4_BETA2:1.63
	REL8_4_BETA1:1.63
	REL7_4_25:1.10.2.3
	REL8_0_21:1.29.4.2
	REL8_1_17:1.33.2.1
	REL8_2_13:1.44
	REL8_3_7:1.54.2.2
	REL7_4_24:1.10.2.3
	REL8_0_20:1.29.4.2
	REL8_1_16:1.33.2.1
	REL8_2_12:1.44
	REL8_3_6:1.54.2.2
	REL7_4_23:1.10.2.3
	REL8_0_19:1.29.4.2
	REL8_1_15:1.33.2.1
	REL8_2_11:1.44
	REL8_3_5:1.54.2.2
	REL7_4_22:1.10.2.3
	REL8_0_18:1.29.4.2
	REL8_1_14:1.33.2.1
	REL8_2_10:1.44
	REL8_3_4:1.54.2.2
	REL7_4_21:1.10.2.3
	REL8_0_17:1.29.4.2
	REL8_1_13:1.33.2.1
	REL8_2_9:1.44
	REL8_3_3:1.54.2.2
	REL7_4_20:1.10.2.3
	REL8_0_16:1.29.4.2
	REL8_1_12:1.33.2.1
	REL8_2_8:1.44
	REL8_3_2:1.54.2.2
	REL8_2_7:1.44
	REL8_3_1:1.54
	REL8_3_STABLE:1.54.0.2
	REL8_3_0:1.54
	REL8_3_RC2:1.54
	REL7_4_19:1.10.2.3
	REL8_0_15:1.29.4.2
	REL8_1_11:1.33.2.1
	REL8_2_6:1.44
	REL8_3_RC1:1.54
	REL8_3_BETA4:1.53
	REL8_3_BETA3:1.53
	REL8_3_BETA2:1.53
	REL8_3_BETA1:1.53
	REL7_4_18:1.10.2.3
	REL8_0_14:1.29.4.2
	REL8_1_10:1.33.2.1
	REL8_2_5:1.44
	REL7_4_17:1.10.2.3
	REL8_0_13:1.29.4.2
	REL8_1_9:1.33.2.1
	REL8_2_4:1.44
	REL8_0_12:1.29.4.2
	REL8_1_8:1.33.2.1
	REL8_2_3:1.44
	REL7_4_16:1.10.2.3
	REL8_0_11:1.29.4.2
	REL8_1_7:1.33.2.1
	REL8_2_2:1.44
	REL8_0_10:1.29.4.2
	REL8_1_6:1.33.2.1
	REL8_2_1:1.44
	REL7_4_15:1.10.2.3
	REL8_2_STABLE:1.44.0.2
	REL8_2_0:1.44
	REL8_2_RC1:1.44
	REL8_2_BETA3:1.44
	REL8_2_BETA2:1.44
	REL8_1_5:1.33.2.1
	REL8_0_9:1.29.4.2
	REL7_4_14:1.10.2.3
	REL8_2_BETA1:1.43
	REL7_4_13:1.10.2.3
	REL8_0_8:1.29.4.2
	REL8_1_4:1.33.2.1
	REL7_4_12:1.10.2.3
	REL8_0_7:1.29.4.2
	REL8_1_3:1.33.2.1
	REL7_4_11:1.10.2.3
	REL8_0_6:1.29.4.2
	REL8_1_2:1.33.2.1
	REL7_4_10:1.10.2.3
	REL8_0_5:1.29.4.2
	REL8_1_1:1.33.2.1
	REL8_1_STABLE:1.33.0.2
	REL8_1_0:1.33
	REL8_1_0RC1:1.33
	REL8_1_0BETA4:1.33
	REL8_1_0BETA3:1.33
	REL7_4_9:1.10.2.3
	REL8_0_4:1.29.4.2
	REL8_1_0BETA2:1.33
	REL8_1_0BETA1:1.33
	REL7_4_8:1.10.2.2
	REL8_0_3:1.29.4.2
	REL8_0_2:1.29.4.2
	REL7_4_7:1.10.2.2
	REL8_0_1:1.29.4.1
	REL8_0_STABLE:1.29.0.4
	REL8_0_0:1.29.0.2
	REL8_0_0RC5:1.29
	REL8_0_0RC4:1.29
	REL8_0_0RC3:1.29
	REL8_0_0RC2:1.29
	REL8_0_0RC1:1.29
	REL8_0_0BETA5:1.29
	REL8_0_0BETA4:1.28
	REL7_4_6:1.10.2.2
	REL8_0_0BETA3:1.25
	REL8_0_0BETA2:1.25
	REL7_4_5:1.10.2.2
	REL7_4_4:1.10.2.2
	REL8_0_0BETA1:1.25
	REL7_4_3:1.10.2.2
	REL7_4_2:1.10.2.2
	REL7_4_1:1.10.2.1
	REL7_4:1.10
	REL7_4_RC2:1.10
	REL7_4_STABLE:1.10.0.2
	REL7_4_RC1:1.10
	REL7_4_BETA5:1.9
	REL7_4_BETA4:1.9
	REL7_4_BETA3:1.7
	REL7_4_BETA2:1.7
	WIN32_DEV:1.7.0.2
	REL7_4_BETA1:1.7;
locks; strict;
comment	@# @;


1.67
date	2010.07.12.16.18.44;	author momjian;	state Exp;
branches;
next	1.66;

1.66
date	2010.01.05.16.38.23;	author meskes;	state Exp;
branches;
next	1.65;

1.65
date	2010.01.02.16.58.11;	author momjian;	state Exp;
branches;
next	1.64;

1.64
date	2009.07.13.01.37.05;	author momjian;	state Exp;
branches;
next	1.63;

1.63
date	2009.02.07.17.17.34;	author momjian;	state Exp;
branches;
next	1.62;

1.62
date	2009.01.14.14.54.35;	author petere;	state Exp;
branches;
next	1.61;

1.61
date	2009.01.01.17.24.02;	author momjian;	state Exp;
branches;
next	1.60;

1.60
date	2008.05.17.20.23.40;	author tgl;	state Exp;
branches;
next	1.59;

1.59
date	2008.04.07.14.15.58;	author petere;	state Exp;
branches;
next	1.58;

1.58
date	2008.03.21.16.10.23;	author meskes;	state Exp;
branches;
next	1.57;

1.57
date	2008.03.20.16.29.44;	author meskes;	state Exp;
branches;
next	1.56;

1.56
date	2008.02.26.06.41.24;	author petere;	state Exp;
branches;
next	1.55;

1.55
date	2008.02.13.18.14.46;	author momjian;	state Exp;
branches;
next	1.54;

1.54
date	2008.01.01.19.45.59;	author momjian;	state Exp;
branches
	1.54.2.1;
next	1.53;

1.53
date	2007.10.05.01.51.40;	author tgl;	state Exp;
branches;
next	1.52;

1.52
date	2007.10.04.20.54.08;	author tgl;	state Exp;
branches;
next	1.51;

1.51
date	2007.10.04.18.32.07;	author tgl;	state Exp;
branches;
next	1.50;

1.50
date	2007.10.04.07.58.15;	author meskes;	state Exp;
branches;
next	1.49;

1.49
date	2007.10.03.11.11.12;	author meskes;	state Exp;
branches;
next	1.48;

1.48
date	2007.09.27.19.53.44;	author tgl;	state Exp;
branches;
next	1.47;

1.47
date	2007.08.14.10.01.52;	author meskes;	state Exp;
branches;
next	1.46;

1.46
date	2007.01.20.17.16.17;	author petere;	state Exp;
branches;
next	1.45;

1.45
date	2007.01.05.20.54.39;	author momjian;	state Exp;
branches;
next	1.44;

1.44
date	2006.09.28.14.48.45;	author tgl;	state Exp;
branches;
next	1.43;

1.43
date	2006.09.11.20.10.30;	author tgl;	state Exp;
branches;
next	1.42;

1.42
date	2006.09.10.22.07.02;	author tgl;	state Exp;
branches;
next	1.41;

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

1.40
date	2006.04.29.20.13.07;	author tgl;	state Exp;
branches;
next	1.39;

1.39
date	2006.04.28.02.53.20;	author tgl;	state Exp;
branches;
next	1.38;

1.38
date	2006.01.17.19.49.23;	author meskes;	state Exp;
branches;
next	1.37;

1.37
date	2005.12.09.21.19.35;	author petere;	state Exp;
branches;
next	1.36;

1.36
date	2005.12.09.02.49.09;	author momjian;	state Exp;
branches;
next	1.35;

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

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

1.33
date	2005.03.14.17.27.50;	author momjian;	state Exp;
branches
	1.33.2.1;
next	1.32;

1.32
date	2005.03.11.19.13.42;	author momjian;	state Exp;
branches;
next	1.31;

1.31
date	2005.01.26.19.24.01;	author tgl;	state Exp;
branches;
next	1.30;

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

1.29
date	2004.11.20.21.13.05;	author tgl;	state Exp;
branches
	1.29.4.1;
next	1.28;

1.28
date	2004.10.12.04.48.35;	author neilc;	state Exp;
branches;
next	1.27;

1.27
date	2004.10.12.01.04.10;	author momjian;	state Exp;
branches;
next	1.26;

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

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

1.24
date	2004.05.25.21.20.44;	author momjian;	state Exp;
branches;
next	1.23;

1.23
date	2004.05.25.17.35.51;	author momjian;	state Exp;
branches;
next	1.22;

1.22
date	2004.05.21.21.56.02;	author tgl;	state Exp;
branches;
next	1.21;

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

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

1.19
date	2004.05.21.00.14.38;	author tgl;	state Exp;
branches;
next	1.18;

1.18
date	2004.05.19.05.14.58;	author momjian;	state Exp;
branches;
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.03.14.12.16.29;	author meskes;	state Exp;
branches;
next	1.13;

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

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

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

1.10
date	2003.10.28.21.55.58;	author tgl;	state Exp;
branches
	1.10.2.1;
next	1.9;

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

1.8
date	2003.09.27.15.32.47;	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.06.15.12.06.50;	author meskes;	state Exp;
branches;
next	1.5;

1.5
date	2003.06.15.11.10.09;	author meskes;	state Exp;
branches;
next	1.4;

1.4
date	2003.06.15.04.07.58;	author momjian;	state Exp;
branches;
next	1.3;

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

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

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

1.10.2.1
date	2003.12.17.15.31.51;	author meskes;	state Exp;
branches;
next	1.10.2.2;

1.10.2.2
date	2004.02.10.07.26.48;	author tgl;	state Exp;
branches;
next	1.10.2.3;

1.10.2.3
date	2005.07.16.20.39.24;	author tgl;	state Exp;
branches;
next	;

1.29.4.1
date	2005.01.26.19.24.17;	author tgl;	state Exp;
branches;
next	1.29.4.2;

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

1.33.2.1
date	2005.12.06.02.29.26;	author tgl;	state Exp;
branches;
next	;

1.54.2.1
date	2008.03.20.16.30.14;	author meskes;	state Exp;
branches;
next	1.54.2.2;

1.54.2.2
date	2008.03.21.16.10.10;	author meskes;	state Exp;
branches;
next	;


desc
@@


1.67
log
@Bump minor library version numbers, for 9.1 release.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for ecpg 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/ecpglib/Makefile,v 1.66 2010/01/05 16:38:23 meskes Exp $
#
#-------------------------------------------------------------------------

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

NAME= ecpg
SO_MAJOR_VERSION= 6
SO_MINOR_VERSION= 3

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

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

OBJS= execute.o typename.o descriptor.o sqlda.o data.o error.o prepare.o memory.o \
	connect.o misc.o path.o pgstrcasecmp.o \
	$(filter snprintf.o strlcpy.o, $(LIBOBJS))

# thread.c is needed only for non-WIN32 implementation of path.c
ifneq ($(PORTNAME), win32)
OBJS += thread.o
endif

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

SHLIB_EXPORTS = exports.txt

ifeq ($(PORTNAME), win32)
# Link to shfolder.dll instead of shell32.dll
SHLIB_LINK += -lshfolder
endif

all: libpq pgtypeslib all-lib

libpq:
	$(MAKE) -C $(top_builddir)/src/interfaces/libpq all

pgtypeslib:
	$(MAKE) -C $(top_builddir)/src/interfaces/ecpg/pgtypeslib all

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

# We use some port modules verbatim, but since we need to
# compile with appropriate options to build a shared lib, we can't
# necessarily use the same object files as the backend uses. Instead,
# symlink the source files in here and build our own object file.

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

misc.o: misc.c $(top_builddir)/src/port/pg_config_paths.h
path.o: path.c $(top_builddir)/src/port/pg_config_paths.h

$(top_builddir)/src/port/pg_config_paths.h:
	$(MAKE) -C $(top_builddir)/src/port pg_config_paths.h

install: all installdirs install-lib

installdirs: installdirs-lib

uninstall: uninstall-lib

clean distclean: clean-lib
	rm -f $(OBJS)
	rm -f path.c pgstrcasecmp.c snprintf.c strlcpy.c thread.c

maintainer-clean: distclean maintainer-clean-lib
@


1.66
log
@Applied patch by Boszormenyi Zoltan <zb@@cybertec.at> to add sqlda support to
ecpg in both native and compatiblity mode.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.65 2010/01/02 16:58:11 momjian Exp $
d18 1
a18 1
SO_MINOR_VERSION= 2
@


1.65
log
@Update copyright for the year 2010.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.64 2009/07/13 01:37:05 momjian Exp $
d27 1
a27 1
OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
@


1.64
log
@Stamp minor library version numbers for 8.5; sorry for the delay.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.63 2009/02/07 17:17:34 momjian Exp $
@


1.63
log
@ecpg requires libpq;  add Makefile rules to require libpq to be built
first.

Alvaro Herrera
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.62 2009/01/14 14:54:35 petere Exp $
d18 1
a18 1
SO_MINOR_VERSION= 1
@


1.62
log
@misc.o depends on pg_config_paths.h when --enable-nls is used.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.61 2009/01/01 17:24:02 momjian Exp $
d45 7
a51 1
all: all-lib
@


1.61
log
@Update copyright for 2009.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.60 2008/05/17 20:23:40 tgl Exp $
d58 1
@


1.60
log
@ecpglib needs to link with libintl if it's in use.
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/ecpglib/Makefile,v 1.59 2008/04/07 14:15:58 petere Exp $
@


1.59
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/ecpglib/Makefile,v 1.58 2008/03/21 16:10:23 meskes Exp $
d36 1
a36 1
SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) -lm $(PTHREAD_LIBS)
@


1.58
log
@Corrected version number.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.57 2008/03/20 16:29:44 meskes Exp $
a18 1
DLTYPE= library
d65 1
a65 2
installdirs:
	$(mkinstalldirs) '$(DESTDIR)$(libdir)'
@


1.57
log
@Added ECPGget_PGconn() function to ecpglib, courtesy of Mike Aubury.
Removed one include file from connect-test1.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.56 2008/02/26 06:41:24 petere Exp $
d18 1
a18 1
SO_MINOR_VERSION= 2
@


1.56
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/ecpglib/Makefile,v 1.55 2008/02/13 18:14:46 momjian Exp $
d18 1
a18 1
SO_MINOR_VERSION= 1
@


1.55
log
@Bump minor library version numbers for 8.4.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.54 2008/01/01 19:45:59 momjian Exp $
d39 2
a43 1
DLL_DEFFILE=libecpgdll.def
d46 1
a46 1
all: def-files all-lib
a63 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)/libecpgdll.def $(srcdir)/blibecpgdll.def

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

$(srcdir)/blibecpgdll.def: exports.txt
	echo '; DEF file for Borland C++ Builder' > $@@
	echo 'LIBRARY BLIBECPG' >> $@@
	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

d73 1
a73 1
	rm -f path.c pgstrcasecmp.c snprintf.c strlcpy.c thread.c exports.list
d75 1
a75 2
maintainer-clean: distclean
	rm -f $(srcdir)/libecpgdll.def $(srcdir)/blibecpgdll.def
@


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


1.54.2.1
log
@Added ECPGget_PGconn() function to ecpglib, courtesy of Mike Aubury.
Bumped library version to 6.1.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.54 2008/01/01 19:45:59 momjian Exp $
d18 1
a18 1
SO_MINOR_VERSION= 1
@


1.54.2.2
log
@Corrected version number.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.54.2.1 2008/03/20 16:30:14 meskes Exp $
d18 1
a18 1
SO_MINOR_VERSION= 0
@


1.53
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/ecpglib/Makefile,v 1.52 2007/10/04 20:54:08 tgl Exp $
@


1.52
log
@Results from buildfarm show that ecpglib was depending on pg_strcasecmp,
which evidently it got as an unofficial export from pgtypeslib.
@
text
@d5 2
a6 1
# Copyright (c) 1994, Regents of the University of California
d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.51 2007/10/04 18:32:07 tgl Exp $
d68 2
d71 1
d119 1
a119 1
clean distclean maintainer-clean: clean-lib
d122 3
@


1.51
log
@DLL_DEFFILE should be defined when PORTNAME is win32, not when it isn't,
per the example of libpq/Makefile.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.50 2007/10/04 07:58:15 meskes Exp $
d28 1
a28 1
	connect.o misc.o path.o \
d54 1
a54 1
path.c snprintf.c strlcpy.c thread.c: % : $(top_srcdir)/src/port/%
d116 2
a117 1
	rm -f $(OBJS) path.c snprintf.c strlcpy.c thread.c exports.list
@


1.50
log
@Added def-files to all: target so they are build everytime.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.49 2007/10/03 11:11:12 meskes Exp $
a33 1
DLL_DEFFILE=libecpgdll.def
d41 1
@


1.49
log
@Cleaned up ecpglib and renamed functions that do not need to be exported.
Created export list for ecpglib.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.48 2007/09/27 19:53:44 tgl Exp $
d44 1
a44 1
all: all-lib
@


1.48
log
@Define the FRONTEND symbol in postgres_fe.h, which allows us to eliminate
duplicative -DFRONTEND flags from many Makefiles.  We still need Makefile
control of the symbol in a few places that compile frontend-or-backend
src/port/ files, but it's a lot cleaner than before.

Hiroshi Saito
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.47 2007/08/14 10:01:52 meskes Exp $
d34 1
d62 46
d116 1
a116 1
	rm -f $(OBJS) path.c snprintf.c strlcpy.c thread.c
@


1.47
log
@- Finished major rewrite to use new protocol version
- Really prepare statements
- Added more regression tests
- Added auto-prepare mode
- Use '$n' for positional variables, '?' is still possible via ecpg option
- Cleaned up the sources a little bit
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.46 2007/01/20 17:16:17 petere Exp $
d20 1
a20 2
override CPPFLAGS := -DFRONTEND \
	-I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
@


1.46
log
@Remove remains of old depend target.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.45 2007/01/05 20:54:39 momjian Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 5
SO_MINOR_VERSION= 3
@


1.45
log
@Stamp major release 8.3.0, and increment library version numbers.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.44 2006/09/28 14:48:45 tgl Exp $
a70 7

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

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


1.44
log
@Fix a couple other places that need to know about (some) src/port/ files
explicitly.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.43 2006/09/11 20:10:30 tgl Exp $
d17 1
a17 1
SO_MINOR_VERSION= 2
@


1.43
log
@Move set_pglocale_pgservice() from path.c to exec.c, so that pulling in
path.c does not in itself force linking of both exec.c and libintl.
Should fix current ecpglib build failure on pickier platforms.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.42 2006/09/10 22:07:02 tgl Exp $
d30 1
a30 1
	$(filter snprintf.o, $(LIBOBJS))
d54 1
a54 1
path.c snprintf.c thread.c: % : $(top_srcdir)/src/port/%
d70 1
a70 1
	rm -f $(OBJS) path.c snprintf.c thread.c
@


1.42
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/ecpglib/Makefile,v 1.41 2006/08/28 16:13:11 tgl Exp $
d29 1
a29 1
	connect.o misc.o path.o exec.o \
d54 1
a54 1
path.c exec.c snprintf.c thread.c: % : $(top_srcdir)/src/port/%
d70 1
a70 1
	rm -f $(OBJS) path.c exec.c snprintf.c thread.c
@


1.41
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/ecpglib/Makefile,v 1.40 2006/04/29 20:13:07 tgl Exp $
d37 1
a37 2
SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \
	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS)
@


1.40
log
@We only need to add thread.c on non-WIN32 platforms, since get_home_path
doesn't use pqGetpwuid on WIN32.  Rather than try to figure out why it
won't build on WIN32, just remove it.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.39 2006/04/28 02:53:20 tgl Exp $
d20 2
a21 1
override CPPFLAGS := -DFRONTEND -I$(top_srcdir)/src/interfaces/ecpg/include \
@


1.39
log
@Arrange to strip libpq.so of symbols that aren't officially supposed to
be exported on Linux and Darwin.  We already did this on Windows but
that's not enough, as evidenced by the fact that libecpg had an unexpected
dependency on one such symbol.  We should try to do it on more platforms.
Fix ecpg's oversight, and bump libpq's major .so version number to reflect
the unwanted but nonetheless real ABI break.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.38 2006/01/17 19:49:23 meskes Exp $
d28 1
a28 1
	connect.o misc.o path.o exec.o thread.o \
d31 5
@


1.38
log
@Data transferred binary is now put into the variables verbatim.
Also added a test case for a binary cursor.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.37 2005/12/09 21:19:35 petere Exp $
d28 1
a28 1
	connect.o misc.o path.o exec.o \
d49 1
a49 1
path.c exec.c snprintf.c: % : $(top_srcdir)/src/port/%
d65 1
a65 1
	rm -f $(OBJS) path.c exec.c snprintf.c
@


1.37
log
@Allow installation into directories containing spaces in the name.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.36 2005/12/09 02:49:09 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 3
@


1.36
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/ecpglib/Makefile,v 1.35 2005/12/06 02:29:04 tgl Exp $
d60 1
a60 1
	$(mkinstalldirs) $(DESTDIR)$(libdir)
@


1.35
log
@Make Win32 build use our port/snprintf.c routines, instead of depending
on libintl which may or may not provide what we need.  Make a few marginal
cleanups to ensure this works.  Andrew Dunstan and Tom Lane.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.34 2005/11/30 12:49:49 meskes Exp $
d17 1
a17 1
SO_MINOR_VERSION= 2
@


1.34
log
@- Made several variables "const char *" instead of "char *" as proposed by Qingqing Zhou <zhouqq@@cs.toronto.edu>.
- Replaced all strdup() calls by ECPGstrdup().
- Set ecpg library version to 5.2.
- Set ecpg version to 4.2.1.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.33 2005/03/14 17:27:50 momjian Exp $
d24 2
a25 2
# Need to recomple any libpgport object files
LIBS := $(patsubst -lpgport,, $(LIBS))
d28 2
a29 1
	connect.o misc.o path.o exec.o
d49 1
a49 4
path.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .

exec.c: % : $(top_srcdir)/src/port/%
d65 1
a65 1
	rm -f $(OBJS) path.c exec.c
@


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


1.33.2.1
log
@Make Win32 build use our port/snprintf.c routines, instead of depending
on libintl which may or may not provide what we need.  Make a few marginal
cleanups to ensure this works.  Andrew Dunstan and Tom Lane.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.33 2005/03/14 17:27:50 momjian Exp $
d24 2
a25 2
# Need to recompile any libpgport object files
LIBS := $(filter-out -lpgport, $(LIBS))
d28 1
a28 2
	connect.o misc.o path.o exec.o \
	$(filter snprintf.o, $(LIBOBJS))
d48 4
a51 1
path.c exec.c snprintf.c: % : $(top_srcdir)/src/port/%
d67 1
a67 1
	rm -f $(OBJS) path.c exec.c snprintf.c
@


1.32
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/ecpglib/Makefile,v 1.31 2005/01/26 19:24:01 tgl Exp $
d17 1
a17 1
SO_MINOR_VERSION= 0
@


1.31
log
@Use SHGetFolderPath instead of SHGetSpecialFolderPath to find the
APPDATA directory on Windows.  Magnus Hagander
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.30 2005/01/18 05:00:17 momjian Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 4
SO_MINOR_VERSION= 3
@


1.30
log
@Update version stamps for 8.1 as listed in RELEASE_CHANGES.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.29 2004/11/20 21:13:05 tgl Exp $
d33 5
@


1.29
log
@Fix up makefile dependencies for pg_config_paths.h.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.28 2004/10/12 04:48:35 neilc Exp $
d17 1
a17 1
SO_MINOR_VERSION= 2
@


1.29.4.1
log
@Use SHGetFolderPath instead of SHGetSpecialFolderPath to find the
APPDATA directory on Windows.  Magnus Hagander
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.29 2004/11/20 21:13:05 tgl Exp $
a32 5
ifeq ($(PORTNAME), win32)
# Link to shfolder.dll instead of shell32.dll
SHLIB_LINK += -lshfolder
endif

@


1.29.4.2
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/ecpglib/Makefile,v 1.29.4.1 2005/01/26 19:24:17 tgl Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 5
SO_MINOR_VERSION= 0
@


1.28
log
@Fix vpath build break, induced by Bruce's recent commit.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.27 2004/10/12 01:04:10 momjian Exp $
d33 1
a33 1
all: $(top_builddir)/src/port/pg_config_paths.h all-lib
d49 4
a52 2
$(top_srcdir)/src/port/pg_config_paths.h:
	$(MAKE) -C $(top_srcdir)/src/port pg_config_paths.h
@


1.27
log
@Add some pg_config_path.h dependencies for places that include
pg_config_paths.h outside of /src/port.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.26 2004/10/04 20:36:11 momjian Exp $
d33 1
a33 1
all: $(top_srcdir)/src/port/pg_config_paths.h all-lib
@


1.26
log
@Make sure no libs use libpgport by removing it from the link line.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.25 2004/07/13 00:06:41 tgl Exp $
d33 1
a33 1
all: all-lib
d49 3
@


1.25
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/ecpglib/Makefile,v 1.24 2004/05/25 21:20:44 momjian Exp $
d24 3
@


1.24
log
@Add FRONTEND to ecpglib.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.23 2004/05/25 17:35:51 momjian Exp $
d18 1
@


1.23
log
@Add exec.c to ecpg library because path.c now uses it.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.22 2004/05/21 21:56:02 tgl Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include \
@


1.22
log
@Handle inclusion of port modules 'correctly', viz the same way libpq
does it.  Fixes OS X, which needs path.c.  It may be that Win32 needs
some more port modules, but they are easily added.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.21 2004/05/21 03:12:03 momjian Exp $
d24 1
a24 1
	connect.o misc.o path.o
d42 3
d53 1
a53 1
	rm -f $(OBJS) path.c
@


1.21
log
@Add mention of why -lpgport is needed in ecpglib (dllwrap).
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.20 2004/05/21 03:10:47 momjian Exp $
d20 1
a20 1
	-I$(libpq_srcdir) $(CPPFLAGS)
d24 1
a24 1
	connect.o misc.o
d26 1
a26 6
# needed by dllwrap
ifeq ($(PORTNAME), win32)
PGPORT=-lpgport
endif

SHLIB_LINK = -L../pgtypeslib -lpgtypes $(PGPORT) $(libpq) \
d34 8
d50 1
a50 1
	rm -f $(OBJS)
@


1.20
log
@Add -lpgport to ecpglib link only on win32.  Other platforms have
problems with it.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.19 2004/05/21 00:14:38 tgl Exp $
d26 1
@


1.19
log
@Revert addition of -lpgport, which breaks the build on platforms that
are sticky about non-PIC code in shared libraries.  Windows will have
to find another solution (probably similar to the way libpq does it).
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.18 2004/05/19 05:14:58 momjian Exp $
d26 5
a30 1
SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \
@


1.18
log
@Win32 needs -lpgport for dll creation of ecpglib.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.17 2004/04/30 04:14:05 momjian Exp $
d26 1
a26 1
SHLIB_LINK = -L../pgtypeslib -lpgtypes -lpgport $(libpq) \
@


1.17
log
@Minor adjustments to enable public-domain timezone library to be called
from our code.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.16 2004/04/25 20:57:32 momjian Exp $
d26 1
a26 1
SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \
@


1.16
log
@Make thread flags CFLAGS, not CPPFLAGS.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/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) $(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/ecpglib/Makefile,v 1.14 2004/03/14 12:16:29 meskes Exp $
d19 2
a20 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) $(CPPFLAGS) $(PTHREAD_CFLAGS) 
@


1.14
log
@- Fixed Informix compat math functions to cope with the situations
  where one argument takes the result.
- Applied thread patches by Lee Kindness
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.13 2004/02/10 07:26:25 tgl Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) $(CPPFLAGS) $(THREAD_CPPFLAGS) 
d25 1
a25 1
	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)
@


1.13
log
@Repair missing inclusions of -lintl for shared libraries.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.12 2003/11/30 06:09:46 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1
@


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


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


1.10
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/ecpglib/Makefile,v 1.9 2003/09/27 19:35:32 tgl Exp $
@


1.10.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/ecpglib/Makefile,v 1.12 2003/11/30 06:09:46 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1
@


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


1.10.2.3
log
@ecpglib depends on last_path_separator from src/port/path.c, so we'd
better include that in the library build.  This was fixed in 8.0 and
later, backport to 7.4 to fix buildfarm failure.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.10.2.2 2004/02/10 07:26:48 tgl Exp $
d22 1
a22 1
	connect.o misc.o path.o
a31 8
# We use some port modules verbatim, but since we need to
# compile with appropriate options to build a shared lib, we can't
# necessarily use the same object files as the backend uses. Instead,
# symlink the source files in here and build our own object file.

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

d40 1
a40 1
	rm -f $(OBJS) path.c
@


1.9
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/ecpglib/Makefile,v 1.8 2003/09/27 15:32:47 momjian Exp $
d25 1
a25 1
	$(filter -lssl -lcrypto -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)
@


1.8
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/ecpglib/Makefile,v 1.7 2003/08/01 16:18:04 petere Exp $
d24 2
a25 1
SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) $(THREAD_LIBS)
@


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/ecpglib/Makefile,v 1.6 2003/06/15 12:06:50 meskes Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) $(CPPFLAGS) $(THREAD_CFLAGS) 
@


1.6
log
@Typo in version number.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.5 2003/06/15 11:10:09 meskes Exp $
d17 1
a17 1
SO_MINOR_VERSION= 0.0
@


1.5
log
@Some minor changes for new version numbering.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.4 2003/06/15 04:07:58 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 0.1
@


1.4
log
@Make ecpg thread safe.

Lee Kindness
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.3 2003/05/22 17:20:44 petere Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1.1
@


1.3
log
@Fix compilation on Cygwin.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v 1.2 2003/04/08 17:09:01 tgl Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 4.2
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) $(CPPFLAGS)
d24 1
a24 1
SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq)
@


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/ecpglib/Makefile,v 1.1 2003/03/16 10:42:53 meskes Exp $
d24 1
a24 1
SHLIB_LINK= $(libpq)
@


1.1
log
@Started working on a seperate pgtypes library. First test work. PLEASE test compilation on iother systems.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/lib/Makefile,v 1.19 2003/02/13 13:11:52 meskes Exp $
d19 1
a19 1
override CPPFLAGS := -g -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) $(CPPFLAGS)
@
