head	1.22;
access;
symbols
	REL7_4_29:1.20
	REL7_4_28:1.20
	REL7_4_27:1.20
	REL7_4_26:1.20
	REL7_4_25:1.20
	REL7_4_24:1.20
	REL7_4_23:1.20
	REL7_4_22:1.20
	REL7_4_21:1.20
	REL7_4_20:1.20
	REL7_3_21:1.20
	REL7_4_19:1.20
	REL7_3_20:1.20
	REL7_4_18:1.20
	REL7_3_19:1.20
	REL7_4_17:1.20
	REL7_3_18:1.20
	REL7_4_16:1.20
	REL7_4_15:1.20
	REL7_3_17:1.20
	REL7_4_14:1.20
	REL7_3_16:1.20
	REL7_3_15:1.20
	REL7_4_13:1.20
	REL7_3_14:1.20
	REL7_4_12:1.20
	REL7_3_13:1.20
	REL7_4_11:1.20
	REL7_3_12:1.20
	REL7_4_10:1.20
	REL7_3_11:1.20
	REL7_4_9:1.20
	REL7_2_8:1.20
	REL7_3_10:1.20
	REL7_4_8:1.20
	REL7_2_7:1.20
	REL7_3_9:1.20
	REL7_4_7:1.20
	REL7_4_6:1.20
	REL7_3_8:1.20
	REL7_2_6:1.20
	REL7_2_5:1.20
	REL7_4_5:1.20
	REL7_3_7:1.20
	REL7_4_4:1.20
	REL7_4_3:1.20
	REL7_4_2:1.20
	REL7_3_6:1.20
	REL7_4_1:1.20
	REL7_3_5:1.20
	REL7_4:1.20
	REL7_4_RC2:1.20
	REL7_4_STABLE:1.20.0.10
	REL7_4_RC1:1.20
	REL7_4_BETA5:1.20
	REL7_4_BETA4:1.20
	REL7_4_BETA3:1.20
	REL7_4_BETA2:1.20
	WIN32_DEV:1.20.0.8
	REL7_4_BETA1:1.20
	REL7_3_4:1.20
	REL7_3_2:1.20
	REL7_2_4:1.20
	REL7_3_STABLE:1.20.0.6
	REL7_2_3:1.20
	REL7_2_STABLE:1.20.0.4
	REL7_2:1.20
	REL7_2_RC2:1.20
	REL7_2_RC1:1.20
	REL7_2_BETA5:1.20
	REL7_2_BETA4:1.20
	REL7_2_BETA3:1.20
	REL7_2_BETA2:1.20
	REL7_2_BETA1:1.20
	REL7_1_2:1.20
	REL7_1_STABLE:1.20.0.2
	REL7_1_BETA:1.20
	REL7_1_BETA3:1.20
	REL7_1_BETA2:1.20
	REL7_1:1.20
	REL7_0_PATCHES:1.16.0.2
	REL7_0:1.16
	REL6_5_PATCHES:1.12.0.2
	REL6_5:1.12
	REL6_4:1.11.0.2
	release-6-3:1.7
	REL2_0B:1.3.0.2
	REL2_0:1.3
	Release_2_0_0:1.1.1.1
	Release_1_0_3:1.1.1.1.0.2
	Release_2_0:1.1.1.1
	Release_1_0_2:1.1.1.1
	PG95-1_01:1.1.1.1
	PG95_DIST:1.1.1;
locks; strict;
comment	@# @;


1.22
date	2003.12.17.18.44.09;	author petere;	state dead;
branches;
next	1.21;

1.21
date	2003.11.29.19.52.05;	author pgsql;	state Exp;
branches;
next	1.20;

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

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

1.18
date	2000.08.31.16.11.17;	author petere;	state Exp;
branches;
next	1.17;

1.17
date	2000.06.27.00.31.20;	author petere;	state Exp;
branches;
next	1.16;

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

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

1.14
date	2000.01.20.21.51.07;	author petere;	state Exp;
branches;
next	1.13;

1.13
date	2000.01.19.20.08.31;	author petere;	state dead;
branches;
next	1.12;

1.12
date	99.01.17.06.19.10;	author momjian;	state Exp;
branches;
next	1.11;

1.11
date	98.04.06.16.51.04;	author momjian;	state Exp;
branches;
next	1.10;

1.10
date	98.04.06.01.15.24;	author momjian;	state Exp;
branches;
next	1.9;

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

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

1.7
date	98.01.04.19.12.11;	author scrappy;	state Exp;
branches;
next	1.6;

1.6
date	97.04.26.05.05.20;	author scrappy;	state Exp;
branches;
next	1.5;

1.5
date	97.04.04.10.41.26;	author scrappy;	state Exp;
branches;
next	1.4;

1.4
date	97.02.06.02.31.25;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	96.11.12.06.10.10;	author bryanh;	state Exp;
branches;
next	1.2;

1.2
date	96.11.11.13.41.08;	author bryanh;	state Exp;
branches;
next	1.1;

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

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


desc
@@


1.22
log
@Remove pg_id.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for src/bin/pg_id
#
# Copyright (C) 2000 by PostgreSQL Global Development Team
#
# $PostgreSQL: pgsql-server/src/bin/pg_id/Makefile,v 1.21 2003/11/29 19:52:05 pgsql Exp $
#
#-------------------------------------------------------------------------

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

all: pg_id

pg_id: pg_id.o
	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@@

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

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

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

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

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

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


1.21
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
# $PostgreSQL: /cvsroot/pgsql-server/src/bin/pg_id/Makefile,v 1.20 2000/11/30 20:36:11 petere Exp $
@


1.20
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_id/Makefile,v 1.19 2000/09/17 13:02:39 petere Exp $
@


1.19
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_id/Makefile,v 1.18 2000/08/31 16:11:17 petere Exp $
d15 1
a15 1
all: pg_id$(X)
d17 2
a18 2
pg_id$(X): pg_id.o
	$(CC) -o $@@ $^ $(LDFLAGS)
@


1.18
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_id/Makefile,v 1.17 2000/06/27 00:31:20 petere Exp $
d21 1
a21 1
	$(INSTALL_PROGRAM) pg_id$(X) $(bindir)/pg_id$(X)
d24 1
a24 1
	$(mkinstalldirs) $(bindir)
d27 1
a27 1
	rm -f $(bindir)/pg_id$(X)
@


1.17
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_id/Makefile,v 1.16 2000/03/31 14:14:32 momjian Exp $
d13 1
a13 1
include ../../Makefile.global
@


1.16
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
@d3 1
a3 2
# Makefile
#    Makefile for bin/pg_id
d7 1
a7 1
# $Header: /usr/local/cvsroot/pgsql/src/bin/pg_id/Makefile,v 1.15 2000/02/09 16:23:42 momjian Exp $
d11 2
a12 1
SRCDIR= ../..
d15 1
a15 1
OBJS= pg_id.o
d17 2
a18 1
all: pg_id
d20 2
a21 2
pg_id: $(OBJS)
	$(CC) -o pg_id $(OBJS) $(LDFLAGS)
d23 5
a27 2
install: pg_id
	$(INSTALL) $(INSTL_EXE_OPTS) pg_id$(X) $(BINDIR)/pg_id$(X)
d32 2
a33 2
clean:
	rm -f pg_id$(X) $(OBJS)
@


1.15
log
@I checked the WinNT port yesterday (a few days old snapshot from CVS) and I
am including a patch to get it compile.

changes to psql:
- added less as default pager when compiling on Cygwin
- need to declare "filename_completion_function" because it is not exported
from readline -> added to include/port/win.h

changes to pg_id:
- include of <getopt.h>
- add .exe when installing

I think there is a problem with calling the regress tests on WinNT - it
should be called with PORTNAME not HOST as the parameter to regress.sh or
the check  when to add "-h localhost" to psql has to be changed. Now it is
checked against the PORTNAME.

The results of the regress tests were OK with expected failures ;-)

Daniel Horak
@
text
@d8 1
a8 1
# $Header: /usr/local/cvsroot/pgsql/src/bin/pg_id/Makefile,v 1.14 2000/01/20 21:51:07 petere Exp $
d29 1
a29 1
	rm -f pg_id $(OBJS)
@


1.14
log
@Added new pg_id to fix initdb problems
New INSTALL file
Fixed a copyright notice
@
text
@d8 1
a8 1
# $Header$
d23 1
a23 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_id$(X) $(BINDIR)/pg_id
@


1.13
log
@another round of user interface cleanups
removed pg_id
fixed a few bugs in the scripts
@
text
@d3 1
a3 1
# Makefile.inc--
d6 1
a6 1
# Copyright (c) 1994, Regents of the University of California
d8 1
a8 3
#
# IDENTIFICATION
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_id/Makefile,v 1.12 1999/01/17 06:19:10 momjian Exp $
a16 8
#
# And where libpq goes, so goes the authentication stuff...
#
ifdef KRBVERS
LDFLAGS+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS)
endif

d19 2
a20 5
pg_id: $(OBJS) $(LIBPQDIR)/libpq.a
	$(CC) -o pg_id -L$(LIBPQDIR) $(OBJS) -lpq $(LDFLAGS)

$(LIBPQDIR)/libpq.a:
	$(MAKE) -C $(LIBPQDIR) libpq.a
d23 1
a23 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_id$(X) $(BINDIR)/pg_id$(X)
d28 2
a29 2
clean: 
	rm -f pg_id$(X) $(OBJS) 
@


1.12
log
@Apply Win32 patch from Horak Daniel.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_id/Makefile,v 1.11 1998/04/06 16:51:04 momjian Exp $
@


1.11
log
@DESTDIR removed, again.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_id/Makefile,v 1.10 1998/04/06 01:15:24 momjian Exp $
d36 1
a36 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_id $(BINDIR)/pg_id
d42 1
a42 1
	rm -f pg_id $(OBJS) 
@


1.10
log
@Re-introduce $DISTDIR.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_id/Makefile,v 1.9 1998/04/06 00:29:14 momjian Exp $
d36 1
a36 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_id $(DESTDIR)$(BINDIR)/pg_id
@


1.9
log
@Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_id/Makefile,v 1.8 1998/04/05 22:01:10 momjian Exp $
d36 1
a36 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_id $(BINDIR)/pg_id
@


1.8
log
@Remove DISTDIR.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_id/Makefile,v 1.7 1998/01/04 19:12:11 scrappy Exp $
d39 1
a39 1
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
@


1.7
log
@Various fixes NETBSD/sparc related

From: Tom I Helbekkmo <tih@@Hamartun.Priv.NO>
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_id/Makefile,v 1.6 1997/04/26 05:05:20 scrappy Exp $
d36 1
a36 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_id $(DESTDIR)$(BINDIR)/pg_id
@


1.6
log
@clean up the bin/*/Makefiles...up version.h to v6.1 instead of v6.0

Remove bin/Makefile.global since it wasn't actually *doing* anything
that Makefile.global hadn't already done
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/pg_id/Makefile,v 1.5 1997/04/04 10:41:26 scrappy Exp $
d18 8
@


1.5
log
@This commit represents a clean compile with the new templates under
FreeBSD

The Makefile(s) have all been cleaned up such that there is a single
LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE.  The Makefile(s)
should be alot more straightforward then they were before...and
consistent
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/pg_id/Makefile,v 1.4 1997/02/06 02:31:25 momjian Exp $
a15 1
include ../Makefile.global
@


1.4
log
@Include main Makefile.global first so variables are not over-written.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/pg_id/Makefile,v 1.3 1996/11/12 06:10:10 bryanh Exp $
d23 1
a23 1
	$(CC) $(LDFLAGS) -o pg_id -L$(LIBPQDIR) $(OBJS) -lpq $(LD_ADD)
@


1.3
log
@Add install dependency.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/pg_id/Makefile,v 1.6 1996/10/31 05:56:01 momjian Exp $
d15 1
a16 1
include ../../Makefile.global
@


1.2
log
@Makefile simplification: the "bin" chapter
@
text
@d28 1
a28 1
install:
@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/postgres95/src/bin/pg_id/Makefile,v 1.1.1.1 1996/07/09 05:32:36 scrappy Exp $
d14 7
a20 1
PROG=	pg_id
d22 8
a29 3
MKDIR=	../../mk
include $(MKDIR)/postgres.mk
include ../Makefile.global
d31 2
a32 1
SRCS=	pg_id.c
d34 2
a35 1
include $(MKDIR)/postgres.prog.mk
d37 3
@


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