head	1.29;
access;
symbols
	REL9_0_0:1.29
	REL9_1_ALPHA1:1.29
	REL9_0_RC1:1.29
	REL9_0_BETA4:1.29
	REL9_0_STABLE:1.29.0.6
	REL9_0_BETA3:1.29
	REL9_0_BETA2:1.29
	REL7_4_29:1.20
	REL8_0_25:1.23
	REL8_1_21:1.23
	REL8_2_17:1.24
	REL8_3_11:1.25
	REL8_4_4:1.28
	REL9_0_BETA1:1.29
	REL9_0_ALPHA5_BRANCH:1.29.0.4
	REL9_0_ALPHA5:1.29
	REL7_4_28:1.20
	REL8_0_24:1.23
	REL8_1_20:1.23
	REL8_2_16:1.24
	REL8_3_10:1.25
	REL8_4_3:1.28
	REL9_0_ALPHA4:1.29
	REL9_0_ALPHA4_BRANCH:1.29.0.2
	REL8_5_ALPHA3:1.28
	REL8_5_ALPHA3_BRANCH:1.28.0.8
	REL7_4_27:1.20
	REL8_0_23:1.23
	REL8_1_19:1.23
	REL8_2_15:1.24
	REL8_3_9:1.25
	REL8_4_2:1.28
	REL8_5_ALPHA2:1.28
	REL8_5_ALPHA2_BRANCH:1.28.0.6
	REL7_4_26:1.20
	REL8_0_22:1.23
	REL8_1_18:1.23
	REL8_2_14:1.24
	REL8_3_8:1.25
	REL8_4_1:1.28
	REL8_5_ALPHA1:1.28
	REL8_5_ALPHA1_BRANCH:1.28.0.4
	REL8_4_STABLE:1.28.0.2
	REL8_4_0:1.28
	REL8_4_RC2:1.28
	REL8_4_RC1:1.28
	REL8_4_BETA2:1.28
	REL8_4_BETA1:1.28
	REL7_4_25:1.20
	REL8_0_21:1.23
	REL8_1_17:1.23
	REL8_2_13:1.24
	REL8_3_7:1.25
	REL7_4_24:1.20
	REL8_0_20:1.23
	REL8_1_16:1.23
	REL8_2_12:1.24
	REL8_3_6:1.25
	REL7_4_23:1.20
	REL8_0_19:1.23
	REL8_1_15:1.23
	REL8_2_11:1.24
	REL8_3_5:1.25
	REL7_4_22:1.20
	REL8_0_18:1.23
	REL8_1_14:1.23
	REL8_2_10:1.24
	REL8_3_4:1.25
	REL7_4_21:1.20
	REL8_0_17:1.23
	REL8_1_13:1.23
	REL8_2_9:1.24
	REL8_3_3:1.25
	REL7_4_20:1.20
	REL8_0_16:1.23
	REL8_1_12:1.23
	REL8_2_8:1.24
	REL8_3_2:1.25
	REL8_2_7:1.24
	REL8_3_1:1.25
	REL8_3_STABLE:1.25.0.2
	REL8_3_0:1.25
	REL8_3_RC2:1.25
	REL7_3_21:1.20
	REL7_4_19:1.20
	REL8_0_15:1.23
	REL8_1_11:1.23
	REL8_2_6:1.24
	REL8_3_RC1:1.25
	REL8_3_BETA4:1.25
	REL8_3_BETA3:1.25
	REL8_3_BETA2:1.25
	REL8_3_BETA1:1.25
	REL7_3_20:1.20
	REL7_4_18:1.20
	REL8_0_14:1.23
	REL8_1_10:1.23
	REL8_2_5:1.24
	REL7_3_19:1.20
	REL7_4_17:1.20
	REL8_0_13:1.23
	REL8_1_9:1.23
	REL8_2_4:1.24
	REL8_0_12:1.23
	REL8_1_8:1.23
	REL8_2_3:1.24
	REL7_3_18:1.20
	REL7_4_16:1.20
	REL8_0_11:1.23
	REL8_1_7:1.23
	REL8_2_2:1.24
	REL8_0_10:1.23
	REL8_1_6:1.23
	REL8_2_1:1.24
	REL7_4_15:1.20
	REL7_3_17:1.20
	REL8_2_STABLE:1.24.0.2
	REL8_2_0:1.24
	REL8_2_RC1:1.24
	REL8_2_BETA3:1.24
	REL8_2_BETA2:1.24
	REL8_1_5:1.23
	REL8_0_9:1.23
	REL7_4_14:1.20
	REL7_3_16:1.20
	REL8_2_BETA1:1.24
	REL7_3_15:1.20
	REL7_4_13:1.20
	REL8_0_8:1.23
	REL8_1_4:1.23
	REL7_3_14:1.20
	REL7_4_12:1.20
	REL8_0_7:1.23
	REL8_1_3:1.23
	REL7_3_13:1.20
	REL7_4_11:1.20
	REL8_0_6:1.23
	REL8_1_2:1.23
	REL7_3_12:1.20
	REL7_4_10:1.20
	REL8_0_5:1.23
	REL8_1_1:1.23
	REL8_1_STABLE:1.23.0.6
	REL8_1_0:1.23
	REL8_1_0RC1:1.23
	REL8_1_0BETA4:1.23
	REL8_1_0BETA3:1.23
	REL7_3_11:1.20
	REL7_4_9:1.20
	REL8_0_4:1.23
	REL8_1_0BETA2:1.23
	REL8_1_0BETA1:1.23
	REL7_2_8:1.18
	REL7_3_10:1.20
	REL7_4_8:1.20
	REL8_0_3:1.23
	REL8_0_2:1.23
	REL7_2_7:1.18
	REL7_3_9:1.20
	REL7_4_7:1.20
	REL8_0_1:1.23
	REL8_0_STABLE:1.23.0.4
	REL8_0_0:1.23.0.2
	REL8_0_0RC5:1.23
	REL8_0_0RC4:1.23
	REL8_0_0RC3:1.23
	REL8_0_0RC2:1.23
	REL8_0_0RC1:1.23
	REL8_0_0BETA5:1.23
	REL8_0_0BETA4:1.23
	REL7_4_6:1.20
	REL7_3_8:1.20
	REL7_2_6:1.18
	REL8_0_0BETA3:1.23
	REL8_0_0BETA2:1.23
	REL7_2_5:1.18
	REL7_4_5:1.20
	REL7_3_7:1.20
	REL7_4_4:1.20
	REL8_0_0BETA1:1.23
	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.6
	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.4
	REL7_4_BETA1:1.20
	REL7_3_4:1.20
	REL7_3_2:1.20
	REL7_2_4:1.18
	REL7_3_STABLE:1.20.0.2
	REL7_2_3:1.18
	REL7_2_STABLE:1.18.0.4
	REL7_2:1.18
	REL7_2_RC2:1.18
	REL7_2_RC1:1.18
	REL7_2_BETA5:1.18
	REL7_2_BETA4:1.18
	REL7_2_BETA3:1.18
	REL7_2_BETA2:1.18
	REL7_2_BETA1:1.18
	REL7_1_2:1.18
	REL7_1_STABLE:1.18.0.2
	REL7_1_BETA:1.18
	REL7_1_BETA3:1.18
	REL7_1_BETA2:1.18
	REL7_1:1.18
	REL7_0_PATCHES:1.10.0.2
	REL7_0:1.10
	REL6_5_PATCHES:1.8.0.4
	REL6_5:1.8
	REL6_4:1.8.0.2
	release-6-3:1.5
	REL2_0B:1.4.0.2
	REL2_0:1.4;
locks; strict;
comment	@# @;


1.29
date	2010.01.05.01.06.56;	author tgl;	state Exp;
branches;
next	1.28;

1.28
date	2008.08.01.13.16.09;	author alvherre;	state Exp;
branches;
next	1.27;

1.27
date	2008.03.17.19.44.41;	author petere;	state Exp;
branches;
next	1.26;

1.26
date	2008.02.19.10.30.08;	author petere;	state Exp;
branches;
next	1.25;

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

1.24
date	2006.07.15.03.33.14;	author tgl;	state Exp;
branches;
next	1.23;

1.23
date	2004.07.17.03.29.15;	author tgl;	state Exp;
branches;
next	1.22;

1.22
date	2004.01.04.05.57.21;	author tgl;	state Exp;
branches;
next	1.21;

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

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

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

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

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

1.16
date	2000.07.01.21.16.44;	author petere;	state Exp;
branches;
next	1.15;

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

1.14
date	2000.06.09.02.38.36;	author tgl;	state Exp;
branches;
next	1.13;

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

1.12
date	2000.05.29.05.45.18;	author tgl;	state Exp;
branches;
next	1.11;

1.11
date	2000.05.28.17.56.05;	author tgl;	state Exp;
branches;
next	1.10;

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

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

1.8
date	98.07.26.04.30.50;	author scrappy;	state Exp;
branches;
next	1.7;

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

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

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

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

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

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

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


desc
@@


1.29
log
@Get rid of the need for manual maintenance of the initial contents of
pg_attribute, by having genbki.pl derive the information from the various
catalog header files.  This greatly simplifies modification of the
"bootstrapped" catalogs.

This patch finally kills genbki.sh and Gen_fmgrtab.sh; we now rely entirely on
Perl scripts for those build steps.  To avoid creating a Perl build dependency
where there was not one before, the output files generated by these scripts
are now treated as distprep targets, ie, they will be built and shipped in
tarballs.  But you will need a reasonably modern Perl (probably at least
5.6) if you want to build from a CVS pull.

The changes to the MSVC build process are untested, and may well break ---
we'll soon find out from the buildfarm.

John Naylor, based on ideas from Robert Haas and others
@
text
@#
# Makefile for utils
#
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.28 2008/08/01 13:16:09 alvherre Exp $
#

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

OBJS        = fmgrtab.o
SUBDIRS     = adt cache error fmgr hash init mb misc mmgr resowner sort time

# location of Catalog.pm
catalogdir  = $(top_srcdir)/src/backend/catalog

include $(top_srcdir)/src/backend/common.mk

all: fmgroids.h probes.h

$(SUBDIRS:%=%-recursive): fmgroids.h

# see explanation in ../parser/Makefile
fmgroids.h: fmgrtab.c ;

fmgrtab.c: Gen_fmgrtab.pl $(catalogdir)/Catalog.pm $(top_srcdir)/src/include/catalog/pg_proc.h
	$(PERL) -I $(catalogdir) $< $(top_srcdir)/src/include/catalog/pg_proc.h

ifneq ($(enable_dtrace), yes)
probes.h: Gen_dummy_probes.sed
endif

probes.h: probes.d
ifeq ($(enable_dtrace), yes)
	$(DTRACE) -C -h -s $< -o $@@.tmp
	sed -e 's/POSTGRESQL_/TRACE_POSTGRESQL_/g' $@@.tmp >$@@
	rm $@@.tmp
else
	sed -f $(srcdir)/Gen_dummy_probes.sed $< >$@@
endif


# fmgroids.h and fmgrtab.c are in the distribution tarball, so they
# are not cleaned here.
clean:
	rm -f probes.h

maintainer-clean: clean
	rm -f fmgroids.h fmgrtab.c
@


1.28
log
@Add a few more DTrace probes to the backend.

Robert Lor
@
text
@d4 1
a4 1
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.27 2008/03/17 19:44:41 petere Exp $
d14 3
d23 5
a27 2
fmgroids.h fmgrtab.c: Gen_fmgrtab.sh $(top_srcdir)/src/include/catalog/pg_proc.h
	AWK='$(AWK)' $(SHELL) $< $(top_srcdir)/src/include/catalog/pg_proc.h
d43 2
d46 4
a49 1
	rm -f fmgroids.h fmgrtab.c probes.h
@


1.27
log
@Enable probes to work with Mac OS X Leopard and other OSes that will
support DTrace in the future.

Switch from using DTRACE_PROBEn macros to the dynamically generated macros.
Use "dtrace -h" to create a header file that contains the dynamically
generated macros to be used in the source code instead of the DTRACE_PROBEn
macros.  A dummy header file is generated for builds without DTrace support.

Author: Robert Lor <Robert.Lor@@sun.com>
@
text
@d4 1
a4 1
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.26 2008/02/19 10:30:08 petere Exp $
d23 4
d29 1
a29 1
	$(DTRACE) -h -s $< -o $@@.tmp
@


1.26
log
@Refactor backend makefiles to remove lots of duplicate code
@
text
@d4 1
a4 1
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.25 2007/02/09 15:55:58 petere Exp $
d16 1
a16 1
all: fmgroids.h
d23 10
d34 1
a34 1
	rm -f fmgroids.h fmgrtab.c
@


1.25
log
@Replace useless uses of := by = in makefiles.
@
text
@d4 1
a4 1
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.24 2006/07/15 03:33:14 tgl Exp $
d11 1
a12 1
SUBDIROBJS  = $(SUBDIRS:%=%/SUBSYS.o)
d14 1
d16 1
a16 1
all: SUBSYS.o fmgroids.h
a17 6
SUBSYS.o: fmgrtab.o $(SUBDIROBJS)
	$(LD) $(LDREL) $(LDOUT) $@@ $^

$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;

.PHONY: $(SUBDIRS:%=%-recursive)
a18 1
	$(MAKE) -C $(subst -recursive,,$@@) SUBSYS.o
a22 1

d24 1
a24 2
	for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@@ || exit; done
	rm -f SUBSYS.o fmgrtab.o fmgroids.h fmgrtab.c
@


1.24
log
@Fix some makefiles that fail to yield good results from 'make -qp'.
This doesn't really matter for ordinary building of Postgres, but it's
useful for automated checks, such as my just-committed pgcheckdefines.
@
text
@d4 1
a4 1
# $PostgreSQL: pgsql/src/backend/utils/Makefile,v 1.23 2004/07/17 03:29:15 tgl Exp $
d11 2
a12 2
SUBDIRS     := adt cache error fmgr hash init mb misc mmgr resowner sort time
SUBDIROBJS  := $(SUBDIRS:%=%/SUBSYS.o)
@


1.23
log
@Invent ResourceOwner mechanism as per my recent proposal, and use it to
keep track of portal-related resources separately from transaction-related
resources.  This allows cursors to work in a somewhat sane fashion with
nested transactions.  For now, cursor behavior is non-subtransactional,
that is a cursor's state does not roll back if you abort a subtransaction
that fetched from the cursor.  We might want to change that later.
@
text
@d4 1
a4 1
# $PostgreSQL: pgsql-server/src/backend/utils/Makefile,v 1.22 2004/01/04 05:57:21 tgl Exp $
d7 1
a7 1
subdir = src/backend/utils/
@


1.22
log
@There's no longer any good reason for genbki.sh and Gen_fmgrtab.sh to
run the data through cpp, and we know of at least one platform where
unusual cpp behavior breaks the process.  So remove the cpp step,
and make consequent simplifications.
@
text
@d4 1
a4 1
# $PostgreSQL: pgsql-server/src/backend/utils/Makefile,v 1.21 2003/11/29 19:51:57 pgsql Exp $
d11 1
a11 1
SUBDIRS     := adt cache error fmgr hash init misc mmgr sort time mb
@


1.21
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d4 1
a4 1
# $PostgreSQL: /cvsroot/pgsql-server/src/backend/utils/Makefile,v 1.20 2002/09/03 21:45:42 petere Exp $
d27 1
a27 1
	CPP='$(CPP)' AWK='$(AWK)' $(SHELL) $< $(top_srcdir)/src/include/catalog/pg_proc.h
@


1.20
log
@Remove all traces of multibyte and locale options.  Clean up comments
referring to "multibyte" where it really means character encoding.
@
text
@d4 1
a4 1
# $Header: /cvsroot/pgsql-server/src/backend/utils/Makefile,v 1.19 2002/08/10 17:59:28 petere Exp $
@


1.19
log
@Fix failure to relink postmaster executable in the first make run if only a
single source file a few directories deep in the backend tree has changed.
@
text
@d4 1
a4 1
# $Header: /cvsroot/pgsql-server/src/backend/utils/Makefile,v 1.18 2000/08/31 16:10:42 petere Exp $
d11 1
a11 4
SUBDIRS     := adt cache error fmgr hash init misc mmgr sort time
ifdef MULTIBYTE
SUBDIRS     += mb
endif
a32 7

dep depend: fmgroids.h fmgrtab.c
	for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@@ || exit; done

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


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
@d4 1
a4 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/Makefile,v 1.17 2000/07/13 16:07:06 petere Exp $
d23 1
a23 1
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive)
@


1.17
log
@Repair parallel make in backend tree (and make it really parallel).
Make Gen_fmgrtab.sh reasonably robust against concurrent invocation.
@
text
@d4 1
a4 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/Makefile,v 1.16 2000/07/01 21:16:44 petere Exp $
d9 1
a9 1
include ../../Makefile.global
@


1.16
log
@We don't need config.status substituting anything into Gen_fmgrtab.sh, we
just pass in CPP and AWK via the environment from the Makefile.
@
text
@a0 1
#-------------------------------------------------------------------------
d2 1
a2 2
# Makefile--
#    Makefile for utils
d4 1
a4 2
# IDENTIFICATION
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/Makefile,v 1.15 2000/06/17 00:09:43 petere Exp $
a5 1
#-------------------------------------------------------------------------
d7 3
a9 10
SRCDIR = ../..
include $(SRCDIR)/Makefile.global

all: submake SUBSYS.o

OBJS = fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o error/SUBSYS.o \
       fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o misc/SUBSYS.o mmgr/SUBSYS.o \
       sort/SUBSYS.o time/SUBSYS.o

DIRS = adt cache error fmgr hash init misc mmgr sort time
d11 1
d13 1
a13 2
OBJS += mb/SUBSYS.o
DIRS += mb
d15 2
d18 1
a18 2
SUBSYS.o: $(OBJS) 
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
d20 2
a21 1
.PHONY: submake clean dep depend
d23 1
a23 2
submake:
	for i in $(DIRS); do $(MAKE) -C $$i SUBSYS.o; done
d25 3
d29 2
a30 2
fmgroids.h fmgrtab.c: Gen_fmgrtab.sh $(SRCDIR)/include/catalog/pg_proc.h
	CPP='$(CPP)' AWK='$(AWK)' $(SHELL) $< $(SRCDIR)/include/catalog/pg_proc.h
d34 1
a35 1
	for i in $(DIRS); do $(MAKE) -C $$i clean; done
d38 1
a38 1
	for i in $(DIRS); do $(MAKE) -C $$i depend; done
@


1.15
log
@Remove fmgrstamp-h business -- not needed and confusing

Add options to configure to automatically build for Kerberos
support; no more editing of make files.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/Makefile,v 1.14 2000/06/09 02:38:36 tgl Exp $
d37 1
a37 1
	$(SHELL) $(SHOPTS) Gen_fmgrtab.sh $(SRCDIR)/include/catalog/pg_proc.h
@


1.14
log
@Cleanup to ensure good state of derived files in tarballs.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/Makefile,v 1.13 2000/06/07 16:26:48 petere Exp $
a34 5
# Gen_fmgrtab.sh will not change the timestamp of its output files
# if they already exist and would not be changed. This is to avoid
# unnecessary recompilations. In order to avoid re-running it all
# the time we update a stamp file instead. (Idea stolen from
# autoconf and autoheader.)
d36 1
a36 3
fmgroids.h fmgrtab.c: fmgrstamp-h

fmgrstamp-h: Gen_fmgrtab.sh $(SRCDIR)/include/catalog/pg_proc.h
a37 1
	date > fmgrstamp-h
a38 4
# don't clean fmgroids.h and fmgrtab.c, but do clean fmgrstamp-h
# (we don't really want to put that much trust in timestamps in
# distribution files and CVS pulls, so force at least one run of
# Gen_fmgrtab.sh after a make clean)
d41 1
a41 1
	rm -f SUBSYS.o fmgrtab.o fmgrstamp-h
@


1.13
log
@Gen_fmgrtab.sh is strange: it is a platform dependent way (because it uses
CPP) to create platform independent files. Unfortunately, that means that
every config.status (or configure) run invariably causes a relink of the
postmaster and also that we can't put these files in the distribution
(usefully). So we make it a little smarter: when the output files already
exist and it notices that it would recreate them in identical form, it
doesn't touch them. In order to avoid re-running the make rule all the time
we update a timestamp file instead.

Update release_prep accordingly. Also make Gen_fmgrtab.sh use the awk that
is detected at configure time, not necessarily named `awk' and have it check
for exit statuses a little better.

In other news... Remove USE_LOCALE from the templates, it was set to `no'
everywhere anyway. Also remove YACC and YFLAGS from the templates, configure
is smart enough to find bison or yacc itself. Use AC_PROG_YACC for that
instead of the hand-crafted code. Do not set YFLAGS to `-d'. The make rules
that need this flag should explicitly invoke it. YFLAGS should be a user
variable. Update the makefiles to that effect.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/Makefile,v 1.12 2000/05/29 05:45:18 tgl Exp $
d30 2
a31 1
.PHONY: submake clean dep
d42 1
d45 6
a50 1
	echo timestamp > fmgrstamp-h
a51 1
# don't clean fmgroids.h and fmgrtab.c
d53 1
a53 1
	rm -f SUBSYS.o fmgrtab.o
a61 1

@


1.12
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
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/Makefile,v 1.11 2000/05/28 17:56:05 tgl Exp $
d34 8
a41 1
fmgroids.h fmgrtab.c: Gen_fmgrtab.sh $(SRCDIR)/include/catalog/pg_proc.h
d43 1
d45 1
d47 1
a47 1
	rm -f SUBSYS.o fmgroids.h fmgrtab.o fmgrtab.c
@


1.11
log
@First round of changes for new fmgr interface.  fmgr itself and the
key call sites are changed, but most called functions are still oldstyle.
An exception is that the PL managers are updated (so, for example, NULL
handling now behaves as expected in plperl and plpgsql functions).
NOTE initdb is forced due to added column in pg_proc.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/Makefile,v 1.10 1999/12/13 22:34:28 momjian Exp $
a12 4

INCLUDE_OPT = -I.. 

CFLAGS+=$(INCLUDE_OPT)
@


1.10
log
@New LDOUT makefile variable for QNX os.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/Makefile,v 1.9 1999/12/09 19:15:13 momjian Exp $
d12 1
a12 1
include ../../Makefile.global
d38 2
a39 7
fmgrtab.o: ../fmgr.h

../fmgr.h: 
	$(MAKE) -C .. fmgr.h

fmgr.h fmgrtab.c: ./Gen_fmgrtab.sh ../../include/catalog/pg_proc.h
	sh $(SHOPTS) Gen_fmgrtab.sh ../../include/catalog/pg_proc.h
d42 1
a42 1
	rm -f SUBSYS.o fmgr.h fmgrtab.o fmgrtab.c
d45 1
a45 1
dep depend: fmgr.h fmgrtab.c
@


1.9
log
@Make LD -r as macros that can be changed for QNX.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/Makefile,v 1.8 1998/07/26 04:30:50 scrappy Exp $
d32 1
a32 1
	$(LD) $(LDREL) -o SUBSYS.o $(OBJS)
@


1.8
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
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/Makefile,v 1.7 1998/07/24 03:31:39 scrappy Exp $
d32 1
a32 1
	$(LD) -r -o SUBSYS.o $(OBJS)
@


1.7
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
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/Makefile,v 1.6 1998/04/06 00:26:13 momjian Exp $
d26 1
a26 1
ifdef MB
@


1.6
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/backend/utils/Makefile,v 1.5 1997/12/20 00:28:17 scrappy Exp $
d25 5
@


1.5
log
@Major cleanout of PORTNAME variables from Makefiles...bound to screw up
some of the ports...
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/Makefile,v 1.4 1996/11/09 06:22:52 momjian Exp $
d24 2
d31 1
a31 10
	$(MAKE) -C adt SUBSYS.o
	$(MAKE) -C cache SUBSYS.o
	$(MAKE) -C error SUBSYS.o
	$(MAKE) -C fmgr SUBSYS.o
	$(MAKE) -C hash SUBSYS.o
	$(MAKE) -C init SUBSYS.o
	$(MAKE) -C misc SUBSYS.o
	$(MAKE) -C mmgr SUBSYS.o
	$(MAKE) -C sort SUBSYS.o
	$(MAKE) -C time SUBSYS.o
d43 4
a46 23
	$(MAKE) -C adt   clean 
	$(MAKE) -C cache clean 
	$(MAKE) -C error clean 
	$(MAKE) -C fmgr  clean 
	$(MAKE) -C hash  clean 
	$(MAKE) -C init  clean 
	$(MAKE) -C misc  clean 
	$(MAKE) -C mmgr  clean 
	$(MAKE) -C sort  clean 
	$(MAKE) -C time  clean 

dep: fmgr.h fmgrtab.c
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
	$(MAKE) -C adt   dep 
	$(MAKE) -C cache dep 
	$(MAKE) -C error dep 
	$(MAKE) -C fmgr  dep 
	$(MAKE) -C hash  dep 
	$(MAKE) -C init  dep 
	$(MAKE) -C misc  dep 
	$(MAKE) -C mmgr  dep 
	$(MAKE) -C sort  dep 
	$(MAKE) -C time  dep 
@


1.4
log
@Makefile cleanup after reorganization
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/utils/Makefile,v 1.3 1996/11/03 09:28:31 bryanh Exp $
d14 1
a14 2
INCLUDE_OPT = -I.. \
              -I../../include
@


1.3
log
@Include Makefile.global so fmgrtab.c compiles properly.  Thanks Keith Parks.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/utils/Makefile,v 1.2 1996/11/02 02:03:50 bryanh Exp $
a14 1
              -I../include \
@


1.2
log
@Add misc subdirectory.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/access/Makefile.inc,v 1.2 1996/08/26 06:26:37 scrappy Exp $
d10 3
@


1.1
log
@Simplify make files, add full dependencies.
@
text
@d17 1
a17 1
all: SUBSYS.o
d19 9
a27 1
SUBSYS.o: fmgrtab.o
d34 1
a37 4
	$(LD) -r -o SUBSYS.o \
	    fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o error/SUBSYS.o \
	    fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o mmgr/SUBSYS.o \
	    sort/SUBSYS.o time/SUBSYS.o
d55 1
d68 1
d76 1
@
