mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +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,17 +1,20 @@
|
||||
# $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.6 2001/11/16 16:32:33 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.7 2002/11/01 22:52:33 tgl Exp $
|
||||
|
||||
subdir = contrib/cube
|
||||
top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
MODULE_big = cube
|
||||
OBJS= cube.o cubeparse.o cubescan.o buffer.o
|
||||
OBJS= cube.o cubeparse.o buffer.o
|
||||
|
||||
DATA_built = cube.sql
|
||||
DOCS = README.cube
|
||||
REGRESS = cube
|
||||
|
||||
|
||||
# cubescan is compiled as part of cubeparse
|
||||
cubeparse.o: cubescan.c
|
||||
|
||||
cubeparse.c: cubeparse.h ;
|
||||
|
||||
cubeparse.h: cubeparse.y
|
||||
|
@ -276,3 +276,4 @@ static NDBOX * write_point_as_box(char *str, int dim)
|
||||
return(bp);
|
||||
}
|
||||
|
||||
#include "cubescan.c"
|
||||
|
Reference in New Issue
Block a user