lama_byterun/tutorial/dune
danyaberezun 7356ddc80d try
2025-02-28 18:19:31 +01:00

215 lines
3.7 KiB
Text

(rule
(targets Expressions.x32.exe)
; (enabled_if (= %{ocaml-config:os_type} "linux"))
(enabled_if (= %{system} "linux"))
(deps (:lama Expressions.lama) ../runtime32/runtime.a ../stdlib/x32/Fun.i)
(mode
(promote (until-clean)))
(action
(setenv
LAMA
"../runtime32"
(run
%{project_root}/src/Driver.exe
-32
%{lama}
-I
../stdlib/x32
-runtime
../runtime32
-o
%{targets}))))
(rule
(targets Expressions.x64.exe)
(deps (:lama Expressions.lama) ../runtime/runtime.a ../stdlib/x64/Fun.i)
(mode
(promote (until-clean)))
(action
(setenv
LAMA
"../runtime"
(run
%{project_root}/src/Driver.exe
-64
%{lama}
-I
../stdlib/x64
-runtime
../runtime
-o
%{targets}))))
(rule
(targets Functions.x32.exe)
; (enabled_if (= %{ocaml-config:os_type} "linux"))
(enabled_if (= %{system} "linux"))
(deps (:lama Functions.lama) ../runtime32/runtime.a ../stdlib/x32/Fun.i)
(mode
(promote (until-clean)))
(action
(setenv
LAMA
"../runtime32"
(run
%{project_root}/src/Driver.exe
-32
%{lama}
-I
../stdlib/x32
-runtime
../runtime32
-o
%{targets}))))
(rule
(targets Functions.x64.exe)
(deps (:lama Functions.lama) ../runtime/runtime.a ../stdlib/x64/Fun.i)
(mode
(promote (until-clean)))
(action
(setenv
LAMA
"../runtime"
(run
%{project_root}/src/Driver.exe
-64
%{lama}
-I
../stdlib/x64
-runtime
../runtime
-o
%{targets}))))
(rule
(targets Hello.x32.exe)
; (enabled_if (= %{ocaml-config:os_type} "linux"))
(enabled_if (= %{system} "linux"))
(deps (:lama Hello.lama) ../runtime32/runtime.a ../stdlib/x32/Fun.i)
(mode
(promote (until-clean)))
(action
(setenv
LAMA
"../runtime32"
(run
%{project_root}/src/Driver.exe
-32
%{lama}
-I
../stdlib/x32
-runtime
../runtime32
-o
%{targets}))))
(rule
(targets Hello.x64.exe)
(deps (:lama Hello.lama) ../runtime/runtime.a ../stdlib/x64/Fun.i)
(mode
(promote (until-clean)))
(action
(setenv
LAMA
"../runtime"
(run
%{project_root}/src/Driver.exe
-64
%{lama}
-I
../stdlib/x64
-runtime
../runtime
-o
%{targets}))))
(rule
(targets PatternMatching.x32.exe)
; (enabled_if (= %{ocaml-config:os_type} "linux"))
(enabled_if (= %{system} "linux"))
(deps (:lama PatternMatching.lama) ../runtime32/runtime.a ../stdlib/x32/Fun.i)
(mode
(promote (until-clean)))
(action
(setenv
LAMA
"../runtime32"
(run
%{project_root}/src/Driver.exe
-32
%{lama}
-I
../stdlib/x32
-runtime
../runtime32
-o
%{targets}))))
(rule
(targets PatternMatching.x64.exe)
(deps (:lama PatternMatching.lama) ../runtime/runtime.a ../stdlib/x64/Fun.i)
(mode
(promote (until-clean)))
(action
(setenv
LAMA
"../runtime"
(run
%{project_root}/src/Driver.exe
-64
%{lama}
-I
../stdlib/x64
-runtime
../runtime
-o
%{targets}))))
(rule
(targets Values.x32.exe)
; (enabled_if (= %{ocaml-config:os_type} "linux"))
(enabled_if (= %{system} "linux"))
(deps (:lama Values.lama) ../runtime32/runtime.a ../stdlib/x32/Fun.i)
(mode
(promote (until-clean)))
(action
(setenv
LAMA
"../runtime32"
(run
%{project_root}/src/Driver.exe
-32
%{lama}
-I
../stdlib/x32
-runtime
../runtime32
-o
%{targets}))))
(rule
(targets Values.x64.exe)
(deps (:lama Values.lama) ../runtime/runtime.a ../stdlib/x64/Fun.i)
(mode
(promote (until-clean)))
(action
(setenv
LAMA
"../runtime"
(run
%{project_root}/src/Driver.exe
-64
%{lama}
-I
../stdlib/x64
-runtime
../runtime
-o
%{targets}))))