head	1.23;
access;
symbols
	REL7_4_29:1.19
	REL8_0_25:1.21
	REL8_1_21:1.21
	REL7_4_28:1.19
	REL8_0_24:1.21
	REL8_1_20:1.21
	REL7_4_27:1.19
	REL8_0_23:1.21
	REL8_1_19:1.21
	REL7_4_26:1.19
	REL8_0_22:1.21
	REL8_1_18:1.21
	REL7_4_25:1.19
	REL8_0_21:1.21
	REL8_1_17:1.21
	REL7_4_24:1.19
	REL8_0_20:1.21
	REL8_1_16:1.21
	REL7_4_23:1.19
	REL8_0_19:1.21
	REL8_1_15:1.21
	REL7_4_22:1.19
	REL8_0_18:1.21
	REL8_1_14:1.21
	REL7_4_21:1.19
	REL8_0_17:1.21
	REL8_1_13:1.21
	REL7_4_20:1.19
	REL8_0_16:1.21
	REL8_1_12:1.21
	REL7_3_21:1.19
	REL7_4_19:1.19
	REL8_0_15:1.21
	REL8_1_11:1.21
	REL7_3_20:1.19
	REL7_4_18:1.19
	REL8_0_14:1.21
	REL8_1_10:1.21
	REL7_3_19:1.19
	REL7_4_17:1.19
	REL8_0_13:1.21
	REL8_1_9:1.21
	REL8_0_12:1.21
	REL8_1_8:1.21
	REL7_3_18:1.19
	REL7_4_16:1.19
	REL8_0_11:1.21
	REL8_1_7:1.21
	REL8_0_10:1.21
	REL8_1_6:1.21
	REL7_4_15:1.19
	REL7_3_17:1.19
	REL8_1_5:1.21
	REL8_0_9:1.21
	REL7_4_14:1.19
	REL7_3_16:1.19
	REL7_3_15:1.19
	REL7_4_13:1.19
	REL8_0_8:1.21
	REL8_1_4:1.21
	REL7_3_14:1.19
	REL7_4_12:1.19
	REL8_0_7:1.21
	REL8_1_3:1.21
	REL7_3_13:1.19
	REL7_4_11:1.19
	REL8_0_6:1.21
	REL8_1_2:1.21
	REL7_3_12:1.19
	REL7_4_10:1.19
	REL8_0_5:1.21
	REL8_1_1:1.21
	REL8_1_STABLE:1.21.0.6
	REL8_1_0:1.21
	REL8_1_0RC1:1.21
	REL8_1_0BETA4:1.21
	REL8_1_0BETA3:1.21
	REL7_3_11:1.19
	REL7_4_9:1.19
	REL8_0_4:1.21
	REL8_1_0BETA2:1.21
	REL8_1_0BETA1:1.21
	REL7_2_8:1.9
	REL7_3_10:1.19
	REL7_4_8:1.19
	REL8_0_3:1.21
	REL8_0_2:1.21
	REL7_2_7:1.9
	REL7_3_9:1.19
	REL7_4_7:1.19
	REL8_0_1:1.21
	REL8_0_STABLE:1.21.0.4
	REL8_0_0:1.21.0.2
	REL8_0_0RC5:1.21
	REL8_0_0RC4:1.21
	REL8_0_0RC3:1.21
	REL8_0_0RC2:1.21
	REL8_0_0RC1:1.21
	REL8_0_0BETA5:1.21
	REL8_0_0BETA4:1.21
	REL7_4_6:1.19
	REL7_3_8:1.19
	REL7_2_6:1.9
	REL8_0_0BETA3:1.21
	REL8_0_0BETA2:1.21
	REL7_2_5:1.9
	REL7_4_5:1.19
	REL7_3_7:1.19
	REL7_4_4:1.19
	REL8_0_0BETA1:1.21
	REL7_4_3:1.19
	REL7_4_2:1.19
	REL7_3_6:1.19
	REL7_4_1:1.19
	REL7_3_5:1.19
	REL7_4:1.19
	REL7_4_RC2:1.19
	REL7_4_STABLE:1.19.0.6
	REL7_4_RC1:1.19
	REL7_4_BETA5:1.19
	REL7_4_BETA4:1.19
	REL7_4_BETA3:1.19
	REL7_4_BETA2:1.19
	WIN32_DEV:1.19.0.4
	REL7_4_BETA1:1.19
	REL7_3_4:1.19
	REL7_3_2:1.19
	REL7_2_4:1.9
	REL7_3_STABLE:1.19.0.2
	REL7_2_3:1.9
	REL7_2_STABLE:1.9.0.4
	REL7_2:1.9
	REL7_2_RC2:1.9
	REL7_2_RC1:1.9
	REL7_2_BETA5:1.9
	REL7_2_BETA4:1.9
	REL7_2_BETA3:1.9
	REL7_2_BETA2:1.9
	REL7_2_BETA1:1.9
	REL7_1_2:1.9
	REL7_1_STABLE:1.9.0.2
	REL7_1_BETA:1.9
	REL7_1_BETA3:1.9
	REL7_1_BETA2:1.9
	REL7_1:1.9
	REL7_0_PATCHES:1.7.0.2
	REL7_0:1.7
	REL6_5_PATCHES:1.6.0.2
	REL6_5:1.6
	REL6_4:1.5.0.2
	release-6-3:1.4
	REL2_0B:1.3.0.2
	REL2_0:1.3;
locks; strict;
comment	@# @;


1.23
date	2006.06.22.23.50.35;	author tgl;	state dead;
branches;
next	1.22;

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

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

1.20
date	2003.11.29.19.52.15;	author pgsql;	state Exp;
branches;
next	1.19;

1.19
date	2002.11.02.02.00.35;	author momjian;	state Exp;
branches;
next	1.18;

1.18
date	2002.11.02.01.58.27;	author momjian;	state Exp;
branches;
next	1.17;

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

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

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

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

1.13
date	2002.07.16.05.46.36;	author momjian;	state dead;
branches;
next	1.12;

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

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

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

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

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

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

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

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

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

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

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

1.1
date	96.11.11.13.51.55;	author bryanh;	state Exp;
branches;
next	;


desc
@@


1.23
log
@Remove dllinit.c; it was only needed for long-obsolete Cygwin versions,
and there was some question about its copyright status.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for utils
#
# $PostgreSQL: pgsql/src/utils/Makefile,v 1.22 2005/12/09 21:19:36 petere Exp $
#
# dllinit.o is only built on Win32 platform.
#
#-------------------------------------------------------------------------

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


ifdef DLLINIT

all:

install: all installdirs
	$(INSTALL_DATA) dllinit.o $(DESTDIR)$(pgxsdir)/$(subdir)/

installdirs:
	$(mkinstalldirs) '$(DESTDIR)$(pgxsdir)/$(subdir)'

uninstall:
	rm -f $(DESTDIR)$(pgxsdir)/$(subdir)/dllinit.o

clean distclean maintainer-clean:
	rm -f dllinit.o

endif # not DLLINIT
@


1.22
log
@Allow installation into directories containing spaces in the name.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/src/utils/Makefile,v 1.21 2004/07/30 12:26:40 petere Exp $
@


1.21
log
@PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, with
some massaging by Peter Eisentraut.  This is basically a simple
generalization of the existing contrib makefiles.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql-server/src/utils/Makefile,v 1.20 2003/11/29 19:52:15 pgsql Exp $
d24 1
a24 1
	$(mkinstalldirs) $(DESTDIR)$(pgxsdir)/$(subdir)
@


1.20
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d5 1
a5 1
# $PostgreSQL: /cvsroot/pgsql-server/src/utils/Makefile,v 1.19 2002/11/02 02:00:35 momjian Exp $
d15 3
d20 9
d31 2
@


1.19
log
@Re-add Win32 missing files, I think.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/src/utils/Makefile,v 1.16 2002/10/19 02:23:26 momjian Exp $
@


1.18
log
@Re-add Win32 files.
@
text
@d1 18
@


1.17
log
@Remove /src/utils.  Is final cleanup of getopt.c resurection.
@
text
@a0 18
#-------------------------------------------------------------------------
#
# Makefile for utils
#
# $Header: /cvsroot/pgsql-server/src/utils/Makefile,v 1.16 2002/10/19 02:23:26 momjian Exp $
#
# dllinit.o is only built on Win32 platform.
#
#-------------------------------------------------------------------------

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

all:

clean distclean maintainer-clean:
	rm -f dllinit.o
@


1.16
log
@Remove mention of utils/getopt.c.  Not used anymore.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/src/utils/Makefile,v 1.15 2002/10/03 17:09:42 momjian Exp $
@


1.15
log
@The attached patch fixes a number of issues related to compiling the
client
utilities (libpq.dll and psql.exe) for win32 (missing defines,
adjustments to
includes, pedantic casting, non-existent functions) per:
   http://developer.postgresql.org/docs/postgres/install-win32.html.

It compiles cleanly under Windows 2000 using Visual Studio .net. Also
compiles clean and passes all regression tests (regular and contrib)
under Linux.

In addition to a review by the usual suspects, it would be very
desirable for  someone well versed in the peculiarities of win32 to take
a look.

Joe Conway
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/src/utils/Makefile,v 1.14 2002/07/27 20:10:05 petere Exp $
d18 1
a18 1
	rm -f dllinit.o getopt.o
@


1.14
log
@Assemble portability modules into libpgport library.
Some makefile simplifications.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql/src/utils/Makefile,v 1.9 2000/08/31 16:12:35 petere Exp $
d18 1
a18 1
	rm -f dllinit.o
@


1.13
log
@Move few remaining src/utils files to backend/port so everything is in
one place.  Everything may be moved to src/utils eventually.

Add DLLINIT variable to simplify makfiles.
@
text
@d5 1
a5 8
# $Header: /cvsroot/pgsql/src/utils/Makefile,v 1.12 2002/07/15 23:32:28 momjian Exp $
#
# About strdup:  Some systems have strdup in their standard library, others
# don't.  Ones that don't will use this make file to compile the strdup.c
# in this directory.  (You don't see strdup mentioned because the implicit
# rule does the job).  We don't make strdup.o unless asked to explicitly
# because the strdup.c in this directory may conflict with the strdup()
# prototype from the system library and cause a compile error.
a15 2
# Nothing required here.  These C files are compiled in
# directories as needed.
d18 1
a18 8
	rm -f dllinit.o strdup.o

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

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


1.12
log
@Remove indenting of Makefile comments, per Peter.\
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql/src/utils/Makefile,v 1.11 2002/07/15 22:48:54 momjian Exp $
@


1.11
log
@Remove utils/getopt.c file, not needed, it only allowed "--flag"
warnings, and we now look for getopt_long in libgetopt.a.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql/src/utils/Makefile,v 1.10 2002/07/15 21:34:05 momjian Exp $
d23 2
a24 2
	# Nothing required here.  These C files are compiled in
	# directories as needed.
@


1.10
log
@Remove certain Makefile dependencies by using full pathnames in
configure.in.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql/src/utils/Makefile,v 1.9 2000/08/31 16:12:35 petere Exp $
a13 2
# getopt.o is likewise built only on request.
#
d27 1
a27 1
	rm -f dllinit.o getopt.o strdup.o
@


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
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/utils/Makefile,v 1.8 2000/07/02 15:21:27 petere Exp $
d25 2
@


1.8
log
@Version number now set in configure, available through Makefile.global
and config.h. Adjusted all referring code.

Scrapped pg_version and changed initdb accordingly. Integrated
src/utils/version.c into src/backend/utils/init/miscinit.c. Changed all
callers.

Set version number to `7.1devel'. (Non-numeric version suffixes now allowed.)
@
text
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/utils/Makefile,v 1.7 2000/02/27 01:18:46 tgl Exp $
d22 1
a22 1
include ../Makefile.global
@


1.7
log
@Clean up dependencies for version.o.
@
text
@d3 1
a3 2
# Makefile--
#    Makefile for utils
d5 1
a5 2
# IDENTIFICATION
#    $Header: /usr/local/cvsroot/pgsql/src/utils/Makefile,v 1.6 1999/01/17 06:20:03 momjian Exp $
d20 3
a22 2
SRCDIR = ..
include $(SRCDIR)/Makefile.global
d24 1
a24 1
all: version.o
d26 2
a27 1
install:
a31 7
clean: 
	rm -f dllinit.o getopt.o strdup.o version.o

# Make sure version.o has proper dependency on version.h,
# even if we didn't do make depend.
version.o: version.c $(SRCDIR)/include/version.h

a34 1

@


1.6
log
@Apply Win32 patch from Horak Daniel.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/utils/Makefile,v 1.5 1998/04/06 00:32:26 momjian Exp $
d16 4
d23 1
a23 1
include ../Makefile.global
d33 5
a37 4
	rm -f version.o
ifeq ($(PORTNAME), win)
	rm -f dllinit.o
endif
@


1.5
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
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/utils/Makefile,v 1.4 1998/02/27 02:41:21 scrappy Exp $
d30 3
@


1.4
log
@From: Darren King <darrenk@@insightdist.com>

This patch will...

1. Remove the "-Wall" option from the ecpg/lib and ecpg/preproc Makefile.

2. Remove the addition of $(SRCDIR)/include and-or $(SRCDIR)/backend from
   ecpg/lib, ecpg/preproc, libpq and utils Makefiles. Already in CFLAGS...

3. Set MK_NO_LORDER and RANLIB in Makefile.aix to avoid a couple of extra
   steps taken care of by the 'ld' command anyways.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/utils/Makefile,v 1.3 1996/11/26 07:39:11 bryanh Exp $
d26 1
a26 1
	$(CC) -MM *.c >depend
@


1.3
log
@Whoops, redo Ultrix patch so the other ports still compile.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/utils/Makefile,v 1.2 1996/11/11 16:30:07 scrappy Exp $
a20 4
INCLUDE_OPT = -I../include

CFLAGS+=$(INCLUDE_OPT)

d26 1
a26 1
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
@


1.2
log
@Add a blank install target so that 'make install' works
@
text
@d7 8
a14 1
#    $Header: /usr/local/cvsroot/postgres95/src/utils/Makefile,v 1.1 1996/11/11 13:51:55 bryanh Exp $
@


1.1
log
@Add utils directory for cross-subsystem tools to keep make files from having
to be sleazy and reach into other subsystems' directories.  First entry in
this directory is the PG_VERSION file interface, which must be used by the
backend and also the pg_version program (which is used by initdb).
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/commands/Makefile,v 1.2 1996/11/03 23:57:17 scrappy Exp $
d19 2
@
