head	1.5;
access;
symbols
	REL7_0_PATCHES:1.1.0.2
	REL7_0:1.1;
locks; strict;
comment	@# @;


1.5
date	2000.09.18.20.11.36;	author petere;	state dead;
branches;
next	1.4;

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

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

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

1.1
date	2000.04.11.15.53.13;	author thomas;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Move contrib/odbc/odbc.sql together with odbc driver, remove old files;
revise ODBC "installation instructions"; update some other outdated
documentation; update contrib documentation
@
text
@# ODBC extensions
# Thomas Lockhart 2000-04-03

subdir = contrib/odbc
top_builddir = ../..
include $(top_builddir)/src/Makefile.global

ifndef PGLIB
  PGLIB= .
endif

CFLAGS+= $(CFLAGS_SL)

TARGETS_7= odbc.sql
TARGETS_PRE7= odbc$(DLSUFFIX) odbc-pre7.sql

TARGETS= $(TARGETS_7)

CLEANFILES+= $(TARGETS) $(TARGETS_PRE7)

all: $(TARGETS)

install: all
ifneq ($(filter odbc$(DLSUFFIX), $(TARGETS)),)
	-test -d $(PGLIB) || $(INSTALL) -d $(PGLIB)
	$(INSTALL) odbc$(DLSUFFIX) $(PGLIB)
endif

pre7:
	$(MAKE) TARGETS="$(TARGETS) $(TARGETS_PRE7)"

install-pre7:
	$(MAKE) TARGETS="$(TARGETS) $(TARGETS_PRE7)" install

odbc-pre7.sql: odbc-pre7.source odbc.sql
	rm -f $@@; \
	cat $^ \
	| sed -e "s:_OBJWD_:$(PGLIB):g" \
	      -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
	      -e "s:float(15):float8:g" > $@@

%.sql: %.source
	rm -f $@@; \
	sed -e "s:_OBJWD_:$(PGLIB):g" \
	    -e "s:_DLSUFFIX_:$(DLSUFFIX):g" < $< > $@@

clean:
	rm -f $(TARGETS) *.o
@


1.4
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
@@


1.3
log
@Automatic dependency tracking

The .DEFAULT rule in backend/Makefile is harmful -- removed.
Replace `::' rules by `:'.
@
text
@d4 3
a6 3
SRCDIR= ../../src

include $(SRCDIR)/Makefile.global
@


1.2
log
@Generated header files parse.h and fmgroids.h are now copied into
the src/include tree, so that -I backend is no longer necessary anywhere.
Also, clean up some bit rot in contrib tree.
@
text
@d21 1
a21 1
all:: $(TARGETS)
@


1.1
log
@Internal functions to support newest ODBC driver {fn ...} conventions.
Includes compiled code to support pre-7.0 backends, but for 7.0 only
requires executing odbc.sql.
@
text
@d12 1
a12 1
CFLAGS+= $(CFLAGS_SL) -I$(SRCDIR)/include
@

