# Makefile for the plpgsql shared object
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.15 1999/03/20 18:00:38 tgl Exp $
+# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.16 1999/03/21 02:27:46 tgl Exp $
#
#-------------------------------------------------------------------------
# For fmgr.h
CFLAGS+= -I$(SRCDIR)/backend
+# If using flex, ask for a case-insensitive, lex-compatible lexer.
+ifneq (,$(findstring flex,$(LEX)))
LFLAGS+= -i -l
+endif
OBJS= pl_parse.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o
rm -f y.tab.c y.tab.h
pl_scan.c: scan.l
- $(LEX) $<
+ $(LEX) $(LFLAGS) $<
sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' <lex.yy.c >pl_scan.c
rm -f lex.yy.c
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.3 1999/03/21 01:07:07 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.4 1999/03/21 02:27:47 tgl Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
#include "string.h"
#include "plpgsql.h"
-extern int yylineno; /* not always declared by lexer... */
-
#include "pl_scan.c"
static PLpgSQL_expr *read_sqlstmt(int until, char *s, char *sqlstart);