Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8486 | maxcodehac | 1 | if tup.getconfig("NO_GCC") ~= "" then return end |
2 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR") |
||
3 | tup.include(HELPERDIR .. "/use_gcc.lua") |
||
4 | tup.include(HELPERDIR .. "/use_newlib.lua") |
||
5 | |||
6 | LDFLAGS = LDFLAGS .. " -Llibmujs --subsystem native" |
||
7 | LIBS = "-lmujs " .. LIBS |
||
8 | table.insert(LIBDEPS, "libmujs/ |
||
9 | INCLUDES = INCLUDES .. " -Ilibmujs" |
||
10 | |||
11 | compile_gcc{"kosjs.c", "import.c"} |
||
12 | link_gcc("kosjs") |
||
13 |