head	1.39;
access;
symbols
	REL9_0_0:1.39
	REL9_1_ALPHA1:1.39
	REL9_0_RC1:1.39
	REL9_0_BETA4:1.39
	REL9_0_STABLE:1.39.0.6
	REL9_0_BETA3:1.39
	REL9_0_BETA2:1.39
	REL7_4_29:1.31
	REL8_0_25:1.32
	REL8_1_21:1.32
	REL8_2_17:1.34
	REL8_3_11:1.35
	REL8_4_4:1.37
	REL9_0_BETA1:1.39
	REL9_0_ALPHA5_BRANCH:1.39.0.4
	REL9_0_ALPHA5:1.39
	REL7_4_28:1.31
	REL8_0_24:1.32
	REL8_1_20:1.32
	REL8_2_16:1.34
	REL8_3_10:1.35
	REL8_4_3:1.37
	REL9_0_ALPHA4:1.39
	REL9_0_ALPHA4_BRANCH:1.39.0.2
	REL8_5_ALPHA3:1.38
	REL8_5_ALPHA3_BRANCH:1.38.0.4
	REL7_4_27:1.31
	REL8_0_23:1.32
	REL8_1_19:1.32
	REL8_2_15:1.34
	REL8_3_9:1.35
	REL8_4_2:1.37
	REL8_5_ALPHA2:1.38
	REL8_5_ALPHA2_BRANCH:1.38.0.2
	REL7_4_26:1.31
	REL8_0_22:1.32
	REL8_1_18:1.32
	REL8_2_14:1.34
	REL8_3_8:1.35
	REL8_4_1:1.37
	REL8_5_ALPHA1:1.37
	REL8_5_ALPHA1_BRANCH:1.37.0.4
	REL8_4_STABLE:1.37.0.2
	REL8_4_0:1.37
	REL8_4_RC2:1.37
	REL8_4_RC1:1.37
	REL8_4_BETA2:1.37
	REL8_4_BETA1:1.37
	REL7_4_25:1.31
	REL8_0_21:1.32
	REL8_1_17:1.32
	REL8_2_13:1.34
	REL8_3_7:1.35
	REL7_4_24:1.31
	REL8_0_20:1.32
	REL8_1_16:1.32
	REL8_2_12:1.34
	REL8_3_6:1.35
	REL7_4_23:1.31
	REL8_0_19:1.32
	REL8_1_15:1.32
	REL8_2_11:1.34
	REL8_3_5:1.35
	REL7_4_22:1.31
	REL8_0_18:1.32
	REL8_1_14:1.32
	REL8_2_10:1.34
	REL8_3_4:1.35
	REL7_4_21:1.31
	REL8_0_17:1.32
	REL8_1_13:1.32
	REL8_2_9:1.34
	REL8_3_3:1.35
	REL7_4_20:1.31
	REL8_0_16:1.32
	REL8_1_12:1.32
	REL8_2_8:1.34
	REL8_3_2:1.35
	REL8_2_7:1.34
	REL8_3_1:1.35
	REL8_3_STABLE:1.35.0.2
	REL8_3_0:1.35
	REL8_3_RC2:1.35
	REL7_3_21:1.31
	REL7_4_19:1.31
	REL8_0_15:1.32
	REL8_1_11:1.32
	REL8_2_6:1.34
	REL8_3_RC1:1.35
	REL8_3_BETA4:1.35
	REL8_3_BETA3:1.35
	REL8_3_BETA2:1.35
	REL8_3_BETA1:1.35
	REL7_3_20:1.31
	REL7_4_18:1.31
	REL8_0_14:1.32
	REL8_1_10:1.32
	REL8_2_5:1.34
	REL7_3_19:1.31
	REL7_4_17:1.31
	REL8_0_13:1.32
	REL8_1_9:1.32
	REL8_2_4:1.34
	REL8_0_12:1.32
	REL8_1_8:1.32
	REL8_2_3:1.34
	REL7_3_18:1.31
	REL7_4_16:1.31
	REL8_0_11:1.32
	REL8_1_7:1.32
	REL8_2_2:1.34
	REL8_0_10:1.32
	REL8_1_6:1.32
	REL8_2_1:1.34
	REL7_4_15:1.31
	REL7_3_17:1.31
	REL8_2_STABLE:1.34.0.2
	REL8_2_0:1.34
	REL8_2_RC1:1.34
	REL8_2_BETA3:1.34
	REL8_2_BETA2:1.34
	REL8_1_5:1.32
	REL8_0_9:1.32
	REL7_4_14:1.31
	REL7_3_16:1.31
	REL8_2_BETA1:1.34
	REL7_3_15:1.31
	REL7_4_13:1.31
	REL8_0_8:1.32
	REL8_1_4:1.32
	REL7_3_14:1.31
	REL7_4_12:1.31
	REL8_0_7:1.32
	REL8_1_3:1.32
	REL7_3_13:1.31
	REL7_4_11:1.31
	REL8_0_6:1.32
	REL8_1_2:1.32
	REL7_3_12:1.31
	REL7_4_10:1.31
	REL8_0_5:1.32
	REL8_1_1:1.32
	REL8_1_STABLE:1.32.0.6
	REL8_1_0:1.32
	REL8_1_0RC1:1.32
	REL8_1_0BETA4:1.32
	REL8_1_0BETA3:1.32
	REL7_3_11:1.31
	REL7_4_9:1.31
	REL8_0_4:1.32
	REL8_1_0BETA2:1.32
	REL8_1_0BETA1:1.32
	REL7_2_8:1.30
	REL7_3_10:1.31
	REL7_4_8:1.31
	REL8_0_3:1.32
	REL8_0_2:1.32
	REL7_2_7:1.30
	REL7_3_9:1.31
	REL7_4_7:1.31
	REL8_0_1:1.32
	REL8_0_STABLE:1.32.0.4
	REL8_0_0:1.32.0.2
	REL8_0_0RC5:1.32
	REL8_0_0RC4:1.32
	REL8_0_0RC3:1.32
	REL8_0_0RC2:1.32
	REL8_0_0RC1:1.32
	REL8_0_0BETA5:1.32
	REL8_0_0BETA4:1.32
	REL7_4_6:1.31
	REL7_3_8:1.31
	REL7_2_6:1.30
	REL8_0_0BETA3:1.32
	REL8_0_0BETA2:1.32
	REL7_2_5:1.30
	REL7_4_5:1.31
	REL7_3_7:1.31
	REL7_4_4:1.31
	REL8_0_0BETA1:1.32
	REL7_4_3:1.31
	REL7_4_2:1.31
	REL7_3_6:1.31
	REL7_4_1:1.31
	REL7_3_5:1.31
	REL7_4:1.31
	REL7_4_RC2:1.31
	REL7_4_STABLE:1.31.0.6
	REL7_4_RC1:1.31
	REL7_4_BETA5:1.31
	REL7_4_BETA4:1.31
	REL7_4_BETA3:1.31
	REL7_4_BETA2:1.31
	WIN32_DEV:1.31.0.4
	REL7_4_BETA1:1.31
	REL7_3_4:1.31
	REL7_3_2:1.31
	REL7_2_4:1.30
	REL7_3_STABLE:1.31.0.2
	REL7_2_3:1.30
	REL7_2_STABLE:1.30.0.2
	REL7_2:1.30
	REL7_2_RC2:1.30
	REL7_2_RC1:1.30
	REL7_2_BETA5:1.30
	REL7_2_BETA4:1.29
	REL7_2_BETA3:1.29
	REL7_2_BETA2:1.28
	REL7_2_BETA1:1.28
	REL7_1_2:1.27
	REL7_1_STABLE:1.27.0.2
	REL7_1_BETA:1.26
	REL7_1_BETA3:1.26
	REL7_1_BETA2:1.26
	REL7_1:1.27
	REL7_0_PATCHES:1.21.0.2
	REL7_0:1.21
	REL6_5_PATCHES:1.15.0.4
	REL6_5:1.15
	REL6_4:1.15.0.2
	release-6-3:1.12
	REL2_0B:1.4.0.2
	REL2_0:1.4;
locks; strict;
comment	@# @;


1.39
date	2010.01.05.03.56.52;	author tgl;	state Exp;
branches;
next	1.38;

1.38
date	2009.08.28.20.26.18;	author petere;	state Exp;
branches;
next	1.37;

1.37
date	2008.08.29.13.02.32;	author petere;	state Exp;
branches;
next	1.36;

1.36
date	2008.02.19.10.30.07;	author petere;	state Exp;
branches;
next	1.35;

1.35
date	2007.01.20.17.16.11;	author petere;	state Exp;
branches;
next	1.34;

1.34
date	2006.03.07.01.03.12;	author tgl;	state Exp;
branches;
next	1.33;

1.33
date	2006.01.05.01.56.29;	author momjian;	state Exp;
branches;
next	1.32;

1.32
date	2003.11.29.19.51.40;	author pgsql;	state Exp;
branches;
next	1.31;

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

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

1.29
date	2001.11.16.16.32.33;	author petere;	state Exp;
branches;
next	1.28;

1.28
date	2001.08.22.20.02.56;	author petere;	state Exp;
branches;
next	1.27;

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

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

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

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

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

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

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

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

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

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

1.17
date	99.12.13.22.32.35;	author momjian;	state Exp;
branches;
next	1.16;

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

1.15
date	98.07.26.04.30.17;	author scrappy;	state Exp;
branches;
next	1.14;

1.14
date	98.07.24.03.31.06;	author scrappy;	state Exp;
branches;
next	1.13;

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

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

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

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

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

1.8
date	97.04.18.08.55.55;	author vadim;	state Exp;
branches;
next	1.7;

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

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

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

1.4
date	96.11.14.07.33.20;	author bryanh;	state Exp;
branches;
next	1.3;

1.3
date	96.11.09.06.17.44;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	96.11.08.05.55.46;	author momjian;	state Exp;
branches;
next	1.1;

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


desc
@@


1.39
log
@Fix a few places where we needed -I. in CPPFLAGS to work properly in
VPATH builds.  We had this already in several places, but not all.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for the bootstrap module
#
# $PostgreSQL: pgsql/src/backend/bootstrap/Makefile,v 1.38 2009/08/28 20:26:18 petere Exp $
#
#-------------------------------------------------------------------------

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

override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)

OBJS= bootparse.o bootstrap.o 

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


# bootscanner is compiled as part of bootparse
bootparse.o: bootscanner.c

bootparse.c: bootparse.y
ifdef BISON
	$(BISON) $(BISONFLAGS) -o $@@ $<
else
	@@$(missing) bison $< $@@
endif

bootscanner.c: bootscanner.l
ifdef FLEX
	$(FLEX) $(FLEXFLAGS) -o'$@@' $<
else
	@@$(missing) flex $< $@@
endif


# bootparse.c and bootscanner.c are in the distribution tarball, so
# they are not cleaned here.
@


1.38
log
@Derived files that are shipped in the distribution used to be built in the
source directory even for out-of-tree builds.  They are now alsl built in
the build tree.  This should be more convenient for certain developers'
workflows, and shouldn't really break anything else.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/src/backend/bootstrap/Makefile,v 1.37 2008/08/29 13:02:32 petere Exp $
d13 1
a13 1
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
@


1.37
log
@Remove all traces that suggest that a non-Bison yacc might be supported, and
change build system to use only Bison.  Simplify build rules, make file names
uniform.  Don't build the token table header file where it is not needed.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/src/backend/bootstrap/Makefile,v 1.36 2008/02/19 10:30:07 petere Exp $
d21 1
a21 1
bootparse.o: $(srcdir)/bootscanner.c
d23 1
a23 1
$(srcdir)/bootparse.c: bootparse.y
d30 1
a30 1
$(srcdir)/bootscanner.c: bootscanner.l
@


1.36
log
@Refactor backend makefiles to remove lots of duplicate code
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/src/backend/bootstrap/Makefile,v 1.35 2007/01/20 17:16:11 petere Exp $
d23 3
a25 9
# See notes in src/backend/parser/Makefile about the following two rules

$(srcdir)/bootparse.c: $(srcdir)/bootstrap_tokens.h ;

$(srcdir)/bootstrap_tokens.h: bootparse.y
ifdef YACC
	$(YACC) -d $(YFLAGS) $<
	mv -f y.tab.c $(srcdir)/bootparse.c
	mv -f y.tab.h $(srcdir)/bootstrap_tokens.h
a36 3
# Force these dependencies to be known even without dependency info built:
bootstrap.o bootparse.o: $(srcdir)/bootstrap_tokens.h

d38 2
a39 5
# bootparse.c, bootstrap_tokens.h, and bootscanner.c are in the distribution
# tarball, so they are not cleaned here.
clean:
# And the garbage that might have been left behind by partial build:
	@@rm -f y.tab.h y.tab.c y.output lex.yy.c
@


1.35
log
@Remove remains of old depend target.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/src/backend/bootstrap/Makefile,v 1.34 2006/03/07 01:03:12 tgl Exp $
d17 1
a17 4
all: SUBSYS.o

SUBSYS.o: $(OBJS)
	$(LD) $(LDREL) $(LDOUT) $@@ $^
a49 1
	rm -f SUBSYS.o $(OBJS)
@


1.34
log
@Make all our flex and bison files use %option prefix or %name-prefix
(respectively) to rename yylex and related symbols.  Some were doing
it this way already, while others used not-too-reliable sed hacks in
the Makefiles.  It's all nice and consistent now.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/src/backend/bootstrap/Makefile,v 1.33 2006/01/05 01:56:29 momjian Exp $
a55 10


# This is unusual:  We actually have to build some of the parts before
# we know what the header file dependencies are.  
dep depend: bootparse.c bootscanner.c bootstrap_tokens.h
	$(CC) -MM $(CFLAGS) *.c >depend

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


1.33
log
@Remove QNX port.
@
text
@d5 1
a5 1
# $PostgreSQL: pgsql/src/backend/bootstrap/Makefile,v 1.32 2003/11/29 19:51:40 pgsql Exp $
a22 2
bootstrap.o bootparse.o: $(srcdir)/bootstrap_tokens.h

d26 1
a26 8
# `sed' rules to remove conflicts between bootstrap scanner and parser
# and the SQL scanner and parser. For correctness' sake the rules that
# use this must depend on this Makefile.
define sed-magic
sed -e 's/^yy/Int_yy/g' \
    -e 's/\([^a-zA-Z0-9_]\)yy/\1Int_yy/g'
endef

d30 1
a30 1
$(srcdir)/bootstrap_tokens.h: bootparse.y Makefile
d33 2
a34 3
	$(sed-magic) < y.tab.c > $(srcdir)/bootparse.c
	$(sed-magic) < y.tab.h > $(srcdir)/bootstrap_tokens.h
	rm -f y.tab.c y.tab.h
d39 1
a39 1
$(srcdir)/bootscanner.c: bootscanner.l Makefile
d41 1
a41 3
	$(FLEX) $(FLEXFLAGS) $<
	$(sed-magic) lex.yy.c > $@@
	rm -f lex.yy.c
d46 6
d53 1
a53 1
	rm -f SUBSYS.o $(OBJS) bootstrap.o
@


1.32
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d5 1
a5 1
# $PostgreSQL: /cvsroot/pgsql-server/src/backend/bootstrap/Makefile,v 1.31 2002/11/01 22:52:33 tgl Exp $
a14 2
# qnx4's wlink currently crashes with bootstrap.o
ifneq ($(PORTNAME), qnx4)
a15 4
else
OBJS= bootparse.o
endif

d17 1
a17 2
# make sure bootstrap.o is built even on qnx4
all: SUBSYS.o bootstrap.o
@


1.31
log
@Arrange to compile flex output files as inclusions into other files
(usually bison output files), not as standalone files.  This hack
works around flex's insistence on including <stdio.h> before we are
able to include postgres.h; postgres.h will already be read before
the compiler starts to read the flex output file.  Needed for largefile
support on some platforms.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql-server/src/backend/bootstrap/Makefile,v 1.30 2002/01/09 00:06:42 tgl Exp $
@


1.30
log
@Fix include paths for case of VPATH build.
@
text
@d5 1
a5 1
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.29 2001/11/16 16:32:33 petere Exp $
d17 1
a17 1
OBJS= bootparse.o bootscanner.o bootstrap.o 
d19 1
a19 1
OBJS= bootparse.o bootscanner.o
d30 1
a30 1
bootstrap.o bootscanner.o: $(srcdir)/bootstrap_tokens.h
d32 2
@


1.29
log
@Make the yacc rules safe for parallel make.  See discussion on pgsql-patches
and comment in src/backend/parser/Makefile for the technical details.
@
text
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.28 2001/08/22 20:02:56 petere Exp $
d12 2
@


1.28
log
@remove no longer needed -Wno-error
@
text
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.27 2001/02/10 22:31:42 petere Exp $
d28 1
a28 1
bootstrap.o bootscanner.c: $(srcdir)/bootstrap_tokens.h
d40 3
a42 1
$(srcdir)/bootparse.c $(srcdir)/bootstrap_tokens.h: bootparse.y Makefile
@


1.27
log
@Only look for bison as YACC; other yaccs need to be selected explicitly.
When no suitable YACC is configured, supply useful informational messages
to users.  (Same way flex has been handled for a while.)
@
text
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.26 2000/10/20 21:03:41 petere Exp $
a11 4

ifeq ($(GCC), yes)
override CFLAGS+= -Wno-error
endif
@


1.26
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
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.25 2000/08/28 11:53:17 petere Exp $
d45 1
d50 3
@


1.25
log
@New configure test for flex, which recognizes only flex but does so in all
incarnations (I hope). When an acceptable flex version is not found, print
instructive error messages from both configure and the makefiles, so that
users can continue building anyway.
@
text
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.24 2000/07/19 16:29:47 petere Exp $
d14 1
a14 1
CFLAGS+= -Wno-error
@


1.24
log
@Add distprep target to take some of the job of the release_prep script.
The latter updated accordingly. Also add `dist' and `distcheck' targets
to play with, but caveat packager.

Updated backend/bootstrap and backend/parser makefile to make them
marginally builddir aware and fix the usual set of things.

Add rule to automatically remake config.h dependent on config.h.in and
config.status. (Adopted from Autoconf manual and about every other
package.) On a good day we should now have a complete and accurate set
of dependencies throughout everything.
@
text
@d5 1
a5 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.23 2000/06/07 16:26:37 petere Exp $
d51 3
a53 2
	$(LEX) $(LFLAGS) $<
	$(sed-magic) < lex.yy.c > $@@
d55 3
@


1.23
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
@d3 1
a3 2
# Makefile--
#    Makefile for the bootstrap module
d5 1
a5 12
# IDENTIFICATION
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.22 2000/05/29 05:44:42 tgl Exp $
#
#
# We must build bootparse.c and bootscanner.c with yacc and lex and sed,
# but bootstrap.c is part of the distribution.
#
# Another kinda weird Makefile cause we need two
#  scanner/parsers in the backend and most yaccs and lexs
#  don't have the prefix option.
#
#	sed files are HACK CITY! - redo...
d9 3
a11 2
SRCDIR= ../..
include $(SRCDIR)/Makefile.global
d13 1
a13 1
ifeq ($(CC), gcc)
d17 1
a17 2
BOOTYACCS= bootstrap_tokens.h bootparse.c

a20 1
# qnx4's wlink currently crashes with bootstrap.o
d24 1
d29 2
a30 1
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
d32 1
a32 4
# bootstrap.o's dependency on bootstrap_tokens.h is computed by the
# make depend, but we state it here explicitly anyway because 
# bootstrap_tokens.h doesn't even exist at first and if user fails to 
# do make depend, we still want the build to succeed.
a33 1
bootstrap.o: bootstrap_tokens.h
d35 10
a44 1
bootstrap_tokens.h bootparse.c: bootparse.y
d46 3
a48 4
	grep -v "^#" boot.sed > sedfile
	sed -f sedfile < y.tab.c > bootparse.c
	mv y.tab.h bootstrap_tokens.h
	rm -f y.tab.c sedfile
d50 1
a50 1
bootscanner.c: bootscanner.l
d52 2
a53 3
	grep -v "^#" boot.sed > sedfile
	sed -f sedfile < lex.yy.c > bootscanner.c
	rm -f lex.yy.c sedfile
d58 2
a59 1
	rm -f y.tab.h y.tab.c y.output lex.yy.c
@


1.22
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/bootstrap/Makefile,v 1.21 2000/01/19 02:58:51 petere Exp $
d51 1
a51 1
	$(YACC) $(YFLAGS) $<
d58 1
a58 1
	$(LEX) $<
@


1.21
log
@Removed MBFLAGS from makefiles since it's now done in include/config.h.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.20 2000/01/16 20:04:53 petere Exp $
d22 1
a22 3
include ../../Makefile.global

CFLAGS += -I..
d30 1
d32 3
a34 3
ifeq ($(PORTNAME), qnx4)
# wlink currently crashes with bootstrap.o
OBJS1= bootparse.o bootscanner.o
d37 2
a38 1
all: SUBSYS.o
a40 1
ifneq ($(PORTNAME), qnx4)
a41 3
else
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS1)
endif
d64 1
a64 1
	rm -f SUBSYS.o $(OBJS)
a75 1

@


1.20
log
@Included all yacc and lex files into the distribution.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.19 1999/12/16 16:52:46 momjian Exp $
a24 3
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
@


1.19
log
@Update for QNX.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.18 1999/12/16 01:25:01 momjian Exp $
d71 1
a71 1
	rm -f SUBSYS.o $(OBJS) bootparse.c bootstrap_tokens.h bootscanner.c
@


1.18
log
@I have done the QNX4 port with the current source tree. The number of
backend/Makefiles to be patched could significantly be reduced since
they
have been adopted to the QNX4 needs.

Andreas Kardos
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.17 1999/12/13 22:32:35 momjian Exp $
a34 1
ifneq ($(PORTNAME), qnx4)
d36 3
a38 3
else
# wlink crashes with bootstrap.o
OBJS= bootparse.o bootscanner.o
d44 1
d46 3
@


1.17
log
@New LDOUT makefile variable for QNX os.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.16 1999/12/09 19:14:34 momjian Exp $
d35 1
d37 4
@


1.16
log
@Make LD -r as macros that can be changed for QNX.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.15 1998/07/26 04:30:17 scrappy Exp $
d40 1
a40 1
	$(LD) $(LDREL) -o SUBSYS.o $(OBJS)
@


1.15
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/bootstrap/Makefile,v 1.14 1998/07/24 03:31:06 scrappy Exp $
d40 1
a40 1
	$(LD) -r -o SUBSYS.o $(OBJS)
@


1.14
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/bootstrap/Makefile,v 1.13 1998/04/06 00:22:02 momjian Exp $
d25 2
a26 2
ifdef MB
CFLAGS += -DMB=$(MB)
@


1.13
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/bootstrap/Makefile,v 1.12 1997/12/20 00:23:19 scrappy Exp $
d25 3
@


1.12
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/bootstrap/Makefile,v 1.11 1997/12/17 04:58:21 scrappy Exp $
d24 1
a24 3
INCLUDE_OPT= -I.. 

CFLAGS+= $(INCLUDE_OPT)  
d66 2
a67 2
dep: bootparse.c bootscanner.c bootstrap_tokens.h
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
@


1.11
log
@First pass through, of many to come, towards making the whole source
tree "non-PORTNAME" dependent.  Technically, anything that is PORTNAME
dependent should be able to be derived at compile time, through configure
or through gcc
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.10 1997/06/11 01:11:55 scrappy Exp $
a24 4

ifdef PORTNAME
INCLUDE_OPT+=-I../port/$(PORTNAME) 
endif
@


1.10
log
@From: Robert Bruccoleri <bruc@@bms.com>
Subject: [PORTS] Patches for Irix 6.4

I have worked out how to compile PostgreSQL on Irix 6.4 using the -n32 compiler
mode and version 7.1 of the C compiler. (The n32 compiler use 32 bits
addressing,
but allows access to all the instructions in the MIPS4 instruction set.)
There were several problems:

1) The ld command is not referenced as a macro in all the Makefiles. On
this platform, you have to include -n32 on all the ld commands. Makefiles
were changed as needed.

3) Lots of warnings are generated from the compiler. Since the regression
tests worked OK, I didn't attempt to fix them. If anyone wants the compilation
log, please let me know, and I'll email it to you.

The version of postgresql was 970602. Here is Makefile.custom:

CUSTOM_COPT = -O2 -n32
MK_NO_LORDER = 1
LD = ld -n32
CC += -n32
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/bootstrap/Makefile,v 1.9 1997/06/11 01:05:48 scrappy Exp $
d24 5
a28 3
INCLUDE_OPT= -I.. \
             -I../port/$(PORTNAME) \
             -I../../include
@


1.9
log
@From: "Brian E. Gallew" <geek+@@cmu.edu>
Subject: Re: [PORTS] Re: [PATCHES] DG/UX 5.4R11 patches

Comments in boot.sed break DG/UX port
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/bootstrap/Makefile,v 1.8 1997/04/18 08:55:55 vadim Exp $
d41 1
a41 1
	ld -r -o SUBSYS.o $(OBJS)
@


1.8
log
@Fix for -Wno-error
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/bootstrap/Makefile,v 1.7 1997/04/15 17:24:07 scrappy Exp $
d52 2
a53 1
	sed -f boot.sed < y.tab.c > bootparse.c
d55 1
a55 1
	rm -f y.tab.c
d59 3
a61 2
	sed -f boot.sed < lex.yy.c > bootscanner.c
	rm -f lex.yy.c
@


1.7
log
@Fix up the -Wno-error problem for non-gcc compilers

Pointed out by many many ppl
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/bootstrap/Makefile,v 1.6 1997/04/04 10:38:58 scrappy Exp $
d30 1
a30 1
ifeq ($CC), gcc)
@


1.6
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
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/bootstrap/Makefile,v 1.5 1997/04/02 18:10:46 scrappy Exp $
d28 5
a32 1
CFLAGS+= $(INCLUDE_OPT)  -Wno-error
@


1.5
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
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/bootstrap/Makefile,v 1.4 1996/11/14 07:33:20 bryanh Exp $
d28 1
a28 1
CFLAGS+= $(INCLUDE_OPT) 
@


1.4
log
@Use -Wno-error option only if compiler is gcc.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/bootstrap/Makefile,v 1.3 1996/11/09 06:17:44 momjian Exp $
a28 7

ifeq ($(CC), gcc)
# Until we figure out how to get rid of the warnings in this directory,
# we must turn off any -Werror that is in CFLAGS now.  These options only
# exist for the gcc compiler.
CFLAGS+= -Wno-error
endif
@


1.3
log
@Makefile cleanup after reorganization
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/bootstrap/Makefile,v 1.2 1996/11/08 05:55:46 momjian Exp $
d21 1
a21 1
SRCDIR = ../..
d24 3
a26 3
INCLUDE_OPT = -I.. \
              -I../port/$(PORTNAME) \
              -I../../include
d28 1
a28 1
CFLAGS += $(INCLUDE_OPT) -Wno-error
d30 6
a35 1
BOOTYACCS = bootstrap_tokens.h bootparse.c
d37 3
a39 1
OBJS = bootparse.o bootscanner.o bootstrap.o 
@


1.2
log
@Compile and warning cleanup
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/bootstrap/Makefile,v 1.1 1996/10/27 09:46:59 bryanh Exp $
a25 1
              -I../include \
@


1.1
log
@Simplify make files, add full dependencies.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/bootstrap/Makefile.inc,v 1.2 1996/09/26 15:40:37 momjian Exp $
d29 1
a29 1
CFLAGS += $(INCLUDE_OPT)
@
