mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
46 lines
1,021 B
Text
46 lines
1,021 B
Text
(rule
|
|
(target byterun.exe)
|
|
(deps
|
|
(:include (source_tree include))
|
|
(:main src/cli.cpp)
|
|
(:parser src/parser.cpp)
|
|
(:analyzer src/analyzer.cpp)
|
|
(:obj types.o parser.o interpreter.o)
|
|
(:runtime ../runtime/runtime.a))
|
|
(mode
|
|
(promote (until-clean)))
|
|
(action
|
|
(run g++ -std=c++20 -Iinclude/ %{main} %{parser} %{analyzer} %{runtime} %{obj} -o %{target})))
|
|
|
|
(rule
|
|
(target types.o)
|
|
(deps
|
|
(:include (source_tree include))
|
|
(:src src/types.c)
|
|
(:runtime ../runtime/runtime.a))
|
|
(mode
|
|
(promote (until-clean)))
|
|
(action
|
|
(run gcc -Iinclude/ -c %{src} -o %{target})))
|
|
|
|
(rule
|
|
(target parser.o)
|
|
(deps
|
|
(:include (source_tree include))
|
|
(:src src/parser.c)
|
|
(:runtime ../runtime/runtime.a))
|
|
(mode
|
|
(promote (until-clean)))
|
|
(action
|
|
(run gcc -Iinclude/ -c %{src} -o %{target})))
|
|
|
|
(rule
|
|
(target interpreter.o)
|
|
(deps
|
|
(:include (source_tree include))
|
|
(:src src/interpreter.c)
|
|
(:runtime ../runtime/runtime.a))
|
|
(mode
|
|
(promote (until-clean)))
|
|
(action
|
|
(run gcc -Iinclude/ -c %{src} -o %{target})))
|