head	1.18;
access;
symbols
	REL7_4_29:1.14
	REL8_0_25:1.16.4.1
	REL7_4_28:1.14
	REL8_0_24:1.16.4.1
	REL7_4_27:1.14
	REL8_0_23:1.16.4.1
	REL7_4_26:1.14
	REL8_0_22:1.16.4.1
	REL7_4_25:1.14
	REL8_0_21:1.16.4.1
	REL7_4_24:1.14
	REL8_0_20:1.16.4.1
	REL7_4_23:1.14
	REL8_0_19:1.16.4.1
	REL7_4_22:1.14
	REL8_0_18:1.16.4.1
	REL7_4_21:1.14
	REL8_0_17:1.16.4.1
	REL7_4_20:1.14
	REL8_0_16:1.16.4.1
	REL7_3_21:1.14
	REL7_4_19:1.14
	REL8_0_15:1.16.4.1
	REL7_3_20:1.14
	REL7_4_18:1.14
	REL8_0_14:1.16.4.1
	REL7_3_19:1.14
	REL7_4_17:1.14
	REL8_0_13:1.16.4.1
	REL8_0_12:1.16.4.1
	REL7_3_18:1.14
	REL7_4_16:1.14
	REL8_0_11:1.16.4.1
	REL8_0_10:1.16.4.1
	REL7_4_15:1.14
	REL7_3_17:1.14
	REL8_0_9:1.16.4.1
	REL7_4_14:1.14
	REL7_3_16:1.14
	REL7_3_15:1.14
	REL7_4_13:1.14
	REL8_0_8:1.16.4.1
	REL7_3_14:1.14
	REL7_4_12:1.14
	REL8_0_7:1.16.4.1
	REL7_3_13:1.14
	REL7_4_11:1.14
	REL8_0_6:1.16.4.1
	REL7_3_12:1.14
	REL7_4_10:1.14
	REL8_0_5:1.16.4.1
	REL7_3_11:1.14
	REL7_4_9:1.14
	REL8_0_4:1.16.4.1
	REL7_2_8:1.13
	REL7_3_10:1.14
	REL7_4_8:1.14
	REL8_0_3:1.16.4.1
	REL8_0_2:1.16.4.1
	REL7_2_7:1.13
	REL7_3_9:1.14
	REL7_4_7:1.14
	REL8_0_1:1.16
	REL8_0_STABLE:1.16.0.4
	REL8_0_0:1.16.0.2
	REL8_0_0RC5:1.16
	REL8_0_0RC4:1.16
	REL8_0_0RC3:1.16
	REL8_0_0RC2:1.16
	REL8_0_0RC1:1.16
	REL8_0_0BETA5:1.16
	REL8_0_0BETA4:1.16
	REL7_4_6:1.14
	REL7_3_8:1.14
	REL7_2_6:1.13
	REL8_0_0BETA3:1.16
	REL8_0_0BETA2:1.16
	REL7_2_5:1.13
	REL7_4_5:1.14
	REL7_3_7:1.14
	REL7_4_4:1.14
	REL8_0_0BETA1:1.15
	REL7_4_3:1.14
	REL7_4_2:1.14
	REL7_3_6:1.14
	REL7_4_1:1.14
	REL7_3_5:1.14
	REL7_4:1.14
	REL7_4_RC2:1.14
	REL7_4_STABLE:1.14.0.6
	REL7_4_RC1:1.14
	REL7_4_BETA5:1.14
	REL7_4_BETA4:1.14
	REL7_4_BETA3:1.14
	REL7_4_BETA2:1.14
	WIN32_DEV:1.14.0.4
	REL7_4_BETA1:1.14
	REL7_3_4:1.14
	REL7_3_2:1.14
	REL7_2_4:1.13
	REL7_3_STABLE:1.14.0.2
	REL7_2_3:1.13
	REL7_2_STABLE:1.13.0.2
	REL7_2:1.13
	REL7_2_RC2:1.13
	REL7_2_RC1:1.13
	REL7_2_BETA5:1.13
	REL7_2_BETA4:1.13
	REL7_2_BETA3:1.13
	REL7_2_BETA2:1.13
	REL7_2_BETA1:1.13
	REL7_1_2:1.12
	REL7_1_STABLE:1.12.0.2
	REL7_1_BETA:1.11
	REL7_1_BETA3:1.11
	REL7_1_BETA2:1.11
	REL7_1:1.12
	REL7_0_PATCHES:1.4.0.2
	REL7_0:1.4
	REL6_5_PATCHES:1.3.0.2
	REL6_5:1.3
	REL6_4:1.2.0.2;
locks; strict;
comment	@# @;


1.18
date	2005.06.23.02.33.27;	author tgl;	state dead;
branches;
next	1.17;

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

1.16
date	2004.08.20.20.13.03;	author momjian;	state Exp;
branches
	1.16.4.1;
next	1.15;

1.15
date	2003.11.29.19.51.35;	author pgsql;	state Exp;
branches;
next	1.14;

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

1.13
date	2001.09.06.10.49.29;	author petere;	state Exp;
branches;
next	1.12;

1.12
date	2001.02.20.19.20.27;	author petere;	state Exp;
branches;
next	1.11;

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

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

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

1.8
date	2000.07.09.13.13.03;	author petere;	state Exp;
branches;
next	1.7;

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

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

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

1.4
date	2000.01.22.23.05.14;	author tgl;	state Exp;
branches;
next	1.3;

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

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

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

1.16.4.1
date	2005.03.25.18.18.37;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.18
log
@Move findoidjoins out of contrib and into src/tools, which is a more
logical place for it since it is of no use to users.  Per recent
discussions on cleaning up contrib.
@
text
@# $PostgreSQL: pgsql/contrib/findoidjoins/Makefile,v 1.17 2005/03/25 18:17:10 momjian Exp $

PROGRAM = findoidjoins
OBJS	= findoidjoins.o

PG_CPPFLAGS = -I$(libpq_srcdir)
PG_LIBS = $(libpq_pgport)

SCRIPTS = make_oidjoins_check
DOCS = README.findoidjoins

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


1.17
log
@Have libpgport link before libpq so that PG client applications are more
immunte to changes in libpq's usage of pgport between major versions.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/findoidjoins/Makefile,v 1.16 2004/08/20 20:13:03 momjian Exp $
@


1.16
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/findoidjoins/Makefile,v 1.15 2003/11/29 19:51:35 pgsql Exp $
d7 1
a7 1
PG_LIBS = $(libpq)
@


1.16.4.1
log
@Have libpgport link before libpq so that PG client applications are more
immunte to changes in libpq's usage of pgport between major versions.

Backpatch to 8.0.X.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/findoidjoins/Makefile,v 1.16 2004/08/20 20:13:03 momjian Exp $
d7 1
a7 1
PG_LIBS = $(libpq_pgport)
@


1.15
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d1 1
a1 5
# $PostgreSQL: /cvsroot/pgsql-server/contrib/findoidjoins/Makefile,v 1.14 2002/09/05 19:57:32 tgl Exp $

subdir = contrib/findoidjoins
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
d12 7
d20 1
@


1.14
log
@findoidjoins is updated for schemas, does not use libpgeasy.
From Joe Conway.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/contrib/findoidjoins/Makefile,v 1.13 2001/09/06 10:49:29 petere Exp $
@


1.13
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: /home/projects/pgsql/cvsroot/pgsql/contrib/findoidjoins/Makefile,v 1.12 2001/02/20 19:20:27 petere Exp $
d10 2
a11 5
libpgeasy_srcdir = $(top_srcdir)/src/interfaces/libpgeasy
libpgeasy_builddir = $(top_builddir)/src/interfaces/libpgeasy

PG_CPPFLAGS = -I$(libpgeasy_srcdir) -I$(libpq_srcdir)
PG_LIBS = -L$(libpgeasy_builddir) -lpgeasy $(libpq)
@


1.12
log
@Make sure -L and -I's for our source tree are always before system include
or library directories on the command line.
@
text
@d1 1
a1 3
#
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/findoidjoins/Makefile,v 1.11 2000/12/04 01:32:18 tgl Exp $
#
d7 3
d13 2
a14 22
override CPPFLAGS := -I$(libpgeasy_srcdir) -I$(libpq_srcdir) $(CPPFLAGS)

OBJS	= findoidjoins.o

all: findoidjoins

findoidjoins: $(OBJS) $(libpgeasy_builddir)/libpgeasy.a $(libpq_builddir)/libpq.a
	$(CC) $(CFLAGS) $(OBJS) -L$(libpgeasy_builddir) -lpgeasy $(libpq) $(LDFLAGS) $(LIBS) -o $@@

install: all installdirs
	$(INSTALL_PROGRAM) findoidjoins$(X)	$(bindir)
	$(INSTALL_SCRIPT) make_oidjoins_check	$(bindir)
	$(INSTALL_DATA) README.findoidjoins	$(docdir)/contrib

installdirs:
	$(mkinstalldirs) $(bindir) $(docdir)/contrib

uninstall:
	rm -f $(bindir)/findoidjoins$(X) $(bindir)/make_oidjoins_check $(docdir)/contrib/README.findoidjoins

clean distclean maintainer-clean:
	rm -f findoidjoins$(X) $(OBJS)
d16 2
a17 2
depend dep:
	$(CC) -MM -MG $(CFLAGS) *.c > depend
d19 1
a19 3
ifeq (depend,$(wildcard depend))
include depend
endif
@


1.11
log
@Fix bogus makefiles ... these didn't build on platforms that are sticky
about being given accurate references to referenced libraries ...
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/findoidjoins/Makefile,v 1.10 2000/10/20 21:03:06 petere Exp $
d9 4
a12 1
override CPPFLAGS += -I$(libpgeasy_srcdir) -I$(libpq_srcdir)
d19 1
a19 1
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(libpgeasy) $(libpq) $(LIBS) -o $@@
@


1.10
log
@Add support for VPATH builds, that is, building somewhere else than in the
source directory.  This involves mostly makefiles using $(srcdir) when they
might have used ".".  (Regression tests don't work with this, yet.)

Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS).  Add "override" keyword
in most places, to preserve necessary flags even when the user overrode the
flags.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/findoidjoins/Makefile,v 1.9 2000/08/31 16:08:59 petere Exp $
d10 2
a11 1
override LIBS += $(libpgeasy)
d15 3
d30 8
a37 1
	rm -f findoidjoins$(X)
@


1.9
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/findoidjoins/Makefile,v 1.8 2000/07/09 13:13:03 petere Exp $
d7 1
a7 1
include ../../src/Makefile.global
d9 2
a10 2
CFLAGS	+= -I$(libpgeasy_srcdir) -I$(libpq_srcdir)
LIBS	+= $(libpgeasy)
@


1.8
log
@Another round of those unportable config/build changes :-/

* Add option to build with OpenSSL out of the box. Fix thusly exposed
  bit rot. Although it compiles now, getting this to do something
  useful is left as an exercise.

* Fix Kerberos options to defer checking for required libraries until
  all the other libraries are checked for.

* Change default odbcinst.ini and krb5.srvtab path to PREFIX/etc.

* Install work around for Autoconf's install-sh relative path anomaly.
  Get rid of old INSTL_*_OPTS variables, now that we don't need them
  anymore.

* Use `gunzip -c' instead of g?zcat. Reportedly broke on AIX.

* Look for only one of readline.h or readline/readline.h, not both.

* Make check for PS_STRINGS cacheable. Don't test for the header files
  separately.

* Disable fcntl(F_SETLK) test on Linux.

* Substitute the standard GCC warnings set into CFLAGS in configure,
  don't add it on in Makefile.global.

* Sweep through contrib tree to teach makefiles standard semantics.

... and in completely unrelated news:

* Make postmaster.opts arbitrary options-aware. I still think we need to
  save the environment as well.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/findoidjoins/Makefile,v 1.7 2000/06/19 13:53:22 momjian Exp $
d9 2
a10 2
CFLAGS	+= -I$(LIBPGEASYDIR) -I$(LIBPQDIR)
LIBS	+= $(LIBPGEASY)
@


1.7
log
@Update to /contrib from Karel.
@
text
@d2 1
a2 1
# $Header$
d5 3
a7 1
TOPDIR=../..
d9 2
a10 1
include ../Makefile.global
d12 1
a12 1
NAME	= findoidjoins
d14 4
a17 7
PROGRAM	= $(NAME)
OBJS	= $(NAME).o
DOCS	= README.$(NAME)
SQLS	= 
BINS    = $(PROGRAM) make_oidjoins_check
EXAMPLES=
MODS	= 
d19 2
a20 1
CFLAGS += -I$(LIBPGEASYDIR) -I$(LIBPQDIR)
d22 2
a23 1
OTHER_CLEAN = 
d25 2
a26 28

all: $(PROGRAM)

$(PROGRAM): $(OBJS) $(LIBPGEASYDIR)/libpgeasy.a 
	$(CC) $(CFLAGS) -o $@@ $(OBJS) $(LIBPGEASY) 


install: install_doc nstall_bin

install_doc:
	for inst_file in $(DOCS); do \
		$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR); \
	done

install_bin:
	for inst_file in $(BINS); do \
		$(INSTALL) $(INSTL_EXE_OPTS) $$inst_file $(CONTRIB_BINDIR); \
	done

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

clean:
	$(RM) *~ $(OBJS) $(MODS) $(PROGRAM) depend $(OTHER_CLEAN) core log

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


1.6
log
@Cleanup README Makefile installs.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/findoidjoins/Makefile,v 1.5 2000/06/15 18:54:49 momjian Exp $
d13 1
a13 1
DOCS	= README
d34 1
a34 1
		$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR)/$(DOCS).$(NAME); \
@


1.5
log
@/contrib patch from Karel.
@
text
@d2 1
a2 1
# $Header$
d13 1
a13 1
DOCS	= $(NAME).doc
d34 1
a34 1
		$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR); \
@


1.4
log
@findoidjoins was suffering from bit rot (pginterface no
longer in expected location).
@
text
@d2 1
a2 1
# Makefile, requires src/interfaces/libpgeasy
a3 2
#
INSTALLDIR = /usr/local/pgsql
d5 31
a35 5
TARGET = findoidjoins
PGEASY = ../../src/interfaces/libpgeasy
CFLAGS = -g -Wall -I. -I$(PGEASY) -I$(INSTALLDIR)/include
LIBPGEASY = $(PGEASY)/libpgeasy.a
LDFLAGS = -L$(INSTALLDIR)/lib -lpq
d37 4
a40 1
all : $(TARGET)
d42 2
a43 2
findoidjoins:	findoidjoins.c $(LIBPGEASY)
	gcc -o $@@ $(CFLAGS) $^ $(LDFLAGS)
d46 1
a46 4
	rm -f *.o $(TARGET) log core

install:
	install -s -o bin -g bin $(TARGET) $(INSTALLDIR)/bin
d48 3
@


1.3
log
@Update findoidjoins for 6.5: remove workaround for long-dead bug,
use NOT EXISTS() which is a lot faster than NOT IN (),
update documentation.
@
text
@d2 1
a2 1
# Makefile, requires pgsql/contrib/pginterface
d5 2
a6 1
PGINTERFACE = ../pginterface/pginterface.o ../pginterface/halt.o # these have to be in your library search path
d8 4
a11 2
CFLAGS = -g -Wall -I. -I../pginterface -I../../src/interfaces/libpq  -I/usr/local/pgsql/include
LDFLAGS = -L/usr/local/pgsql/lib -lpq
d15 2
a16 2
findoidjoins:	$(PGINTERFACE) findoidjoins.c
	gcc -o $@@ $(CFLAGS) $@@.c $(PGINTERFACE) $(LDFLAGS)
d22 1
a22 1
	install -s -o bin -g bin $(TARGET) /usr/local/pgsql/bin
@


1.2
log
@Add new make_oidjoin_check utility and template1_check.sql.  Fix some
pg_operator problems.
@
text
@d7 1
a7 1
CFLAGS = -g -Wall -I. -I../../src/interfaces/libpq  -I/usr/local/pgsql/include
@


1.1
log
@New findoidjoins examines oid columns to find join relationships.
@
text
@d5 1
a5 1
PGINTERFACE = pginterface.o halt.o # these have to be in your library search path
@
