1
0
mirror of https://github.com/postgres/postgres.git synced 2026-01-05 23:38:41 +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:
Tom Lane
2002-11-01 22:52:34 +00:00
parent 1e970dcee8
commit cab9437a43
17 changed files with 70 additions and 29 deletions

View File

@@ -1,16 +1,19 @@
# $Header: /cvsroot/pgsql/contrib/seg/Makefile,v 1.6 2001/11/16 16:32:33 petere Exp $
# $Header: /cvsroot/pgsql/contrib/seg/Makefile,v 1.7 2002/11/01 22:52:33 tgl Exp $
subdir = contrib/seg
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
MODULE_big = seg
OBJS = seg.o segparse.o segscan.o buffer.o
OBJS = seg.o segparse.o buffer.o
DATA_built = seg.sql
DOCS = README.seg
REGRESS = seg
# segscan is compiled as part of segparse
segparse.o: segscan.c
segparse.c: segparse.h ;
segparse.h: segparse.y

View File

@@ -179,4 +179,4 @@ int seg_yyerror ( char *msg ) {
return 0;
}
#include "segscan.c"