carl9170: config: update CMakeFiles
authorChristian Lamparter <chunkeey@gmail.com>
Fri, 27 Sep 2019 20:49:51 +0000 (22:49 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 27 Sep 2019 20:49:51 +0000 (22:49 +0200)
 - parser and lexer were renamed from the previous generic zconf.*.*

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/.gitignore
config/CMakeLists.txt

index f4679a3709fd3b538476175e8ed15050aeef4e00..c68f45bdf587a60aabdee07d25c10568b7144a0f 100644 (file)
@@ -1,7 +1,4 @@
-zconf.hash.c
-zconf.tab.c
 conf
-lex.backup
-zconf.lex.c
-zconf.tab.h
-
+parser.tab.c
+parser.tab.h
+lexer.lex.c
index 23e7218cfd9edbdba94907332d9ec2ae38a377ca..e13cc885a4ea58f291636fc180ac61bcfc015894 100644 (file)
@@ -11,13 +11,13 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
 
 file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../include/generated")
 
-BISON_TARGET(zconf zconf.y zconf.tab.c COMPILE_FLAGS "-l -b zconf -p yy -t")
-FLEX_TARGET(zconfscan zconf.l zconf.lex.c COMPILE_FLAGS "-Pyy -L")
+BISON_TARGET(parser parser.y parser.tab.c COMPILE_FLAGS "-l -b parser -p yy -t")
+FLEX_TARGET(lexer lexer.l lexer.lex.c COMPILE_FLAGS "-Pyy -L")
 
-SET(zconf_deps ${FLEX_zconfscan_OUTPUTS})
-SET_SOURCE_FILES_PROPERTIES(${BISON_zconf_OUTPUTS}
-      PROPERTIES OBJECT_DEPENDS "${zconf_deps}")
+SET(parser_deps ${FLEX_lexer_OUTPUTS})
+SET_SOURCE_FILES_PROPERTIES(${BISON_parser_OUTPUTS}
+      PROPERTIES OBJECT_DEPENDS "${parser_deps}")
 
-set(conf_src conf.c symbol.c confdata.c expr.c preprocess.c ${BISON_zconf_OUTPUTS} ${FLEX_zconfscan_OUTPUTS})
+set(conf_src conf.c symbol.c confdata.c expr.c preprocess.c ${BISON_parser_OUTPUTS} ${FLEX_lexer_OUTPUTS})
 
 add_executable(conf ${conf_src})