fix flex problem

This commit is contained in:
Yuichi Nishiwaki 2014-03-02 13:21:26 +09:00
parent eb7fe03155
commit d77035a537
2 changed files with 3 additions and 4 deletions

View File

@ -1,10 +1,10 @@
find_package(FLEX REQUIRED)
execute_process(COMMAND flex scan.l WORKING_DIRECTORY src)
flex_target(scan src/scan.l src/lex.yy.c COMPILE_FLAGS --header-file="src/lex.yy.h")
add_library(picrin SHARED
src/blob.c src/bool.c src/char.c src/codegen.c src/cont.c src/error.c
src/file.c src/gc.c src/init.c src/lex.yy.c src/lib.c src/load.c src/macro.c
src/file.c src/gc.c src/init.c src/lib.c src/load.c src/macro.c
src/number.c src/pair.c src/port.c src/proc.c src/read.c src/state.c
src/string.c src/symbol.c src/system.c src/time.c src/var.c src/vector.c
src/vm.c src/write.c)
src/vm.c src/write.c ${PROJECT_SOURCE_DIR}/src/lex.yy.c)
target_link_libraries(picrin m xfile)

View File

@ -29,7 +29,6 @@
%option noyywrap
%option extra-type="struct parser_control *"
%option header-file="lex.yy.h"
%option never-interactive
/* comment */