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


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

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

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

1.12
date	2006.09.10.21.38.26;	author tgl;	state Exp;
branches;
next	1.11;

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

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

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

1.8
date	2003.11.29.19.51.34;	author pgsql;	state Exp;
branches;
next	1.7;

1.7
date	2002.09.14.20.28.54;	author tgl;	state Exp;
branches;
next	1.6;

1.6
date	2002.09.03.04.01.05;	author tgl;	state Exp;
branches;
next	1.5;

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

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

1.3
date	2001.06.20.00.04.43;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	2001.06.18.21.38.01;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	2001.06.14.16.49.03;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Remove references to READMEs from /contrib Makefiles.
@
text
@# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.14 2007/06/26 22:05:01 tgl Exp $

MODULE_big = dblink
PG_CPPFLAGS = -I$(libpq_srcdir)
OBJS	= dblink.o
SHLIB_LINK = $(libpq)

DATA_built = dblink.sql 
DATA = uninstall_dblink.sql 
REGRESS = dblink


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


1.14
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/dblink/Makefile,v 1.13 2006/09/10 22:07:02 tgl Exp $
a9 1
DOCS = README.dblink
@


1.13
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
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.12 2006/09/10 21:38:26 tgl Exp $
d15 2
a16 1
PGXS := $(shell pg_config --pgxs)
@


1.12
log
@Fix dblink build for --enable-nls or --enable-openssl on AIX.
Per Chris Browne.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.11 2006/02/27 12:54:38 petere Exp $
a22 3

# Apparently AIX requires that we mention everything libpq depends on :-(
SHLIB_LINK += $(filter -lintl -lssl -lcrypto, $(LIBS))
@


1.11
log
@contrib uninstall scripts

by David Fetter
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.10 2005/09/27 17:13:01 tgl Exp $
d23 3
@


1.10
log
@PGXS should be set with := not =, as specified in the documentation,
to avoid useless multiple executions of pg_config.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/dblink/Makefile,v 1.9 2004/08/20 20:13:03 momjian Exp $
d9 1
@


1.9
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
@d1 1
a1 1
# $PostgreSQL: pgsql-server/contrib/dblink/Makefile,v 1.8 2003/11/29 19:51:34 pgsql Exp $
d14 1
a14 1
PGXS = $(shell pg_config --pgxs)
@


1.8
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d1 1
a1 5
# $PostgreSQL: /cvsroot/pgsql-server/contrib/dblink/Makefile,v 1.7 2002/09/14 20:28:54 tgl Exp $

subdir = contrib/dblink
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
d12 8
d21 1
@


1.7
log
@The attached adds GRANTs to PUBLIC for dblink functions, removes the
non-standard regression test, and adds standard installcheck regression test
support.

The test creates a second database (regression_slave) and drops it again, in
order to avoid the cheesy-ness of connecting back to the same database ;-)

Joe Conway
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/contrib/dblink/Makefile,v 1.6 2002/09/03 04:01:05 tgl Exp $
@


1.6
log
@Clean out cruft left by nonstandard test procedure.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/contrib/dblink/Makefile,v 1.5 2002/06/23 21:58:07 momjian Exp $
d14 1
a14 2

EXTRA_CLEAN = dblink.test.out dblink.test.diff
@


1.5
log
@Add dbmirror to /contrib.  Minor C cleanups and Makefile.

Steven Singer
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql/contrib/dbmirror/Makefile,v 1.4 2001/09/06 10:49:29 petere Exp $
d14 2
@


1.4
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
@d1 1
a1 1
# $Header$
@


1.3
log
@Attached is a patch to deal with the ones that I missed the first time
around.  I tested this patch under Cygwin and Linux.

Note that I only changed dblink's Makefile in the most minimal way
to fix the link problem under Cygwin (i.e., use the link rule from
Makefile.shlib instead).  dblink's Makefile should probably be further
patched to be consistent with the other PostgreSQL Makefiles.

Jason Tishler
@
text
@d1 2
a5 36
include_srcdir = $(top_builddir)/src/include


NAME	:= dblink
SONAME	:= $(NAME)$(DLSUFFIX)

override CFLAGS += -I$(srcdir)
override CFLAGS += -I$(include_srcdir)
override CFLAGS += -I$(libpq_srcdir)
override CFLAGS += $(CFLAGS_SL)
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)

OBJS	= $(NAME).o

SHLIB_LINK= $(libpq)

all: $(OBJS) $(SONAME) $(NAME).sql 

include $(top_builddir)/src/Makefile.shlib

$(OBJS):  $(NAME).c
	$(CC) -o $@@ -c $(CFLAGS) $<

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

install: all installdirs
	$(INSTALL_DATA) README.$(NAME)	$(docdir)/contrib
	$(INSTALL_DATA) $(NAME).sql	$(datadir)/contrib
	$(INSTALL_SHLIB) $(SONAME)	$(libdir)/contrib

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

uninstall:
	rm -rf $(docdir)/contrib/README.$(NAME) $(datadir)/contrib/$(NAME).sql $(libdir)/contrib/$(SONAME)
d7 4
a10 2
clean distclean maintainer-clean:
	rm -f $(SONAME) *.o *.sql
d12 2
a13 2
depend dep:
	$(CC) -MM -MG $(CFLAGS) *.c > depend
d15 1
a15 3
ifeq (depend,$(wildcard depend))
include depend
endif
@


1.2
log
@The attached patch enables the contrib subtree to build cleanly under
Cygwin with the possible exception of mSQL-interface.  Since I don't
have mSQL installed, I skipped this tool.

Except for dealing with a missing getopt.h (oid2name) and HUGE (seg),
the bulk of the patch uses the standard PostgreSQL approach to deal with
Windows DLL issues.

I tested the build aspect of this patch under Cygwin and Linux without
any ill affects.  Note that I did not actually attempt to test the code
for functionality.

The procedure to apply the patch is as follows:

    $ # save the attachment as /tmp/contrib.patch
    $ # change directory to the top of the PostgreSQL source tree
    $ patch -p0 </tmp/contrib.patch

Jason
@
text
@a3 1
include $(top_builddir)/src/Makefile.shlib
d18 2
d22 2
a25 3

$(SONAME):  $(OBJS)
	$(LD) -o $@@ -Bshareable $(libpq) $<
@


1.1
log
@Allow remote query execution (dblink)

Joe Conway
@
text
@d15 1
@
