-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmake.lua
39 lines (34 loc) · 994 Bytes
/
xmake.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
add_rules("mode.debug", "mode.release")
set_languages("fortran")
add_fcflags("-Wall -std=f2008 -fmax-errors=1")
target("fortran-lua54")
set_kind("static")
add_fcflags("-fPIC")
add_files("src/lua.f90")
set_targetdir("build")
set_values("fortran.moduledir", "$(buildir)")
target("fibonacci")
set_kind("binary")
add_deps("fortran-lua54")
add_files("examples/fibonacci/fibonacci.f90")
add_syslinks("lua-5.4")
set_targetdir(".")
target("library")
set_kind("shared")
add_files("src/lua.f90")
add_files("examples/library/fortran.f90")
add_syslinks("lua-5.4")
set_filename("fortran.so")
set_targetdir(".")
target("string")
set_kind("binary")
add_deps("fortran-lua54")
add_files("examples/string/string.f90")
add_syslinks("lua-5.4")
set_targetdir(".")
target("table")
set_kind("binary")
add_deps("fortran-lua54")
add_files("examples/table/table.f90")
add_syslinks("lua-5.4")
set_targetdir(".")