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.13.2.2
	REL8_0_25:1.23.4.1
	REL8_1_21:1.26.2.1
	REL8_2_17:1.30
	REL8_3_11:1.39
	REL8_4_4:1.43
	REL9_0_BETA1:1.46
	REL9_0_ALPHA5_BRANCH:1.46.0.4
	REL9_0_ALPHA5:1.46
	REL7_4_28:1.13.2.2
	REL8_0_24:1.23.4.1
	REL8_1_20:1.26.2.1
	REL8_2_16:1.30
	REL8_3_10:1.39
	REL8_4_3:1.43
	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.13.2.2
	REL8_0_23:1.23.4.1
	REL8_1_19:1.26.2.1
	REL8_2_15:1.30
	REL8_3_9:1.39
	REL8_4_2:1.43
	REL8_5_ALPHA2:1.45
	REL8_5_ALPHA2_BRANCH:1.45.0.4
	REL7_4_26:1.13.2.2
	REL8_0_22:1.23.4.1
	REL8_1_18:1.26.2.1
	REL8_2_14:1.30
	REL8_3_8:1.39
	REL8_4_1:1.43
	REL8_5_ALPHA1:1.45
	REL8_5_ALPHA1_BRANCH:1.45.0.2
	REL8_4_STABLE:1.43.0.2
	REL8_4_0:1.43
	REL8_4_RC2:1.43
	REL8_4_RC1:1.43
	REL8_4_BETA2:1.43
	REL8_4_BETA1:1.43
	REL7_4_25:1.13.2.2
	REL8_0_21:1.23.4.1
	REL8_1_17:1.26.2.1
	REL8_2_13:1.30
	REL8_3_7:1.39
	REL7_4_24:1.13.2.2
	REL8_0_20:1.23.4.1
	REL8_1_16:1.26.2.1
	REL8_2_12:1.30
	REL8_3_6:1.39
	REL7_4_23:1.13.2.2
	REL8_0_19:1.23.4.1
	REL8_1_15:1.26.2.1
	REL8_2_11:1.30
	REL8_3_5:1.39
	REL7_4_22:1.13.2.2
	REL8_0_18:1.23.4.1
	REL8_1_14:1.26.2.1
	REL8_2_10:1.30
	REL8_3_4:1.39
	REL7_4_21:1.13.2.2
	REL8_0_17:1.23.4.1
	REL8_1_13:1.26.2.1
	REL8_2_9:1.30
	REL8_3_3:1.39
	REL7_4_20:1.13.2.2
	REL8_0_16:1.23.4.1
	REL8_1_12:1.26.2.1
	REL8_2_8:1.30
	REL8_3_2:1.39
	REL8_2_7:1.30
	REL8_3_1:1.39
	REL8_3_STABLE:1.39.0.2
	REL8_3_0:1.39
	REL8_3_RC2:1.39
	REL7_4_19:1.13.2.2
	REL8_0_15:1.23.4.1
	REL8_1_11:1.26.2.1
	REL8_2_6:1.30
	REL8_3_RC1:1.39
	REL8_3_BETA4:1.38
	REL8_3_BETA3:1.38
	REL8_3_BETA2:1.38
	REL8_3_BETA1:1.38
	REL7_4_18:1.13.2.2
	REL8_0_14:1.23.4.1
	REL8_1_10:1.26.2.1
	REL8_2_5:1.30
	REL7_4_17:1.13.2.2
	REL8_0_13:1.23.4.1
	REL8_1_9:1.26.2.1
	REL8_2_4:1.30
	REL8_0_12:1.23.4.1
	REL8_1_8:1.26.2.1
	REL8_2_3:1.30
	REL7_4_16:1.13.2.2
	REL8_0_11:1.23.4.1
	REL8_1_7:1.26.2.1
	REL8_2_2:1.30
	REL8_0_10:1.23.4.1
	REL8_1_6:1.26.2.1
	REL8_2_1:1.30
	REL7_4_15:1.13.2.2
	REL8_2_STABLE:1.30.0.2
	REL8_2_0:1.30
	REL8_2_RC1:1.30
	REL8_2_BETA3:1.30
	REL8_2_BETA2:1.30
	REL8_1_5:1.26.2.1
	REL8_0_9:1.23.4.1
	REL7_4_14:1.13.2.2
	REL8_2_BETA1:1.30
	REL7_4_13:1.13.2.2
	REL8_0_8:1.23.4.1
	REL8_1_4:1.26.2.1
	REL7_4_12:1.13.2.2
	REL8_0_7:1.23.4.1
	REL8_1_3:1.26.2.1
	REL7_4_11:1.13.2.2
	REL8_0_6:1.23.4.1
	REL8_1_2:1.26.2.1
	REL7_4_10:1.13.2.2
	REL8_0_5:1.23.4.1
	REL8_1_1:1.26.2.1
	REL8_1_STABLE:1.26.0.2
	REL8_1_0:1.26
	REL8_1_0RC1:1.26
	REL8_1_0BETA4:1.26
	REL8_1_0BETA3:1.26
	REL7_4_9:1.13.2.2
	REL8_0_4:1.23.4.1
	REL8_1_0BETA2:1.26
	REL8_1_0BETA1:1.26
	REL7_4_8:1.13.2.2
	REL8_0_3:1.23.4.1
	REL8_0_2:1.23.4.1
	REL7_4_7:1.13.2.2
	REL8_0_1:1.23
	REL8_0_STABLE:1.23.0.4
	REL8_0_0:1.23.0.2
	REL8_0_0RC5:1.23
	REL8_0_0RC4:1.23
	REL8_0_0RC3:1.23
	REL8_0_0RC2:1.23
	REL8_0_0RC1:1.23
	REL8_0_0BETA5:1.23
	REL8_0_0BETA4:1.23
	REL7_4_6:1.13.2.2
	REL8_0_0BETA3:1.22
	REL8_0_0BETA2:1.22
	REL7_4_5:1.13.2.2
	REL7_4_4:1.13.2.2
	REL8_0_0BETA1:1.22
	REL7_4_3:1.13.2.2
	REL7_4_2:1.13.2.2
	REL7_4_1:1.13.2.1
	REL7_4:1.13
	REL7_4_RC2:1.13
	REL7_4_STABLE:1.13.0.2
	REL7_4_RC1:1.13
	REL7_4_BETA5:1.13
	REL7_4_BETA4:1.12
	REL7_4_BETA3:1.11
	REL7_4_BETA2:1.11
	WIN32_DEV:1.11.0.2
	REL7_4_BETA1:1.9;
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.11;	author momjian;	state Exp;
branches;
next	1.45;

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

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

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

1.42
date	2008.04.07.14.15.58;	author petere;	state Exp;
branches;
next	1.41;

1.41
date	2008.02.26.06.41.24;	author petere;	state Exp;
branches;
next	1.40;

1.40
date	2008.02.13.18.14.46;	author momjian;	state Exp;
branches;
next	1.39;

1.39
date	2008.01.01.19.45.59;	author momjian;	state Exp;
branches;
next	1.38;

1.38
date	2007.10.05.01.51.40;	author tgl;	state Exp;
branches;
next	1.37;

1.37
date	2007.10.04.18.32.07;	author tgl;	state Exp;
branches;
next	1.36;

1.36
date	2007.10.04.07.58.15;	author meskes;	state Exp;
branches;
next	1.35;

1.35
date	2007.10.03.15.24.19;	author meskes;	state Exp;
branches;
next	1.34;

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

1.33
date	2007.09.27.19.53.44;	author tgl;	state Exp;
branches;
next	1.32;

1.32
date	2007.01.20.17.16.17;	author petere;	state Exp;
branches;
next	1.31;

1.31
date	2007.01.05.20.54.39;	author momjian;	state Exp;
branches;
next	1.30;

1.30
date	2006.08.28.16.13.11;	author tgl;	state Exp;
branches;
next	1.29;

1.29
date	2005.12.09.21.19.36;	author petere;	state Exp;
branches;
next	1.28;

1.28
date	2005.12.09.02.49.09;	author momjian;	state Exp;
branches;
next	1.27;

1.27
date	2005.12.06.05.26.21;	author tgl;	state Exp;
branches;
next	1.26;

1.26
date	2005.03.14.17.27.50;	author momjian;	state Exp;
branches
	1.26.2.1;
next	1.25;

1.25
date	2005.03.11.19.13.43;	author momjian;	state Exp;
branches;
next	1.24;

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

1.23
date	2004.10.04.20.36.12;	author momjian;	state Exp;
branches
	1.23.4.1;
next	1.22;

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

1.21
date	2004.05.26.17.24.07;	author tgl;	state Exp;
branches;
next	1.20;

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

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

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

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

1.16
date	2004.02.24.16.07.49;	author meskes;	state Exp;
branches;
next	1.15;

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

1.14
date	2003.11.29.19.52.08;	author pgsql;	state Exp;
branches;
next	1.13;

1.13
date	2003.10.03.17.04.48;	author tgl;	state Exp;
branches
	1.13.2.1;
next	1.12;

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

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

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

1.9
date	2003.08.01.16.18.04;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	2003.06.19.09.52.11;	author meskes;	state Exp;
branches;
next	1.7;

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

1.6
date	2003.05.09.16.26.29;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	2003.04.08.17.06.15;	author tgl;	state Exp;
branches;
next	1.4;

1.4
date	2003.03.30.11.48.18;	author meskes;	state Exp;
branches;
next	1.3;

1.3
date	2003.03.27.14.29.17;	author meskes;	state Exp;
branches;
next	1.2;

1.2
date	2003.03.20.15.56.50;	author meskes;	state Exp;
branches;
next	1.1;

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

1.13.2.1
date	2003.12.17.15.31.51;	author meskes;	state Exp;
branches;
next	1.13.2.2;

1.13.2.2
date	2004.02.24.16.09.16;	author meskes;	state Exp;
branches;
next	;

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

1.26.2.1
date	2005.12.06.05.26.30;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.47
log
@Bump minor library version numbers, for 9.1 release.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for ecpg pgtypes 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/pgtypeslib/Makefile,v 1.46 2010/01/02 16:58:11 momjian Exp $
#
#-------------------------------------------------------------------------

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

NAME= pgtypes
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 2

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

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

SHLIB_LINK += -lm

SHLIB_EXPORTS = exports.txt

OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
	pgstrcasecmp.o \
	$(filter rint.o snprintf.o, $(LIBOBJS))

all: all-lib

# 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.

pgstrcasecmp.c rint.c 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) pgstrcasecmp.c rint.c 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/pgtypeslib/Makefile,v 1.45 2009/08/07 10:51:20 meskes Exp $
d18 1
a18 1
SO_MINOR_VERSION= 1
@


1.45
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
@d5 1
a5 1
# Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.44 2009/07/13 01:37:05 momjian Exp $
@


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


1.43
log
@Update copyright for 2009.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.42 2008/04/07 14:15:58 petere Exp $
d18 1
a18 1
SO_MINOR_VERSION= 1
@


1.42
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
@d5 1
a5 1
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.41 2008/02/26 06:41:24 petere Exp $
@


1.41
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/pgtypeslib/Makefile,v 1.40 2008/02/13 18:14:46 momjian Exp $
a18 1
DLTYPE= library
d50 1
a50 2
installdirs:
	$(mkinstalldirs) '$(DESTDIR)$(libdir)'
@


1.40
log
@Bump minor library version numbers for 8.4.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.39 2008/01/01 19:45:59 momjian Exp $
d30 2
d36 1
a36 5
ifeq ($(PORTNAME), win32)
DLL_DEFFILE=libpgtypesdll.def
endif

all: def-files all-lib
a40 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)/libpgtypesdll.def $(srcdir)/blibpgtypesdll.def

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

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

d57 1
a57 1
	rm -f $(OBJS) pgstrcasecmp.c rint.c snprintf.c exports.list
d59 1
a59 2
maintainer-clean: distclean
	rm -f $(srcdir)/libpgtypesdll.def $(srcdir)/blibpgtypesdll.def
@


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


1.38
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/pgtypeslib/Makefile,v 1.37 2007/10/04 18:32:07 tgl Exp $
@


1.37
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/pgtypeslib/Makefile,v 1.36 2007/10/04 07:58:15 meskes Exp $
d48 2
d51 1
d107 1
a107 1
clean distclean maintainer-clean: clean-lib
d109 3
@


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


1.35
log
@Argh, missing dll in filename
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.34 2007/10/03 13:20:19 meskes Exp $
d37 1
a37 1
all: all-lib
@


1.34
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/pgtypeslib/Makefile,v 1.33 2007/09/27 19:53:44 tgl Exp $
d48 3
a50 2
def-files: $(srcdir)/libpgtypes.def $(srcdir)/blibpgtypesdll.def
$(srcdir)/libpgtypes.def: exports.txt
@


1.33
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/pgtypeslib/Makefile,v 1.32 2007/01/20 17:16:17 petere Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 2
SO_MINOR_VERSION= 3
d33 4
d42 45
d103 1
a103 1
	rm -f $(OBJS) pgstrcasecmp.c rint.c snprintf.c
@


1.32
log
@Remove remains of old depend target.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.31 2007/01/05 20:54:39 momjian Exp $
d20 1
a20 2
override CPPFLAGS := -DFRONTEND \
	-I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
@


1.31
log
@Stamp major release 8.3.0, and increment library version numbers.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.30 2006/08/28 16:13:11 tgl Exp $
a55 7

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

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


1.30
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/pgtypeslib/Makefile,v 1.29 2005/12/09 21:19:36 petere Exp $
d17 1
a17 1
SO_MINOR_VERSION= 2
@


1.29
log
@Allow installation into directories containing spaces in the name.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.28 2005/12/09 02:49:09 momjian Exp $
d20 2
a21 1
override CPPFLAGS := -DFRONTEND -I$(top_srcdir)/src/interfaces/ecpg/include \
@


1.28
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/pgtypeslib/Makefile,v 1.27 2005/12/06 05:26:21 tgl Exp $
d49 1
a49 1
	$(mkinstalldirs) $(DESTDIR)$(libdir)
@


1.27
log
@ecpg/pgtypeslib seems to need snprintf.c pulled in, too.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.26 2005/03/14 17:27:50 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1
@


1.26
log
@Bump minor version numbers for 8.1 compared to 8.0.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.25 2005/03/11 19:13:43 momjian Exp $
d20 3
a22 3
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include \
	-I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS) \
	$(PTHREAD_CFLAGS) -DFRONTEND
d24 2
a25 2
# Need to recomple any libpgport object files
LIBS := $(patsubst -lpgport,, $(LIBS))
d31 1
a31 1
	$(filter rint.o, $(LIBOBJS))
d38 4
a41 2
rint.c: %.c : $(top_srcdir)/src/port/%.c
	rm -f $@@ && $(LN_S) $< .
d43 1
a43 1
pgstrcasecmp.c: %.c : $(top_srcdir)/src/port/%.c
d54 1
a54 1
	rm -f $(OBJS) rint.c pgstrcasecmp.c
@


1.26.2.1
log
@ecpg/pgtypeslib seems to need snprintf.c pulled in, too.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.26 2005/03/14 17:27:50 momjian Exp $
d20 3
a22 3
override CPPFLAGS := -DFRONTEND -I$(top_srcdir)/src/interfaces/ecpg/include \
	-I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS)
override CFLAGS += $(PTHREAD_CFLAGS)
d24 2
a25 2
# Need to recompile any libpgport object files
LIBS := $(filter-out -lpgport, $(LIBS))
d31 1
a31 1
	$(filter rint.o snprintf.o, $(LIBOBJS))
d38 2
a39 4
# 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.
d41 1
a41 1
pgstrcasecmp.c rint.c snprintf.c: % : $(top_srcdir)/src/port/%
d52 1
a52 1
	rm -f $(OBJS) pgstrcasecmp.c rint.c snprintf.c
@


1.25
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/pgtypeslib/Makefile,v 1.24 2005/01/18 05:00:23 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 0
@


1.24
log
@Update version stamps for 8.1 as listed in RELEASE_CHANGES.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.23 2004/10/04 20:36:12 momjian Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 1
SO_MINOR_VERSION= 3
@


1.23
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/pgtypeslib/Makefile,v 1.22 2004/07/13 00:06:43 tgl Exp $
d17 1
a17 1
SO_MINOR_VERSION= 2
@


1.23.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/pgtypeslib/Makefile,v 1.23 2004/10/04 20:36:12 momjian Exp $
d16 2
a17 2
SO_MAJOR_VERSION= 2
SO_MINOR_VERSION= 0
@


1.22
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/pgtypeslib/Makefile,v 1.21 2004/05/26 17:24:07 tgl Exp $
d24 3
@


1.21
log
@Recent commits added created files that weren't getting deleted by
'make clean'.
@
text
@d3 1
a3 1
# Makefile for ecpg library
d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.20 2004/05/24 01:01:38 momjian Exp $
d18 1
@


1.20
log
@Remove a few $filter() calls that were not needed.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.19 2004/05/07 13:42:48 meskes Exp $
d48 1
a48 1
	rm -f $(OBJS)
@


1.19
log
@- Added additional test case.
- Fixed bug that reversed string length in typedefs.
- Added portability file to pgtypeslib.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.18 2004/04/30 04:14:06 momjian Exp $
d26 2
a27 1
      $(filter rint.o, $(LIBOBJS)) $(filter pgstrcasecmp.o, $(LIBOBJS))
@


1.18
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/pgtypeslib/Makefile,v 1.17 2004/04/23 18:15:54 momjian Exp $
d26 1
a26 1
      $(filter rint.o, $(LIBOBJS))
d34 3
@


1.17
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/pgtypeslib/Makefile,v 1.16 2004/02/24 16:07:49 meskes Exp $
d19 4
a22 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS) $(PTHREAD_CFLAGS)
@


1.16
log
@- Corrected error handling in PGTYPEStimestamp_from_asc.
- Set pgtypeslib version to 1.2.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.15 2003/11/30 06:09:46 momjian Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS) $(THREAD_CPPFLAGS)
@


1.15
log
@Bump all version numbers and version stamps mentioned in RELEASE_CHANGES.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.14 2003/11/29 19:52:08 pgsql Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1
@


1.14
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
# $PostgreSQL: /cvsroot/pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.13 2003/10/03 17:04:48 tgl Exp $
d17 1
a17 1
SO_MINOR_VERSION= 0
@


1.13
log
@Remove assorted compilation failures introduced by latest ecpg changes.
Also remove -g, which has no business in CPPFLAGS in the first place,
let alone being hardwired there by a sub-Makefile.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.12 2003/09/27 15:32:47 momjian Exp $
@


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


1.13.2.2
log
@- Corrected error handling in PGTYPEStimestamp_from_asc.
- Set pgtypeslib version to 1.2.
@
text
@d17 1
a17 1
SO_MINOR_VERSION= 2
@


1.12
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/pgtypeslib/Makefile,v 1.11 2003/08/07 04:03:18 momjian Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils $(CPPFLAGS) $(THREAD_CPPFLAGS) -g
@


1.11
log
@Add -lm for ecpg/pgtypeslib/Makefile link so -lm isn't required for ecpg
compiles.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.10 2003/08/06 02:19:51 momjian Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils $(CPPFLAGS) $(THREAD_CFLAGS) -g
@


1.10
log
@Add ecpg thread testing file.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.9 2003/08/01 16:18:04 petere Exp $
d20 1
@


1.9
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/pgtypeslib/Makefile,v 1.8 2003/06/19 09:52:11 meskes Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils $(CPPFLAGS) -g
@


1.8
log
@Fixed fetch into char * and added missing prototype for an Informix function.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.7 2003/05/10 02:05:50 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 0.0
@


1.7
log
@Add Makefile rules for new crypt/rint() /port functions.  Add include
for rint prototype.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.6 2003/05/09 16:26:29 momjian Exp $
d19 1
a19 1
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
@


1.6
log
@Add rint() to /port, remove from qnx/.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.5 2003/04/08 17:06:15 tgl Exp $
d28 3
@


1.5
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/pgtypeslib/Makefile,v 1.4 2003/03/30 11:48:18 meskes Exp $
d21 2
a22 1
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o
@


1.4
log
@Moved Informix stuff to its own compat library. Interval datetype is now fully functional.
@
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)
@


1.3
log
@More changes to pgtypeslib and set optimization to -O1.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.2 2003/03/20 15:56:50 meskes Exp $
d21 1
a21 1
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o
@


1.2
log
@Started adding date and timestamp.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.1 2003/03/16 10:42:54 meskes Exp $
d19 1
a19 1
override CPPFLAGS := -g -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
@


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 $
d21 1
a21 1
OBJS= numeric.o
@
