F diff --git a/build/cmake/generator.txt b/build/cmake/generator.txt
--- a/build/cmake/generator.txt
+++ b/build/cmake/generator.txt
set(GENERATOR_SOURCES
src/frontend/lex/automatas/generator/generator.c
- src/frontend/lex/automatas/automata.c
src/frontend/lex/automatas/generator/keyword_list.c
)
add_executable(generator ${GENERATOR_SOURCES})
- target_link_libraries(generator wonky_assert misc)
+ target_link_libraries(generator wonky_assert misc automata_inner)
add_custom_command(POST_BUILD COMMAND generator
ARGS ${CMAKE_BINARY_DIR}
F diff --git a/build/cmake/libs.txt b/build/cmake/libs.txt
--- a/build/cmake/libs.txt
+++ b/build/cmake/libs.txt
include(build/cmake/libs/innards.txt)
include(build/cmake/libs/wonky_assert.txt)
include(build/cmake/libs/wobler_assert.txt)
+ include(build/cmake/libs/chonky.txt)
+ include(build/cmake/libs/automata_inner.txt)
+
F diff --git a/build/cmake/libs/automata_inner.txt b/build/cmake/libs/automata_inner.txt
new file mode 100644
--- /dev/null
+++ b/build/cmake/libs/automata_inner.txt
+ add_library(automata_inner STATIC
+ src/frontend/lex/automatas/automata.c
+ )
F diff --git a/build/cmake/libs/chonky.txt b/build/cmake/libs/chonky.txt
new file mode 100644
--- /dev/null
+++ b/build/cmake/libs/chonky.txt
+ add_library(chonky STATIC
+ ${CMAKE_BINARY_DIR}/chonky.c
+ )
F diff --git a/build/cmake/libs/innards.txt b/build/cmake/libs/innards.txt
--- a/build/cmake/libs/innards.txt
+++ b/build/cmake/libs/innards.txt
src/debug/debug_value.c
src/environment/command_arguments/gcc_arguments.c
src/environment/error/gcc_error.c
- ${CMAKE_BINARY_DIR}/chonky.c
- #src/frontend/lex/automatas/chonky_jr.c
- src/frontend/lex/automatas/automata.c
src/frontend/lex/lexer.c
src/frontend/lex/preprocessing.c
src/frontend/parse/parse_declaration.c
F diff --git a/build/cmake/libs/misc.txt b/build/cmake/libs/misc.txt
--- a/build/cmake/libs/misc.txt
+++ b/build/cmake/libs/misc.txt
add_library(misc STATIC
src/misc/gcc_string.c
- src/misc/gcc_string.h
src/misc/map.c
- src/misc/map.h
- src/misc/map.hh
src/misc/queue.c
- src/misc/queue.h
- src/misc/queue.hh
src/misc/stack.c
- src/misc/stack.h
- src/misc/stack.hh
src/misc/wonky_malloc.c
- src/misc/wonky_malloc.h
- src/misc/wonky_malloc.hh
)
F diff --git a/build/cmake/wobler.txt b/build/cmake/wobler.txt
--- a/build/cmake/wobler.txt
+++ b/build/cmake/wobler.txt
add_executable(wobler EXCLUDE_FROM_ALL src/debug/wobler/wobler.c)
- target_link_libraries(wobler innards wobler_assert misc)
+ target_link_libraries(wobler innards wobler_assert misc chonky automata_inner)
add_custom_target(test DEPENDS wobler wobler_assert)
add_custom_command(TARGET test POST_BUILD COMMAND wobler ARGS ${WOBLER_DUMP_LOG} WORKING_DIRECTORY ${TEST_DIR} VERBATIM)
F diff --git a/build/cmake/wonky.txt b/build/cmake/wonky.txt
--- a/build/cmake/wonky.txt
+++ b/build/cmake/wonky.txt
add_executable(wonky src/wonky.c)
- target_link_libraries(wonky innards wonky_assert misc)
+ target_link_libraries(wonky innards wonky_assert misc chonky automata_inner)