2024-09-05 17:32:45 +03:00
|
|
|
(rule
|
|
|
|
|
(target byterun.exe)
|
|
|
|
|
(deps
|
2024-11-03 12:52:25 +03:00
|
|
|
(:include (source_tree include))
|
2024-12-13 13:32:50 +03:00
|
|
|
(:main src/cli.cpp)
|
|
|
|
|
(:parser src/parser.cpp)
|
|
|
|
|
(:analyzer src/analyzer.cpp)
|
2025-03-02 15:05:09 +03:00
|
|
|
(:module_manager src/module_manager.cpp)
|
2024-12-15 16:19:54 +03:00
|
|
|
(:obj types.o interpreter.o)
|
2024-09-05 17:32:45 +03:00
|
|
|
(:runtime ../runtime/runtime.a))
|
|
|
|
|
(mode
|
|
|
|
|
(promote (until-clean)))
|
2024-12-15 03:33:46 +03:00
|
|
|
(action
|
2025-01-23 15:26:54 +03:00
|
|
|
(run g++ -Wall -Wextra -std=c++20 -DWITH_CHECK -Iinclude/ %{main} %{parser} %{analyzer} %{module_manager} %{runtime} %{obj} -o %{target})))
|
2024-12-13 13:32:50 +03:00
|
|
|
|
|
|
|
|
(rule
|
|
|
|
|
(target types.o)
|
|
|
|
|
(deps
|
|
|
|
|
(:include (source_tree include))
|
|
|
|
|
(:src src/types.c)
|
|
|
|
|
(:runtime ../runtime/runtime.a))
|
|
|
|
|
(mode
|
|
|
|
|
(promote (until-clean)))
|
|
|
|
|
(action
|
2025-01-23 15:26:54 +03:00
|
|
|
(run gcc -Wall -Wextra -Iinclude/ -DWITH_CHECK -c %{src} -o %{target})))
|
2024-12-13 13:32:50 +03:00
|
|
|
|
|
|
|
|
(rule
|
|
|
|
|
(target interpreter.o)
|
2024-12-15 03:33:46 +03:00
|
|
|
(deps
|
|
|
|
|
(:include (source_tree include))
|
|
|
|
|
(:src src/interpreter.c)
|
|
|
|
|
(:runtime ../runtime/runtime.a))
|
|
|
|
|
(mode
|
|
|
|
|
(promote (until-clean)))
|
|
|
|
|
(action
|
2025-01-23 15:26:54 +03:00
|
|
|
(run gcc -Wall -Wextra -Iinclude/ -DWITH_CHECK -c %{src} -o %{target})))
|