From 3a8ac5484c464ec0542fc4edd4a1723bd0fd132a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 12 Jun 2013 00:02:22 -0700 Subject: [PATCH] Rename lex.cy.c to .cpp (it's actually a C++ file). --- GNUmakefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index ef72335..e2c6f71 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -188,7 +188,7 @@ endif all: $(all) clean:: - rm -rf *.lo *.o *.d *.t.hpp .libs */*.d */*.lo */.libs lib*.la $(all) Struct.hpp lex.cy.c Cycript.tab.cc Cycript.tab.hh location.hh position.hh stack.hh Cycript.yy Cycript.l control Bridge.gperf Bridge.hpp Cycript.output + rm -rf *.lo *.o *.d *.t.hpp .libs */*.d */*.lo */.libs lib*.la $(all) Struct.hpp lex.cy.cpp Cycript.tab.cc Cycript.tab.hh location.hh position.hh stack.hh Cycript.yy Cycript.l control Bridge.gperf Bridge.hpp Cycript.output ifneq ($(srcdir),.) rm -rf Mach ObjectiveC sig endif @@ -207,7 +207,7 @@ Cycript.tab.cc Cycript.tab.hh location.hh position.hh: Cycript.yy ! grep -n '^ *$$default reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Cycript.output -B 2 | grep 'shift, and go to state [0-9]*$$' ! grep -n '^ *$$default reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Cycript.output -B 2 | grep -v '$$default' | grep 'reduce using rule [0-9]* ([^)]*)$$' -lex.cy.c: Cycript.l +lex.cy.cpp: Cycript.l $(flex) -t $< | $(sed) -e 's/int yyl;/yy_size_t yyl;/;s/int yyleng_r;/yy_size_t yyleng_r;/' >$@ #Parser.hpp: Parser.py Parser.dat @@ -216,7 +216,7 @@ lex.cy.c: Cycript.l Cycript.tab.lo: Cycript.tab.cc $(header) $(libtool) --mode=compile $(cxx) $(cflags) -c -o $@ $< -lex.cy.lo: lex.cy.c $(header) +lex.cy.lo: lex.cy.cpp $(header) $(libtool) --mode=compile $(cxx) $(cflags) -c -o $@ $< %.lo: %.cpp $(header) -- 2.49.0