head	1.17;
access;
symbols
	REL7_4_29:1.15
	REL7_4_28:1.15
	REL7_4_27:1.15
	REL7_4_26:1.15
	REL7_4_25:1.15
	REL7_4_24:1.15
	REL7_4_23:1.15
	REL7_4_22:1.15
	REL7_4_21:1.15
	REL7_4_20:1.15
	REL7_3_21:1.15
	REL7_4_19:1.15
	REL7_3_20:1.15
	REL7_4_18:1.15
	REL7_3_19:1.15
	REL7_4_17:1.15
	REL7_3_18:1.15
	REL7_4_16:1.15
	REL7_4_15:1.15
	REL7_3_17:1.15
	REL7_4_14:1.15
	REL7_3_16:1.15
	REL7_3_15:1.15
	REL7_4_13:1.15
	REL7_3_14:1.15
	REL7_4_12:1.15
	REL7_3_13:1.15
	REL7_4_11:1.15
	REL7_3_12:1.15
	REL7_4_10:1.15
	REL7_3_11:1.15
	REL7_4_9:1.15
	REL7_2_8:1.14
	REL7_3_10:1.15
	REL7_4_8:1.15
	REL7_2_7:1.14
	REL7_3_9:1.15
	REL7_4_7:1.15
	REL7_4_6:1.15
	REL7_3_8:1.15
	REL7_2_6:1.14
	REL7_2_5:1.14
	REL7_4_5:1.15
	REL7_3_7:1.15
	REL7_4_4:1.15
	REL7_4_3:1.15
	REL7_4_2:1.15
	REL7_3_6:1.15
	REL7_4_1:1.15
	REL7_3_5:1.15
	REL7_4:1.15
	REL7_4_RC2:1.15
	REL7_4_STABLE:1.15.0.6
	REL7_4_RC1:1.15
	REL7_4_BETA5:1.15
	REL7_4_BETA4:1.15
	REL7_4_BETA3:1.15
	REL7_4_BETA2:1.15
	WIN32_DEV:1.15.0.4
	REL7_4_BETA1:1.15
	REL7_3_4:1.15
	REL7_3_2:1.15
	REL7_2_4:1.14
	REL7_3_STABLE:1.15.0.2
	REL7_2_3:1.14
	REL7_2_STABLE:1.14.0.4
	REL7_2:1.14
	REL7_2_RC2:1.14
	REL7_2_RC1:1.14
	REL7_2_BETA5:1.14
	REL7_2_BETA4:1.14
	REL7_2_BETA3:1.14
	REL7_2_BETA2:1.14
	REL7_2_BETA1:1.14
	REL7_1_2:1.14
	REL7_1_STABLE:1.14.0.2
	REL7_1_BETA:1.12
	REL7_1_BETA3:1.12
	REL7_1_BETA2:1.12
	REL7_1:1.14
	REL7_0_PATCHES:1.6.0.2
	REL7_0:1.6
	REL6_5_PATCHES:1.3.0.2
	REL6_5:1.3
	REL6_4:1.2.0.2;
locks; strict;
comment	@# @;


1.17
date	2004.04.20.00.40.06;	author momjian;	state dead;
branches;
next	1.16;

1.16
date	2003.11.29.19.52.05;	author pgsql;	state Exp;
branches;
next	1.15;

1.15
date	2002.07.27.20.10.05;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2001.03.23.05.46.05;	author ishii;	state Exp;
branches;
next	1.13;

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

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

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

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

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

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

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

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

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

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

1.3
date	99.06.05.10.27.31;	author ishii;	state Exp;
branches;
next	1.2;

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

1.1
date	98.07.24.03.32.10;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.17
log
@Remove pg_encoding.  Not needed anymore since we have an initdb in C.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for src/bin/pg_encoding
#
# Copyright (c) 1998, PostgreSQL Global Development Group
#
# $PostgreSQL: pgsql-server/src/bin/pg_encoding/Makefile,v 1.16 2003/11/29 19:52:05 pgsql Exp $
#
#-------------------------------------------------------------------------

subdir = src/bin/pg_encoding
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

OBJS= pg_encoding.o

all: submake-libpq submake-libpgport pg_encoding

pg_encoding: $(OBJS)
	$(CC) $(CFLAGS) $^ $(libpq) $(LDFLAGS) $(LIBS) -o $@@

install: all installdirs
	$(INSTALL_PROGRAM) pg_encoding$(X) $(DESTDIR)$(bindir)/pg_encoding$(X)

installdirs:
	$(mkinstalldirs) $(DESTDIR)$(bindir)

uninstall:
	rm -f $(DESTDIR)$(bindir)/pg_encoding$(X)

clean distclean maintainer-clean:
	rm -f pg_encoding$(X) pg_encoding.o
@


1.16
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
# $PostgreSQL: /cvsroot/pgsql-server/src/bin/pg_encoding/Makefile,v 1.15 2002/07/27 20:10:05 petere Exp $
@


1.15
log
@Assemble portability modules into libpgport library.
Some makefile simplifications.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/bin/pg_encoding/Makefile,v 1.14 2001/03/23 05:46:05 ishii Exp $
@


1.14
log
@Add checking for strtoul. SunOS4 does not have it.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_encoding/Makefile,v 1.13 2001/02/20 19:20:28 petere Exp $
d17 1
a17 8
all: submake pg_encoding

ifdef STRTOUL
OBJS+=$(top_builddir)/src/backend/port/strtoul.o

$(top_builddir)/src/backend/port/strtoul.o:
	$(MAKE) -C $(top_builddir)/src/backend/port strtoul.o
endif
a21 5
.PHONY: submake

submake:
	$(MAKE) -C $(libpq_builddir) all

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

a32 4

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


1.13
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/bin/pg_encoding/Makefile,v 1.12 2000/11/30 20:36:11 petere Exp $
d18 7
@


1.12
log
@Make all commands that link a program look like

$(CC) $(CFLAGS) $(LDFLAGS) <object files> <extra-libraries> $(LIBS) -o $@@

This form seemed to be the most portable, readable, and logical, but in any
case it's better than having a dozen different ones in the tree.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_encoding/Makefile,v 1.11 2000/09/17 13:02:37 petere Exp $
d20 1
a20 1
	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(libpq) $(LIBS) -o $@@
@


1.11
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/bin/pg_encoding/Makefile,v 1.10 2000/08/31 16:11:15 petere Exp $
d17 1
a17 1
all: submake pg_encoding$(X)
d19 2
a20 2
pg_encoding$(X): $(OBJS)
	$(CC) -o $@@ $(OBJS) $(libpq) $(LDFLAGS) $(CFLAGS)
@


1.10
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/bin/pg_encoding/Makefile,v 1.9 2000/06/28 18:29:21 petere Exp $
d28 1
a28 1
	$(INSTALL_PROGRAM) pg_encoding$(X) $(bindir)/pg_encoding$(X)
d31 1
a31 1
	$(mkinstalldirs) $(bindir)
d34 1
a34 1
	rm -f $(bindir)/pg_encoding$(X)
@


1.9
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/bin/pg_encoding/Makefile,v 1.8 2000/06/27 00:31:17 petere Exp $
d13 1
a13 1
include ../../Makefile.global
d20 1
a20 1
	$(CC) -o $@@ $(OBJS) $(LIBPQ) $(LDFLAGS) $(CFLAGS)
d25 1
a25 1
	$(MAKE) -C $(LIBPQDIR) all
@


1.8
log
@Makefile cleanup for bin and pl subtrees. They should now support
all the standard semantics. Also get rid of Makefile.in's on the
way and instead declare all variables in Makefile.global.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_encoding/Makefile,v 1.7 2000/05/29 05:45:44 tgl Exp $
d25 1
a25 1
	$(MAKE) -C $(LIBPQDIR) libpq.a
@


1.7
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
@d3 1
a3 1
#    Makefile for bin/pg_encoding
d5 1
a5 1
# Copyright (c) 1998, PostgreSQL development group
d7 1
a7 3
#
# IDENTIFICATION
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_encoding/Makefile,v 1.6 2000/03/31 14:14:32 momjian Exp $
d11 3
a13 2
SRCDIR= ../..
include $(SRCDIR)/Makefile.global
d17 1
a17 1
all: submake pg_encoding
d19 2
a20 2
pg_encoding: $(OBJS)
	$(CC) -o pg_encoding $(OBJS) $(LIBPQ) $(LDFLAGS) $(CFLAGS)
d27 8
a34 2
install: pg_encoding
	$(INSTALL) $(INSTL_EXE_OPTS) pg_encoding$(X) $(BINDIR)/pg_encoding$(X)
d39 1
a39 1
clean: 
@


1.6
log
@I have tested the beta3 on WinNT and here are the results:
- I was unable to compile ecpg due to the ":=" instead of "=" in defining
LIBPQDIR and some other variables in Makefile.global.in
- pg_id (and also pg_encoding) executable was not removed during "make
clean" - there was no $(X) appended to the executable name for rm
- I have added result for int2, int4, float8 and geometry regression tests
        - int2, int2 - yet another message for too large numbers ;-)
        - float8 - it is problably a bug in the newlib C library - it has no
error message for numbers with exponent -400
        - geometry - differences in precision of float numbers
- I have added appropriate lines into resultmap file
- I have modified the script regress.sh to use "case" statement when testing
the hostname. For cygwin the script is called with "i686-pc-cygwin" (on my
machine) as a parameter and this was not catched with the "if" statement.
The check was done for PORTNAME (win) and not HOSTNAME (i.86-pc-cygwin*).

The patch for described modifications is included.

All this modifications can be applied to "current" tree too.
The compilation was done on CygwinB20.1 with gcc 2.95, cygipc library 1.05.
The binaries were able to run also on the newest development snapshot
(2000-03-25).

                        Dan
@
text
@d9 1
a9 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_encoding/Makefile,v 1.5 2000/03/08 01:58:20 momjian Exp $
d14 1
a14 4
include ../../Makefile.global

# This is a bit of hackery here: pg_encoding uses backend includes and the
# frontend library.
a16 1
CFLAGS:= -I$(SRCDIR)/include $(CFLAGS)
@


1.5
log
@I've made a diff against the 7.0beta1 tree that accomplishes several things:

        1) adds NetBSD shared lib support on both ELF and a.out platforms

        2) replaces "-L$(LIBPQDIR) -lpq" with "$(LIBPQ)" defined in
           Makefile.global.  This makes it much easier to build stuff in
           the source tree after you've already installed the libraries.

        3) adds TEMPLATEDIR in Makefile.global that indicates where the
           database templates are stored.  This separates the template files
           from real libraries that are installed in $(LIBDIR).
        4) changes include order of <readline/readline.h> and <readline.h>.
           The latest GNU readline installs its headers under a readline
           subdirectory.

In addition to applying the patch below the following files need to be copied:

        backend/port/dynloader:
                bsd.h -> netbsd.h
                bsd.c -> netbsd.c
        include/port:
                bsd.h -> netbsd.h
        makefiles:
                Makefile.bsd -> Makefile.netbsd

It would be great to see this incorporated into the source tree before
the 7.0 release is cut.

        Thanks!

     -- Johnny C. Lam <lamj@@stat.cmu.edu>
@
text
@d9 1
a9 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_encoding/Makefile,v 1.4 2000/01/15 18:30:32 petere Exp $
d39 1
a39 1
	rm -f pg_encoding pg_encoding.o
@


1.4
log
@- Allow array on int8
- Prevent permissions on indexes
- Instituted --enable-multibyte option and tweaked the MB build process where necessary
- initdb prompts for superuser password
@
text
@d9 1
a9 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_encoding/Makefile,v 1.3 1999/06/05 10:27:31 ishii Exp $
d25 1
a25 1
	$(CC) -o pg_encoding $(OBJS) -L$(LIBPQDIR) -lpq $(LDFLAGS) $(CFLAGS)
@


1.3
log
@a fix for Win32 support provided by yutaka@@marin.or.jp.
	The patch will avoid to add .exe suffix to the pg_encoding
	binary.
@
text
@d9 1
a9 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_encoding/Makefile,v 1.2 1998/07/26 04:31:18 scrappy Exp $
d16 3
d20 3
d24 2
a25 1
CFLAGS+= $(MBFLAGS) -I$(SRCDIR)/include
d27 1
a27 1
all: pg_encoding
d29 2
a30 2
pg_encoding: $(OBJS) $(LIBPQDIR)/libpq.a
	$(CC) -o pg_encoding $(OBJS) -L$(LIBPQDIR) -lpq $(LDFLAGS)
@


1.2
log
@
From: t-ishii@@sra.co.jp

As Bruce mentioned, this is due to the conflict among changes we made.
Included patches should fix the problem(I changed all MB to
MULTIBYTE). Please let me know if you have further problem.

P.S. I did not include pathces to configure and gram.c to save the
file size(configure.in and gram.y modified).
@
text
@d9 1
a9 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_encoding/Makefile,v 1.1 1998/07/24 03:32:10 scrappy Exp $
d26 1
a26 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_encoding $(BINDIR)/pg_encoding
@


1.1
log
@
I really hope that I haven't missed anything in this one...

From: t-ishii@@sra.co.jp

Attached are patches to enhance the multi-byte support.  (patches are
against 7/18 snapshot)

* determine encoding at initdb/createdb rather than compile time

Now initdb/createdb has an option to specify the encoding. Also, I
modified the syntax of CREATE DATABASE to accept encoding option. See
README.mb for more details.

For this purpose I have added new column "encoding" to pg_database.
Also pg_attribute and pg_class are changed to catch up the
modification to pg_database.  Actually I haved added pg_database_mb.h,
pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is
enabled. The reason having separate files is I couldn't find a way to
use ifdef or whatever in those files. I have to admit it looks
ugly. No way.

* support for PGCLIENTENCODING when issuing COPY command

commands/copy.c modified.

* support for SQL92 syntax "SET NAMES"

See gram.y.

* support for LATIN2-5
* add UNICODE regression test case
* new test suite for MB

New directory test/mb added.

* clean up source files

Basic idea is to have MB's own subdirectory for easier maintenance.
These are include/mb and backend/utils/mb.
@
text
@d9 1
a9 1
#    $Header: /mnt1/local/src/repository/pgsql/src/bin/pg_encoding/Makefile,v 1.1 1998/07/20 10:12:33 t-ishii Exp $
d18 1
a18 1
CFLAGS+= -DMB=$(MB) -I$(SRCDIR)/include
@
