mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
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.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
#
|
||||
# Makefile for the bootstrap module
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.30 2002/01/09 00:06:42 tgl Exp $
|
||||
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.31 2002/11/01 22:52:33 tgl Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@ -14,9 +14,9 @@ override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
|
||||
|
||||
# qnx4's wlink currently crashes with bootstrap.o
|
||||
ifneq ($(PORTNAME), qnx4)
|
||||
OBJS= bootparse.o bootscanner.o bootstrap.o
|
||||
OBJS= bootparse.o bootstrap.o
|
||||
else
|
||||
OBJS= bootparse.o bootscanner.o
|
||||
OBJS= bootparse.o
|
||||
endif
|
||||
|
||||
|
||||
@ -27,8 +27,10 @@ SUBSYS.o: $(OBJS)
|
||||
$(LD) $(LDREL) $(LDOUT) $@ $^
|
||||
|
||||
|
||||
bootstrap.o bootscanner.o: $(srcdir)/bootstrap_tokens.h
|
||||
bootstrap.o bootparse.o: $(srcdir)/bootstrap_tokens.h
|
||||
|
||||
# bootscanner is compiled as part of bootparse
|
||||
bootparse.o: $(srcdir)/bootscanner.c
|
||||
|
||||
# `sed' rules to remove conflicts between bootstrap scanner and parser
|
||||
# and the SQL scanner and parser. For correctness' sake the rules that
|
||||
|
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.52 2002/09/02 01:05:03 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.53 2002/11/01 22:52:33 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -335,3 +335,5 @@ boot_ident :
|
||||
ID { $$=yylval.ival; }
|
||||
;
|
||||
%%
|
||||
|
||||
#include "bootscanner.c"
|
||||
|
@ -1,7 +1,7 @@
|
||||
%{
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* bootscanner.lex
|
||||
* bootscanner.l
|
||||
* a lexical scanner for the bootstrap parser
|
||||
*
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootscanner.l,v 1.25 2002/07/30 16:33:08 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootscanner.l,v 1.26 2002/11/01 22:52:33 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
Reference in New Issue
Block a user