-
Notifications
You must be signed in to change notification settings - Fork 4
/
xmake.lua
39 lines (34 loc) · 1.03 KB
/
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-lua53")
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-lua53")
add_files("examples/fibonacci/fibonacci.f90")
add_syslinks("lua-5.3")
set_targetdir("examples/fibonacci/")
target("library")
set_kind("shared")
add_files("src/lua.f90")
add_files("examples/library/fortran.f90")
add_syslinks("lua-5.3")
set_filename("fortran.so")
set_targetdir("examples/library/")
target("string")
set_kind("binary")
add_deps("fortran-lua53")
add_files("examples/string/string.f90")
add_syslinks("lua-5.3")
set_targetdir("examples/string/")
target("table")
set_kind("binary")
add_deps("fortran-lua53")
add_files("examples/table/table.f90")
add_syslinks("lua-5.3")
set_targetdir("examples/table/")