mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Dunify tutorial
Signed-off-by: Kakadu <Kakadu@pm.me>
This commit is contained in:
parent
3f7f51b2f0
commit
a91f4824c4
6 changed files with 262 additions and 51 deletions
187
tutorial/dune
187
tutorial/dune
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
(rule
|
||||
(targets Hello.exe)
|
||||
(deps Hello.lama)
|
||||
(targets Expressions.x32.exe)
|
||||
(deps (:lama Expressions.lama) ../runtime32/runtime.a)
|
||||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
|
|
@ -9,11 +10,191 @@
|
|||
"../runtime32"
|
||||
(run
|
||||
%{project_root}/src/Driver.exe
|
||||
%{deps}
|
||||
-march=x86
|
||||
%{lama}
|
||||
-I
|
||||
../stdlib/x32
|
||||
-I
|
||||
../runtime32
|
||||
-o
|
||||
%{targets}))))
|
||||
|
||||
(rule
|
||||
(targets Expressions.x64.exe)
|
||||
(deps (:lama Expressions.lama) ../runtime/runtime.a)
|
||||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(setenv
|
||||
LAMA
|
||||
"../runtime"
|
||||
(run
|
||||
%{project_root}/src/Driver.exe
|
||||
-march=x86_64
|
||||
%{lama}
|
||||
-I
|
||||
../stdlib/x64
|
||||
-I
|
||||
../runtime
|
||||
-o
|
||||
%{targets}))))
|
||||
|
||||
(rule
|
||||
(targets Functions.x32.exe)
|
||||
(deps (:lama Functions.lama) ../runtime32/runtime.a)
|
||||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(setenv
|
||||
LAMA
|
||||
"../runtime32"
|
||||
(run
|
||||
%{project_root}/src/Driver.exe
|
||||
-march=x86
|
||||
%{lama}
|
||||
-I
|
||||
../stdlib/x32
|
||||
-I
|
||||
../runtime32
|
||||
-o
|
||||
%{targets}))))
|
||||
|
||||
(rule
|
||||
(targets Functions.x64.exe)
|
||||
(deps (:lama Functions.lama) ../runtime/runtime.a)
|
||||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(setenv
|
||||
LAMA
|
||||
"../runtime"
|
||||
(run
|
||||
%{project_root}/src/Driver.exe
|
||||
-march=x86_64
|
||||
%{lama}
|
||||
-I
|
||||
../stdlib/x64
|
||||
-I
|
||||
../runtime
|
||||
-o
|
||||
%{targets}))))
|
||||
|
||||
(rule
|
||||
(targets Hello.x32.exe)
|
||||
(deps (:lama Hello.lama) ../runtime32/runtime.a)
|
||||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(setenv
|
||||
LAMA
|
||||
"../runtime32"
|
||||
(run
|
||||
%{project_root}/src/Driver.exe
|
||||
-march=x86
|
||||
%{lama}
|
||||
-I
|
||||
../stdlib/x32
|
||||
-I
|
||||
../runtime32
|
||||
-o
|
||||
%{targets}))))
|
||||
|
||||
(rule
|
||||
(targets Hello.x64.exe)
|
||||
(deps (:lama Hello.lama) ../runtime/runtime.a)
|
||||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(setenv
|
||||
LAMA
|
||||
"../runtime"
|
||||
(run
|
||||
%{project_root}/src/Driver.exe
|
||||
-march=x86_64
|
||||
%{lama}
|
||||
-I
|
||||
../stdlib/x64
|
||||
-I
|
||||
../runtime
|
||||
-o
|
||||
%{targets}))))
|
||||
|
||||
(rule
|
||||
(targets PatternMatching.x32.exe)
|
||||
(deps (:lama PatternMatching.lama) ../runtime32/runtime.a)
|
||||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(setenv
|
||||
LAMA
|
||||
"../runtime32"
|
||||
(run
|
||||
%{project_root}/src/Driver.exe
|
||||
-march=x86
|
||||
%{lama}
|
||||
-I
|
||||
../stdlib/x32
|
||||
-I
|
||||
../runtime32
|
||||
-o
|
||||
%{targets}))))
|
||||
|
||||
(rule
|
||||
(targets PatternMatching.x64.exe)
|
||||
(deps (:lama PatternMatching.lama) ../runtime/runtime.a)
|
||||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(setenv
|
||||
LAMA
|
||||
"../runtime"
|
||||
(run
|
||||
%{project_root}/src/Driver.exe
|
||||
-march=x86_64
|
||||
%{lama}
|
||||
-I
|
||||
../stdlib/x64
|
||||
-I
|
||||
../runtime
|
||||
-o
|
||||
%{targets}))))
|
||||
|
||||
(rule
|
||||
(targets Values.x32.exe)
|
||||
(deps (:lama Values.lama) ../runtime32/runtime.a)
|
||||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(setenv
|
||||
LAMA
|
||||
"../runtime32"
|
||||
(run
|
||||
%{project_root}/src/Driver.exe
|
||||
-march=x86
|
||||
%{lama}
|
||||
-I
|
||||
../stdlib/x32
|
||||
-I
|
||||
../runtime32
|
||||
-o
|
||||
%{targets}))))
|
||||
|
||||
(rule
|
||||
(targets Values.x64.exe)
|
||||
(deps (:lama Values.lama) ../runtime/runtime.a)
|
||||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(setenv
|
||||
LAMA
|
||||
"../runtime"
|
||||
(run
|
||||
%{project_root}/src/Driver.exe
|
||||
-march=x86_64
|
||||
%{lama}
|
||||
-I
|
||||
../stdlib/x64
|
||||
-I
|
||||
../runtime
|
||||
-o
|
||||
%{targets}))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue