mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-25 08:08:47 +00:00
24 lines
608 B
Text
24 lines
608 B
Text
(rule
|
|
(target byterun.exe)
|
|
(deps
|
|
(:include (source_tree include))
|
|
(:main src/cli.c src/interpreter.c)
|
|
(:parser src/parser.c)
|
|
(:utils src/types.c)
|
|
(:runtime ../runtime/runtime.a)
|
|
(:module_manager module_manager.o))
|
|
(mode
|
|
(promote (until-clean)))
|
|
(action
|
|
(run gcc -Iinclude/ %{main} %{parser} %{utils} %{runtime} %{module_manager} -lstdc++ -o %{target})))
|
|
|
|
(rule
|
|
(target module_manager.o)
|
|
(deps
|
|
(:include (source_tree include))
|
|
(:src src/module_manager.cpp)
|
|
(:runtime ../runtime/runtime.a))
|
|
(mode
|
|
(promote (until-clean)))
|
|
(action
|
|
(run g++ -Iinclude/ -c %{src} -o %{target})))
|