mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +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:
@ -1,16 +1,19 @@
|
||||
# $Header: /cvsroot/pgsql/contrib/tsearch/Attic/Makefile,v 1.1 2001/10/12 23:19:09 tgl Exp $
|
||||
# $Header: /cvsroot/pgsql/contrib/tsearch/Attic/Makefile,v 1.2 2002/11/01 22:52:33 tgl Exp $
|
||||
|
||||
subdir = contrib/tsearch
|
||||
top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
MODULE_big = tsearch
|
||||
OBJS = parser.o crc32.o morph.o txtidx.o query.o gistidx.o rewrite.o
|
||||
OBJS = crc32.o morph.o txtidx.o query.o gistidx.o rewrite.o
|
||||
|
||||
DATA_built = tsearch.sql
|
||||
DOCS = README.tsearch
|
||||
REGRESS = tsearch
|
||||
|
||||
# parser is compiled as part of query
|
||||
query.o: parser.c
|
||||
|
||||
parser.c: parser.l
|
||||
ifdef FLEX
|
||||
$(FLEX) $(FLEXFLAGS) -8 -Ptsearch_yy -o'$@' $<
|
||||
|
@ -805,3 +805,5 @@ querytree(PG_FUNCTION_ARGS)
|
||||
|
||||
PG_RETURN_POINTER(res);
|
||||
}
|
||||
|
||||
#include "parser.c"
|
||||
|
Reference in New Issue
Block a user