head	1.13;
access;
symbols
	REL9_0_0:1.12
	REL9_1_ALPHA1:1.13
	REL9_0_RC1:1.12
	REL9_0_BETA4:1.12
	REL9_0_STABLE:1.12.0.16
	REL9_0_BETA3:1.12
	REL9_0_BETA2:1.12
	REL7_4_29:1.5
	REL8_0_25:1.7
	REL8_1_21:1.8
	REL8_2_17:1.9
	REL8_3_11:1.12
	REL8_4_4:1.12
	REL9_0_BETA1:1.12
	REL9_0_ALPHA5_BRANCH:1.12.0.14
	REL9_0_ALPHA5:1.12
	REL7_4_28:1.5
	REL8_0_24:1.7
	REL8_1_20:1.8
	REL8_2_16:1.9
	REL8_3_10:1.12
	REL8_4_3:1.12
	REL9_0_ALPHA4:1.12
	REL9_0_ALPHA4_BRANCH:1.12.0.12
	REL8_5_ALPHA3:1.12
	REL8_5_ALPHA3_BRANCH:1.12.0.10
	REL7_4_27:1.5
	REL8_0_23:1.7
	REL8_1_19:1.8
	REL8_2_15:1.9
	REL8_3_9:1.12
	REL8_4_2:1.12
	REL8_5_ALPHA2:1.12
	REL8_5_ALPHA2_BRANCH:1.12.0.8
	REL7_4_26:1.5
	REL8_0_22:1.7
	REL8_1_18:1.8
	REL8_2_14:1.9
	REL8_3_8:1.12
	REL8_4_1:1.12
	REL8_5_ALPHA1:1.12
	REL8_5_ALPHA1_BRANCH:1.12.0.6
	REL8_4_STABLE:1.12.0.4
	REL8_4_0:1.12
	REL8_4_RC2:1.12
	REL8_4_RC1:1.12
	REL8_4_BETA2:1.12
	REL8_4_BETA1:1.12
	REL7_4_25:1.5
	REL8_0_21:1.7
	REL8_1_17:1.8
	REL8_2_13:1.9
	REL8_3_7:1.12
	REL7_4_24:1.5
	REL8_0_20:1.7
	REL8_1_16:1.8
	REL8_2_12:1.9
	REL8_3_6:1.12
	REL7_4_23:1.5
	REL8_0_19:1.7
	REL8_1_15:1.8
	REL8_2_11:1.9
	REL8_3_5:1.12
	REL7_4_22:1.5
	REL8_0_18:1.7
	REL8_1_14:1.8
	REL8_2_10:1.9
	REL8_3_4:1.12
	REL7_4_21:1.5
	REL8_0_17:1.7
	REL8_1_13:1.8
	REL8_2_9:1.9
	REL8_3_3:1.12
	REL7_4_20:1.5
	REL8_0_16:1.7
	REL8_1_12:1.8
	REL8_2_8:1.9
	REL8_3_2:1.12
	REL8_2_7:1.9
	REL8_3_1:1.12
	REL8_3_STABLE:1.12.0.2
	REL8_3_0:1.12
	REL8_3_RC2:1.12
	REL7_3_21:1.3
	REL7_4_19:1.5
	REL8_0_15:1.7
	REL8_1_11:1.8
	REL8_2_6:1.9
	REL8_3_RC1:1.12
	REL8_3_BETA4:1.12
	REL8_3_BETA3:1.12
	REL8_3_BETA2:1.11
	REL8_3_BETA1:1.11
	REL7_3_20:1.3
	REL7_4_18:1.5
	REL8_0_14:1.7
	REL8_1_10:1.8
	REL8_2_5:1.9
	REL7_3_19:1.3
	REL7_4_17:1.5
	REL8_0_13:1.7
	REL8_1_9:1.8
	REL8_2_4:1.9
	REL8_0_12:1.7
	REL8_1_8:1.8
	REL8_2_3:1.9
	REL7_3_18:1.3
	REL7_4_16:1.5
	REL8_0_11:1.7
	REL8_1_7:1.8
	REL8_2_2:1.9
	REL8_0_10:1.7
	REL8_1_6:1.8
	REL8_2_1:1.9
	REL7_4_15:1.5
	REL7_3_17:1.3
	REL8_2_STABLE:1.9.0.2
	REL8_2_0:1.9
	REL8_2_RC1:1.9
	REL8_2_BETA3:1.9
	REL8_2_BETA2:1.9
	REL8_1_5:1.8
	REL8_0_9:1.7
	REL7_4_14:1.5
	REL7_3_16:1.3
	REL8_2_BETA1:1.9
	REL7_3_15:1.3
	REL7_4_13:1.5
	REL8_0_8:1.7
	REL8_1_4:1.8
	REL7_3_14:1.3
	REL7_4_12:1.5
	REL8_0_7:1.7
	REL8_1_3:1.8
	REL7_3_13:1.3
	REL7_4_11:1.5
	REL8_0_6:1.7
	REL8_1_2:1.8
	REL7_3_12:1.3
	REL7_4_10:1.5
	REL8_0_5:1.7
	REL8_1_1:1.8
	REL8_1_STABLE:1.8.0.2
	REL8_1_0:1.8
	REL8_1_0RC1:1.8
	REL8_1_0BETA4:1.8
	REL8_1_0BETA3:1.8
	REL7_3_11:1.3
	REL7_4_9:1.5
	REL8_0_4:1.7
	REL8_1_0BETA2:1.7
	REL8_1_0BETA1:1.7
	REL7_2_8:1.3
	REL7_3_10:1.3
	REL7_4_8:1.5
	REL8_0_3:1.7
	REL8_0_2:1.7
	REL7_2_7:1.3
	REL7_3_9:1.3
	REL7_4_7:1.5
	REL8_0_1:1.7
	REL8_0_STABLE:1.7.0.4
	REL8_0_0:1.7.0.2
	REL8_0_0RC5:1.7
	REL8_0_0RC4:1.7
	REL8_0_0RC3:1.7
	REL8_0_0RC2:1.7
	REL8_0_0RC1:1.7
	REL8_0_0BETA5:1.7
	REL8_0_0BETA4:1.7
	REL7_4_6:1.5
	REL7_3_8:1.3
	REL7_2_6:1.3
	REL8_0_0BETA3:1.7
	REL8_0_0BETA2:1.7
	REL7_2_5:1.3
	REL7_4_5:1.5
	REL7_3_7:1.3
	REL7_4_4:1.5
	REL8_0_0BETA1:1.6
	REL7_4_3:1.5
	REL7_4_2:1.5
	REL7_3_6:1.3
	REL7_4_1:1.5
	REL7_3_5:1.3
	REL7_4:1.5
	REL7_4_RC2:1.5
	REL7_4_STABLE:1.5.0.4
	REL7_4_RC1:1.5
	REL7_4_BETA5:1.5
	REL7_4_BETA4:1.5
	REL7_4_BETA3:1.5
	REL7_4_BETA2:1.5
	WIN32_DEV:1.5.0.2
	REL7_4_BETA1:1.5
	REL7_3_4:1.3
	REL7_3_2:1.3
	REL7_2_4:1.3
	REL7_3_STABLE:1.3.0.4
	REL7_2_3:1.3
	REL7_2_STABLE:1.3.0.2
	REL7_2:1.3
	REL7_2_RC2:1.3
	REL7_2_RC1:1.3
	REL7_2_BETA5:1.3
	REL7_2_BETA4:1.3
	REL7_2_BETA3:1.3
	REL7_2_BETA2:1.3
	REL7_2_BETA1:1.3;
locks; strict;
comment	@# @;


1.13
date	2010.08.03.19.53.19;	author rhaas;	state Exp;
branches;
next	1.12;

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

1.11
date	2007.06.26.22.05.01;	author tgl;	state Exp;
branches;
next	1.10;

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

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

1.8
date	2005.09.27.17.12.59;	author tgl;	state Exp;
branches;
next	1.7;

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

1.6
date	2004.05.28.10.43.18;	author teodor;	state Exp;
branches;
next	1.5;

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

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

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

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

1.1
date	2001.08.22.18.27.54;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.13
log
@Regression tests for new btree_gist "not equals" support.

Jeff Davis, with minor adjustments by me.
@
text
@# $PostgreSQL: pgsql/contrib/btree_gist/Makefile,v 1.12 2007/11/10 23:59:50 momjian Exp $

MODULE_big  = btree_gist

OBJS        = btree_gist.o btree_utils_num.o btree_utils_var.o btree_int2.o btree_int4.o btree_int8.o \
              btree_float4.o btree_float8.o btree_cash.o btree_oid.o btree_ts.o btree_time.o \
              btree_date.o btree_interval.o btree_macaddr.o btree_inet.o btree_text.o \
              btree_bytea.o btree_bit.o btree_numeric.o

DATA_built  = btree_gist.sql
DATA        = uninstall_btree_gist.sql

REGRESS     = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz time timetz \
              date interval macaddr inet cidr text varchar char bytea bit varbit numeric not_equal

ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/btree_gist
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
@


1.12
log
@Remove references to READMEs from /contrib Makefiles.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/btree_gist/Makefile,v 1.11 2007/06/26 22:05:01 tgl Exp $
d14 1
a14 1
              date interval macaddr inet cidr text varchar char bytea bit varbit numeric
@


1.11
log
@Fix PGXS conventions so that extensions can be built against Postgres
installations whose pg_config program does not appear first in the PATH.
Per gripe from Eddie Stanley and subsequent discussions with Fabien Coelho
and others.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/btree_gist/Makefile,v 1.10 2007/02/09 17:03:59 petere Exp $
a11 1
DOCS        = README.btree_gist
@


1.10
log
@Add $PostgreSQL$ marker to contrib makefiles.
@
text
@d1 1
a1 1
# $PostgreSQL$
d18 2
a19 1
PGXS := $(shell pg_config --pgxs)
@


1.9
log
@contrib uninstall scripts

by David Fetter
@
text
@d1 1
@


1.8
log
@PGXS should be set with := not =, as specified in the documentation,
to avoid useless multiple executions of pg_config.
@
text
@d10 1
@


1.7
log
@> Please find enclose a submission to fix these problems.
>
> The patch adds missing the "libpgport.a" file to the installation under
> "install-all-headers". It is needed by some contribs. I install the
> library in "pkglibdir", but I was wondering whether it should be "libdir"?
> I was wondering also whether it would make sense to have a "libpgport.so"?
>
> It fixes various macros which are used by contrib makefiles, especially
> libpq_*dir and LDFLAGS when used under PGXS. It seems to me that they are
> needed to
>
> It adds the ability to test and use PGXS with contribs, with "make
> USE_PGXS=1". Without the macro, this is exactly as before, there should be
> no difference, esp. wrt the vpath feature that seemed broken by previous
> submission. So it should not harm anybody, and it is useful at least to me.
>
> It fixes some inconsistencies in various contrib makefiles
> (useless override, ":=" instead of "=").

Fabien COELHO
@
text
@d16 1
a16 1
PGXS = $(shell pg_config --pgxs)
@


1.6
log
@New version. Add support for int2, int8, float4, float8, timestamp with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST
@
text
@a1 4
subdir = contrib/btree_gist
top_builddir = ../..
include $(top_builddir)/src/Makefile.global

d15 7
d23 1
@


1.5
log
@please apply attached patch to current CVS.
btree_gist now supports int2 !
Thanks Janko Richter for contribution.
@
text
@d6 1
a6 5
MODULE_big = btree_gist
OBJS= btree_common.o btree_int2.o btree_int4.o btree_int8.o btree_float4.o btree_float8.o btree_ts.o
DATA_built = btree_gist.sql
DOCS = README.btree_gist
REGRESS = btree_gist
d8 4
a11 1
EXTRA_CLEAN = btree_int2.c btree_int4.c btree_int8.c btree_float4.c btree_float8.c 
d13 2
a14 1
include $(top_srcdir)/contrib/contrib-global.mk
d16 2
a17 2
btree_int2.c: btree_num.c.in
	sed 's,__DEFINE_BTREE_TYPE_HERE__,BTREE_GIST_INT2,g;s,__BTREE_GIST_TYPE__,int16,g;s,__BTREE_GIST_TYPE2__,int2,g' < $<  > $@@
d19 1
a19 11
btree_int4.c: btree_num.c.in
	sed 's,__DEFINE_BTREE_TYPE_HERE__,BTREE_GIST_INT4,g;s,__BTREE_GIST_TYPE__,int32,g;s,__BTREE_GIST_TYPE2__,int4,g' < $<  > $@@

btree_int8.c: btree_num.c.in
	sed 's,__DEFINE_BTREE_TYPE_HERE__,BTREE_GIST_INT8,g;s,__BTREE_GIST_TYPE__,int64,g;s,__BTREE_GIST_TYPE2__,int8,g' < $<  > $@@

btree_float4.c: btree_num.c.in
	sed 's,__DEFINE_BTREE_TYPE_HERE__,BTREE_GIST_FLOAT4,g;s,__BTREE_GIST_TYPE__,float4,g;s,__BTREE_GIST_TYPE2__,float4,g' < $<  > $@@

btree_float8.c: btree_num.c.in
	sed 's,__DEFINE_BTREE_TYPE_HERE__,BTREE_GIST_FLOAT8,g;s,__BTREE_GIST_TYPE__,float8,g;s,__BTREE_GIST_TYPE2__,float8,g' < $<  > $@@
@


1.4
log
@We just released new version of contrib/btree_gist
(7.3 and current CVS) with support of int8, float4, float8
in addition to int4. Thanks Janko Richter for contribution.

Oleg Bartunov
@
text
@d7 1
a7 1
OBJS= btree_common.o btree_int4.o btree_int8.o btree_float4.o btree_float8.o btree_ts.o
d12 1
a12 1
EXTRA_CLEAN = btree_int4.c btree_int8.c btree_float4.c btree_float8.c 
d15 3
@


1.3
log
@To fix the perpetually broken makefiles in the contrib tree, I have
written a generic framework of rules that the contrib makefiles can
use instead of writing their own each time.  You only need to set a few
variables and off you go.
@
text
@a0 1
# $Header$
d6 2
a7 1
MODULES = btree_gist
d12 2
d15 12
@


1.2
log
@Makefile forgot to install README.btree_gist.
@
text
@d1 2
d7 4
a10 58
# override libdir to install shlib in contrib not main directory
libdir := $(libdir)/contrib

# shared library parameters
NAME= btree_gist
SO_MAJOR_VERSION= 1
SO_MINOR_VERSION= 0

override CPPFLAGS += -I$(srcdir)

OBJS= btree_gist.o

all: all-lib $(NAME).sql

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


$(NAME).sql: $(NAME).sql.in
	sed -e 's:MODULE_PATHNAME:$(libdir)/$(shlib):g' < $< > $@@

.PHONY: submake
submake:
	$(MAKE) -C $(top_builddir)/src/test/regress pg_regress

# against installed postmaster
installcheck: submake
	$(top_builddir)/src/test/regress/pg_regress btree_gist

# in-tree test doesn't work yet (no way to install my shared library)
#check: all submake
#	$(top_builddir)/src/test/regress/pg_regress --temp-install \
#	  --top-builddir=$(top_builddir) btree_gist
check:
	@@echo "'make check' is not supported."
	@@echo "Do 'make install', then 'make installcheck' instead."

install: all installdirs install-lib
	$(INSTALL_DATA) $(srcdir)/README.$(NAME)  $(docdir)/contrib
	$(INSTALL_DATA) $(NAME).sql $(datadir)/contrib

installdirs:
	$(mkinstalldirs) $(docdir)/contrib $(datadir)/contrib $(libdir)

uninstall: uninstall-lib
	rm -f $(docdir)/contrib/README.$(NAME) $(datadir)/contrib/$(NAME).sql

clean distclean maintainer-clean: clean-lib
	rm -f *.so y.tab.c y.tab.h $(OBJS) $(NAME).sql
# things created by various check targets
	rm -rf results tmp_check log
	rm -f regression.diffs regression.out regress.out run_check.out
ifeq ($(PORTNAME), win)
	rm -f regress.def
endif

depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend
d12 1
a12 3
ifeq (depend,$(wildcard depend))
include depend
endif
@


1.1
log
@New contrib module for BTREE emulation in GiST.
From Oleg Bartunov and Teodor Sigaev.
@
text
@d43 1
a43 1
	#$(INSTALL_DATA) $(srcdir)/README.$(NAME)  $(docdir)/contrib
@
