head	1.37;
access;
symbols
	REL7_4_29:1.33.2.1
	REL7_4_28:1.33.2.1
	REL7_4_27:1.33.2.1
	REL7_4_26:1.33.2.1
	REL7_4_25:1.33.2.1
	REL7_4_24:1.33.2.1
	REL7_4_23:1.33.2.1
	REL7_4_22:1.33.2.1
	REL7_4_21:1.33.2.1
	REL7_4_20:1.33.2.1
	REL7_3_21:1.27.2.1
	REL7_4_19:1.33.2.1
	REL7_3_20:1.27.2.1
	REL7_4_18:1.33.2.1
	REL7_3_19:1.27.2.1
	REL7_4_17:1.33.2.1
	REL7_3_18:1.27.2.1
	REL7_4_16:1.33.2.1
	REL7_4_15:1.33.2.1
	REL7_3_17:1.27.2.1
	REL7_4_14:1.33.2.1
	REL7_3_16:1.27.2.1
	REL7_3_15:1.27.2.1
	REL7_4_13:1.33.2.1
	REL7_3_14:1.27.2.1
	REL7_4_12:1.33.2.1
	REL7_3_13:1.27.2.1
	REL7_4_11:1.33.2.1
	REL7_3_12:1.27.2.1
	REL7_4_10:1.33.2.1
	REL7_3_11:1.27.2.1
	REL7_4_9:1.33.2.1
	REL7_2_8:1.26
	REL7_3_10:1.27.2.1
	REL7_4_8:1.33.2.1
	REL7_2_7:1.26
	REL7_3_9:1.27.2.1
	REL7_4_7:1.33.2.1
	REL7_4_6:1.33.2.1
	REL7_3_8:1.27.2.1
	REL7_2_6:1.26
	REL7_2_5:1.26
	REL7_4_5:1.33.2.1
	REL7_3_7:1.27.2.1
	REL7_4_4:1.33.2.1
	REL7_4_3:1.33.2.1
	REL7_4_2:1.33.2.1
	REL7_3_6:1.27.2.1
	REL7_4_1:1.33
	REL7_3_5:1.27.2.1
	REL7_4:1.33
	REL7_4_RC2:1.33
	REL7_4_STABLE:1.33.0.2
	REL7_4_RC1:1.33
	REL7_4_BETA5:1.32
	REL7_4_BETA4:1.32
	REL7_4_BETA3:1.30
	REL7_4_BETA2:1.30
	WIN32_DEV:1.30.0.2
	REL7_4_BETA1:1.30
	REL7_3_4:1.27.2.1
	REL7_3_2:1.27.2.1
	REL7_2_4:1.26
	REL7_3_STABLE:1.27.0.2
	REL7_2_3:1.26
	REL7_2_STABLE:1.26.0.2
	REL7_2:1.26
	REL7_2_RC2:1.26
	REL7_2_RC1:1.26
	REL7_2_BETA5:1.26
	REL7_2_BETA4:1.26
	REL7_2_BETA3:1.26
	REL7_2_BETA2:1.26
	REL7_2_BETA1:1.26
	REL7_1_2:1.25
	REL7_1_STABLE:1.25.0.2
	REL7_1_BETA:1.24
	REL7_1_BETA3:1.24
	REL7_1_BETA2:1.24
	REL7_1:1.25
	REL2_0B:1.6.0.2
	REL2_0:1.6
	Release_2_0_0:1.2
	Release_1_0_3:1.2.0.2
	Release_2_0:1.2
	Release_1_0_2:1.2
	PG95-1_01:1.1.1.1
	PG95_DIST:1.1.1;
locks; strict;
comment	@# @;


1.37
date	2004.04.20.00.33.52;	author pgsql;	state dead;
branches;
next	1.36;

1.36
date	2004.02.10.07.26.25;	author tgl;	state Exp;
branches;
next	1.35;

1.35
date	2003.11.30.06.09.48;	author momjian;	state Exp;
branches;
next	1.34;

1.34
date	2003.11.29.19.52.11;	author pgsql;	state Exp;
branches;
next	1.33;

1.33
date	2003.10.28.21.55.58;	author tgl;	state Exp;
branches
	1.33.2.1;
next	1.32;

1.32
date	2003.09.27.20.38.19;	author tgl;	state Exp;
branches;
next	1.31;

1.31
date	2003.09.27.19.35.32;	author tgl;	state Exp;
branches;
next	1.30;

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

1.29
date	2002.12.11.04.07.39;	author momjian;	state Exp;
branches;
next	1.28;

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

1.27
date	2002.07.27.20.10.05;	author petere;	state Exp;
branches
	1.27.2.1;
next	1.26;

1.26
date	2001.05.11.01.46.33;	author momjian;	state Exp;
branches;
next	1.25;

1.25
date	2001.02.20.19.20.29;	author petere;	state Exp;
branches;
next	1.24;

1.24
date	2000.10.31.14.37.25;	author petere;	state Exp;
branches;
next	1.23;

1.23
date	2000.10.20.21.04.10;	author petere;	state Exp;
branches;
next	1.22;

1.22
date	2000.09.25.22.23.00;	author petere;	state Exp;
branches;
next	1.21;

1.21
date	2000.09.17.13.02.49;	author petere;	state Exp;
branches;
next	1.20;

1.20
date	2000.08.31.16.11.45;	author petere;	state Exp;
branches;
next	1.19;

1.19
date	2000.06.28.18.29.43;	author petere;	state Exp;
branches;
next	1.18;

1.18
date	98.01.13.04.18.01;	author scrappy;	state dead;
branches;
next	1.17;

1.17
date	97.10.28.15.13.10;	author vadim;	state Exp;
branches;
next	1.16;

1.16
date	97.09.27.19.35.04;	author momjian;	state Exp;
branches;
next	1.15;

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

1.14
date	97.09.16.18.47.19;	author momjian;	state Exp;
branches;
next	1.13;

1.13
date	97.09.14.23.34.13;	author momjian;	state Exp;
branches;
next	1.12;

1.12
date	97.04.02.18.13.47;	author scrappy;	state Exp;
branches;
next	1.11;

1.11
date	97.03.25.09.19.41;	author scrappy;	state Exp;
branches;
next	1.10;

1.10
date	97.03.17.22.05.08;	author scrappy;	state Exp;
branches;
next	1.9;

1.9
date	97.01.23.16.04.25;	author scrappy;	state Exp;
branches;
next	1.8;

1.8
date	97.01.10.18.55.14;	author momjian;	state Exp;
branches;
next	1.7;

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

1.6
date	96.11.13.10.35.31;	author bryanh;	state Exp;
branches;
next	1.5;

1.5
date	96.11.12.11.42.09;	author bryanh;	state Exp;
branches;
next	1.4;

1.4
date	96.11.08.00.58.07;	author scrappy;	state Exp;
branches;
next	1.3;

1.3
date	96.10.30.06.18.36;	author scrappy;	state Exp;
branches;
next	1.2;

1.2
date	96.07.23.03.38.42;	author scrappy;	state Exp;
branches;
next	1.1;

1.1
date	96.07.09.06.22.16;	author scrappy;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.07.09.06.22.16;	author scrappy;	state Exp;
branches;
next	;

1.27.2.1
date	2002.12.11.04.08.05;	author momjian;	state Exp;
branches;
next	;

1.33.2.1
date	2004.02.10.07.26.48;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.37
log
@
Remove all of the libpgtcl and pgtclsh files, including all references to
them within the various makefiles

with_tcl is still required for the src/pl/tcl language
@
text
@#-------------------------------------------------------------------------
#
# Makefile for libpgtcl library
#
# Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.36 2004/02/10 07:26:25 tgl Exp $
#
#-------------------------------------------------------------------------

subdir = src/interfaces/libpgtcl
top_builddir = ../../..
include ../../Makefile.global

NAME= pgtcl
SO_MAJOR_VERSION= 2
SO_MINOR_VERSION= 5

override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS) $(TCL_INCLUDE_SPEC)

OBJS= pgtcl.o pgtclCmds.o pgtclId.o

SHLIB_LINK = $(libpq) $(TCL_LIB_SPEC) $(TCL_LIBS) \
	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt, $(LIBS)) $(THREAD_LIBS)

all: submake-libpq all-lib

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

install: all installdirs install-headers install-lib

.PHONY: install-headers
install-headers: libpgtcl.h
	$(INSTALL_DATA) $< $(DESTDIR)$(includedir)/libpgtcl.h

installdirs:
	$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)

uninstall: uninstall-lib
	rm -f $(DESTDIR)$(includedir)/libpgtcl.h

clean distclean maintainer-clean: clean-lib
	rm -f $(OBJS)

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

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


1.36
log
@Repair missing inclusions of -lintl for shared libraries.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.35 2003/11/30 06:09:48 momjian Exp $
@


1.35
log
@Bump all version numbers and version stamps mentioned in RELEASE_CHANGES.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.34 2003/11/29 19:52:11 pgsql Exp $
d24 1
a24 1
	$(filter -lssl -lcrypto -lkrb5 -lcrypt, $(LIBS)) $(THREAD_LIBS)
@


1.34
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
# $PostgreSQL: /cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.33 2003/10/28 21:55:58 tgl Exp $
d17 1
a17 1
SO_MINOR_VERSION= 4
@


1.33
log
@Include -lkrb5 when needed for shlibs depending on libpq.  Per report
from Johan Henselmans.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.32 2003/09/27 20:38:19 tgl Exp $
@


1.33.2.1
log
@Repair missing inclusions of -lintl for shared libraries.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.33 2003/10/28 21:55:58 tgl Exp $
d24 1
a24 1
	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt, $(LIBS)) $(THREAD_LIBS)
@


1.32
log
@Got the link order wrong :-(
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.31 2003/09/27 19:35:32 tgl Exp $
d24 1
a24 1
	$(filter -lssl -lcrypto -lcrypt, $(LIBS)) $(THREAD_LIBS)
@


1.31
log
@Adjust Darwin build to use the default 'two level namespace' linking
method.  Fix a number of places where shared libraries were linked without
mentioning all the libraries they depend on; the Darwin and AIX ports
are known to require this, and it doesn't seem to hurt any other supported
platforms.  (Hence, remove code in pl/tcl makefile that tried to avoid
mentioning other libs if not needed.)
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.30 2002/12/30 17:19:52 tgl Exp $
d23 1
a23 1
SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) $(libpq) \
@


1.30
log
@Make use of TCL_INCLUDE_SPEC if available (it's new in Tcl 8.4, too bad
it took 'em this long to realize it's needed...)
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.29 2002/12/11 04:07:39 momjian Exp $
d23 2
a24 6
SHLIB_LINK = $(libpq)

# If crypt is a separate library, rather than part of libc, it may need
# to be referenced separately to keep (broken) linkers happy.  (This is
# braindead; users of libpq should not need to know what it depends on.)
SHLIB_LINK+= $(filter -L%, $(LDFLAGS)) $(filter -lcrypt, $(LIBS))
@


1.29
log
@Bump version for 7.3 and 7.4.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.28 2002/12/04 18:14:11 momjian Exp $
d19 1
a19 1
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
@


1.28
log
@Stamp minor version numbers for 7.4 release.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.27 2002/07/27 20:10:05 petere Exp $
d17 1
a17 1
SO_MINOR_VERSION= 3
@


1.27
log
@Assemble portability modules into libpgport library.
Some makefile simplifications.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.26 2001/05/11 01:46:33 momjian Exp $
d17 1
a17 1
SO_MINOR_VERSION= 2
@


1.27.2.1
log
@Bump version for 7.3 and 7.4.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v 1.27 2002/07/27 20:10:05 petere Exp $
d17 1
a17 1
SO_MINOR_VERSION= 3
@


1.26
log
@Stamp CVS as 7.2.  Update all interface version numbers.  This is the
time to do it, not during beta because people are using this stuff in
production sometimes.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.25 2001/02/20 19:20:29 petere Exp $
d30 1
a30 5
all: submake all-lib

.PHONY: submake
submake:
	$(MAKE) -C $(libpq_builddir) all
@


1.25
log
@Make sure -L and -I's for our source tree are always before system include
or library directories on the command line.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.24 2000/10/31 14:37:25 petere Exp $
d17 1
a17 1
SO_MINOR_VERSION= 1
@


1.24
log
@Use $(filter ...), not $(findstring ...).
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.23 2000/10/20 21:04:10 petere Exp $
d19 1
a19 1
override CPPFLAGS += -I$(libpq_srcdir)
d23 1
a23 1
SHLIB_LINK+= $(libpq)
d28 1
a28 1
SHLIB_LINK+= $(filter -lcrypt, $(LIBS))
@


1.23
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
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.22 2000/09/25 22:23:00 petere Exp $
d28 1
a28 1
SHLIB_LINK+= $(findstring -lcrypt,$(LIBS))
@


1.22
log
@Revise Tcl/Tk configuration.  Make missing Tcl after --with-tcl an error,
add --without-tk option to disable Tk.  We don't need the AC_PATH_XTRA
test because tkConfig.sh already contains all the information about how to
compile and link with X.  Also make sure that libpq is up to date for
libpgtcl.  Remove executable bits from pgaccess.sh, but add it to pgaccess.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.21 2000/09/17 13:02:49 petere Exp $
d19 1
a19 1
CPPFLAGS += -I$(libpq_srcdir)
@


1.21
log
@Support for DESTDIR make variable. This is used as in `make install
DESTDIR=/else/where' and prepends the value of DESTDIR to the full
installation paths (e.g., /else/where/usr/local/pgsql/bin). This allows
users to install the package into a location different from the one that
was configured and hard-coded into various scripts, e.g., for creating
binary packages.

DESTDIR is in many cases preferrable over `make install
prefix=/else/where' because

a) `prefix' affects the path that is hard-coded into the files, which can
lead to a `make install prefix=xxx' (as done by the regression test
driver) corrupting the files in the source tree with wrong paths.

b) it doesn't work at all if a directory was overridden to not depend on
`prefix', e.g., --sysconfdir=/etc.

(Updating the regression test driver to use DESTDIR is a separate
undertaking.)

See also autoconf@@gnu.org, From: Akim Demaille <akim@@epita.fr>, Date: 08
Sep 2000 12:48:59 +0200, Message-ID:
<mv4em2vb1lw.fsf@@nostromo.lrde.epita.fr>, Subject: Re: HTML format
documentation.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.20 2000/08/31 16:11:45 petere Exp $
d30 5
a34 1
all: all-lib
@


1.20
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
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.19 2000/06/28 18:29:43 petere Exp $
d39 1
a39 1
	$(INSTALL_DATA) $< $(includedir)/libpgtcl.h
d42 1
a42 1
	$(mkinstalldirs) $(libdir) $(includedir)
d45 1
a45 1
	rm -f $(includedir)/libpgtcl.h
@


1.19
log
@Makefile cleanup for interface tree. Now essentially with all the
standard targets and behaviour. Replaced Makefile.in's with
Makefile's and declared the respective variables in Makefile.global.

maintainer-clean target now available at top level, although it does
not work in the backend tree yet.

Cleanup pass over Makefile.shlib, renamed some targets and variables.
The shared library symlink tests are now done by make, not the shell.

ecpg: Remove one warning in sloppy flex output.

PL/Perl and Perl interface: the MakeMaker documentation is confusing,
the realclean target *does* "delete derived files", but it also
uninstalls them. Don't use that.

The submake targets in the various bin directories that update libpq
should `make all', not `make libpq.a'. That is a) unportable, and
b) doesn't build the shared library.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile.in,v 1.44 2000/06/17 00:10:05 petere Exp $
d19 1
a19 1
CFLAGS+= -I$(LIBPQDIR)
d23 1
a23 1
SHLIB_LINK+= $(LIBPQ)
@


1.18
log
@Various fixes resulting from removing the PORTNAME defines

From: Tom I Helbekkmo <tih@@Hamartun.Priv.NO>
@
text
@d3 1
a3 2
# Makefile
#    Makefile for libpgtcl library
d7 1
a7 3
#
# IDENTIFICATION
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.17 1997/10/28 15:13:10 vadim Exp scrappy $
d11 7
a17 34
SRCDIR= ../..
include $(SRCDIR)/Makefile.global

INCLUDE_OPT= \
             -I$(SRCDIR)/backend \
             -I$(SRCDIR)/include \
             -I$(LIBPQDIR) \
             -I$(TCL_INCDIR)

CFLAGS+= $(INCLUDE_OPT)
ifdef KRBVERS
CFLAGS+= $(KRBFLAGS)
endif

# Shared library stuff

install-shlib-dep :=
shlib             := 

ifeq ($(PORTNAME), linux)
  ifdef LINUX_ELF
    install-shlib-dep	:= install-shlib
    shlib		:= libpgtcl.so.1
    CFLAGS		+= $(CFLAGS_SL)
    LDFLAGS_SL		= -shared -L $(SRCDIR)/interfaces/libpq -lpq
  endif
endif

ifeq ($(PORTNAME), BSD44_derived)
  install-shlib-dep	:= install-shlib
  shlib			:= libpgtcl.so.1.0
  LDFLAGS_SL		= -x -Bshareable -Bforcearchive
  CFLAGS		+= $(CFLAGS_SL)
endif
d19 1
a19 6
ifeq ($(PORTNAME), i386_solaris)
  install-shlib-dep	:= install-shlib
  shlib			:= libpgtcl.so.1
  LDFLAGS_SL		= -G -z text
  CFLAGS		+= $(CFLAGS_SL)
endif
d23 1
d25 4
a28 1
all: libpgtcl.a $(shlib)
d30 1
a30 7
libpgtcl.a: $(OBJS)
ifdef MK_NO_LORDER
	$(AR) $(AROPT) libpgtcl.a $(OBJS)
else
	$(AR) $(AROPT) libpgtcl.a `lorder $(OBJS) | tsort`
endif
	$(RANLIB) libpgtcl.a
d32 2
a33 3
$(shlib): $(OBJS)
	$(LD) $(LDFLAGS_SL) -o $@@ $(OBJS) 
	ln -sf $@@ libpgtcl.so
d35 1
a35 2
.PHONY: beforeinstall-headers install-headers
.PHONY: install install-libpgtcl
d37 3
a39 1
install: install-headers install-libpgtcl $(install-shlib-dep)
d41 2
a42 2
install-headers: beforeinstall-headers libpgtcl.h
	$(INSTALL) $(INSTLOPTS) libpgtcl.h $(HEADERDIR)/libpgtcl.h
d44 2
a45 2
beforeinstall-headers:
	@@if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi
d47 2
a48 2
install-libpgtcl: libpgtcl.a
	$(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.a $(DESTDIR)$(LIBDIR)/libpgtcl.a
d50 2
a51 4
install-shlib: $(shlib)
	$(INSTALL) $(INSTL_LIB_OPTS) $(shlib) \
		$(DESTDIR)$(LIBDIR)/$(shlib)
	ln -sf $(shlib) $(DESTDIR)$(LIBDIR)/libpgtcl.so
d53 3
a55 3
.PHONY: clean
clean: 
	rm -f $(OBJS) $(shlib) libpgtcl.a libpgtcl.so
@


1.17
log
@Added support for shlib for BSD44_derived & i386_solaris.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.16 1997/09/27 19:35:04 momjian Exp $
@


1.16
log
@Changed location of libpgtcl stuff.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.15 1997/09/23 00:02:44 momjian Exp $
d28 3
a31 1
install-shlib-dep :=
d35 4
a38 6
    ifeq ($(CC), gcc)
      CFLAGS += -fpic -fPIC
    endif
    shlib             := libpgtcl.so.1
    install-shlib-dep := install-shlib
    LDFLAGS           += -L $(SRCDIR)/interfaces/libpq -lpq
d42 7
d50 4
a53 1
  CFLAGS+= -fPIC
d69 3
a71 4
libpgtcl.so.1: $(OBJS)
	$(CC) $(LDFLAGS) -shared $(OBJS) -o libpgtcl.so.1
	rm -f libpgtcl.so
	ln -s libpgtcl.so.1 libpgtcl.so
d87 4
a90 5
install-shlib: libpgtcl.so.1
	$(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.so.1 \
		$(DESTDIR)$(LIBDIR)/libpgtcl.so.1
	rm -f $(DESTDIR)$(LIBDIR)/libpgtcl.so
	ln -s libpgtcl.so.1 $(DESTDIR)$(LIBDIR)/libpgtcl.so
d94 1
a94 1
	rm -f $(OBJS)
@


1.15
log
@Cleanup.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.14 1997/09/16 18:47:19 momjian Exp $
d38 1
a38 1
    LDFLAGS           += -L ../../libpq -lpq
@


1.14
log
@Makefile cleanup.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.13 1997/09/14 23:34:13 momjian Exp $
d15 1
a15 1
:nclude $(SRCDIR)/Makefile.global
@


1.13
log
@-Linux configure additoin, libtcl Makefile patch.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/interfaces/libpgtcl/Makefile,v 1.12 1997/04/02 18:13:47 scrappy Exp $
d15 1
a15 1
include ../../Makefile.global
d18 2
a19 2
             -I../../backend \
             -I../../include \
@


1.12
log
@From: Oleg Bartunov <oleg@@sai.msu.su>
Subject: [HACKERS] locale patches !

Hi there,

here are little patches to get Postgres 6.1 works with locale stuff.
This is a patch against 970402.tar.gz, there are no problem to apply them
by hand to 6.0 release. Collate stuff tested about 1-2 months in real
working database but I'm sure there must be no problem. US hackers
could vote against locale implementation ( locale for sure will affect to
speed of postgres ), so I introduce variable USE_LOCALE which
controls locale stuff. Non-US users now could use ~* operator
for searching and <order by> for strings with nation alphabet.
Please, don't forget, as I did first time, to set environment variable
LC_CTYPE and LC_COLLATE because backend get locale information from them.
I start postmaster from a little script, assuming that shell is Bash shell
it looks like:

#!/bin/sh

export LC_CTYPE=koi8-r
export LC_COLLATE=koi8-r
postmaster -B 1024 -S -D/usr/local/pgsql/data/ -o '-Fe'
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.11 1997/03/25 09:19:41 scrappy Exp $
d14 2
a15 2
SRCDIR= ..
include ../Makefile.global
d18 2
a19 2
             -I../backend \
             -I../include \
d38 1
a38 1
    LDFLAGS           += -L ../libpq -lpq
@


1.11
log
@Various patches for shared libraries under i386-solaris by:

Christoph Kaesling <ck@@dog.pfalz.sub.de>
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.10 1997/03/17 22:05:08 scrappy Exp $
a26 5

ifeq ($(CC), gcc)
  CFLAGS+= -Wno-error
endif

@


1.10
log
@Fixes for libpgtcl from Massimo
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.9 1997/01/23 16:04:25 scrappy Exp $
d33 3
d41 3
d47 4
a52 8
ifdef LINUX_ELF
  shlib             := libpgtcl.so.1
  install-shlib-dep := install-shlib
  LDFLAGS           += -L ../libpq -lpq
else
  shlib             := 
  install-shlib-dep :=
endif
@


1.9
log
@Fix from Andrew for compiling libpgtcl...basically, switch off -Werror,
which probably isn't needed, since we are going to take off -Werror
anyway, right?
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.8 1997/01/10 18:55:14 momjian Exp $
d83 1
a83 1
		$(DESTDIR)$(LIBDIR)/libpgtcl.so
@


1.8
log
@cleanup for LINUX_ELF
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.7 1997/01/10 17:40:07 momjian Exp $
d27 5
@


1.7
log
@I found the following bugs in the version 6.0 (dated 961229).
At least the first two should be fixed before the final release of 6.0.

1)      There is a mismatch between the type declared in the catalog for
        the input/output attributes of pg_type and the actual type of
        values stored in the table.  The type of typinput, typoutput,
        typsend and typreceive are declared oid (26) while the values are
        regproc (24).  The error was there also in previous versions but
        nobody noticed it until an Assert has been added in ExecEvalVar.
        The effect is that it is now impossible to replace the typoutput
        of existing data types with new procs.

2)      The identd hba fails after the first time because the data read
        from the identd socket is not zero-terminated and strlen reports
        an incorrect length if the stack contains garbage, which usually
        happens after the first connection has been made.

3)      The new initdb wants to create itself the data directory. This
        implies that the parent directory must be writable by postgres and
        this may not always be desirable.  A better solution would be to
        allow the directory to be created by root and then filled by initdb.
        It would also nice to have some reasonable default for PGLIB and
        PGDATA like the previous version did.  This applies also to the
        postmaster executable.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.6 1996/11/13 10:35:31 bryanh Exp $
d28 6
a33 2
ifdef LINUX_ELF
CFLAGS += -fPIC
@


1.6
log
@Eliminate MKDIR, srcdir, objdir.  Centralize setting of LIBPQDIR.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.4 1996/11/08 00:58:07 scrappy Exp $
d34 10
a43 1
all: libpgtcl.a
d53 5
d61 1
a61 1
install: install-headers install-libpgtcl
d71 6
@


1.5
log
@End of the make file simplifications.
@
text
@a14 1
LIBPQDIR= $(SRCDIR)/libpq
d60 1
a60 1
	rm -f $(OBJS)@


1.4
log
@There is a problem in the Makefile of libpgtcl on linux (and maybe also on
other platforms).  If I do the standard make + make install the shared library
is not linked with the the libpq library and when I try to load it in the
standard Tcl or Tk shell I get a lot of unresolved symbols.  The bug doesn't
affect pgtclsh because it is linked also with libpq. The problem exists only
when using the dynamic load feature of Tcl7.5.


From: Massimo Dal Zotto <dz@@cs.unitn.it>
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.3 1996/10/30 06:18:36 scrappy Exp $
d14 9
a22 13
LIB=	pgtcl

MKDIR=	../mk
include $(MKDIR)/postgres.mk

CFLAGS+= -I$(HEADERDIR) \
	 -I$(srcdir)/backend/include \
	 -I$(srcdir)/backend \
	 -I$(CURDIR) \
	 -I$(TCL_INCDIR) \
	 -I$(srcdir)/libpq

LIBLDLIBS+= -L$(LIBDIR) -lpq
d24 1
a30 1
CC += -L $(POSTGRESDIR)/lib -lpq
d33 1
a33 1
LIBSRCS= pgtcl.c pgtclCmds.c pgtclId.c
d35 16
a50 1
install-headers:
d53 2
d56 2
a57 3
install:: install-headers

include $(MKDIR)/postgres.lib.mk
d59 3
@


1.3
log
@Changes to libpgtcl submitted by: wieck@@sapserv.debis.de (Jan Wieck)

Adds:

    -lAttributes

        Returns another format of the results attribute list. Per
        attribute a sublist  of  {{attname}  atttype  attlen}  is
        returned  and  an  empty  string  if  no attributes where
        received.

    -numAttrs

        Returns the number of attributes in the result.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.2 1996/07/23 03:38:42 scrappy Exp $
d30 5
@


1.2
log
@Last changes to src from Dr. George *wipes brow*
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/libpgtcl/Makefile,v 1.1.1.1 1996/07/09 06:22:16 scrappy Exp $
d25 2
@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/postgres95/src/libpgtcl/Makefile,v 1.1.1.1 1996/07/09 05:32:38 scrappy Exp $
d23 2
a24 1
	 -I$(TCL_INCDIR)
@


1.1.1.1
log
@Postgres95 1.01 Distribution - Virgin Sources
@
text
@@
