YACC=@YACC@
LEX=@LEX@
-%c: %l
- @echo "WARNING: Lexer not generated. Run 'make parser' to manually build lexer/parser."
-
# Standalone LWGEOM objects
SA_OBJS = \
stringbuffer.o \
liblwgeom_internal.h \
lwgeom_log.h \
lwgeom_geos.h \
+ lwin_wkt_parse.h \
varint.h
all: liblwgeom.la
$(LT_NM_OBJS): %.lo: %.c
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(NUMERICFLAGS) -c -o $@ $<
-# Manually generate WKT parser from Flex/Bison inputs
-# Bison 2.5, Flex 2.5.35
-parser:
+lwin_wkt_parse.c lwin_wkt_parse.h: lwin_wkt_parse.y
$(YACC) -o'lwin_wkt_parse.c' -d lwin_wkt_parse.y
- $(LEX) -i lwin_wkt_lex.l
-# $(YACC) --debug --verbose -o'$@' -d $<
-# $(YACC) -o'$@' -d $^
-# $(LEX) -i $<
+lwin_wkt_lex.c: lwin_wkt_lex.l
+ $(LEX) -i lwin_wkt_lex.l
liblwgeom.h: liblwgeom.h.in
cd .. && ./config.status