Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5098 | clevermous | 1 | if tup.getconfig("NO_FASM") ~= "" or 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 | LDFLAGS = LDFLAGS .. " -T kolibri.ld" |
||
5 | if tup.getconfig("LANG") == "ru" |
||
6 | then C_LANG = "LANG_RUS" |
||
7 | else C_LANG = "LANG_ENG" -- this includes default case without config |
||
8 | end |
||
9 | |||
10 | if tup.getconfig("TUP_PLATFORM") == "win32" |
||
11 | -- on win32 '#' is not a special character, but backslash and quotes would be printed as is |
||
12 | then tup.rule('echo #define ' .. C_LANG .. ' 1 > %o', {"lang.h"}) |
||
13 | -- on unix '#' should be escaped |
||
14 | else tup.rule('echo "#define" ' .. C_LANG .. ' 1 > %o', {"lang.h"}) |
||
15 | end |
||
16 | tup.append_table(OBJS, tup.rule("asm_code.asm", "fasm %f %o", "asm_code.obj")) |
||
17 | compile_gcc{"z80/z80.c", "system/kolibri.c", "system/stdlib.c", "system/string.c", "e80.c", extra_inputs = {"lang.h"}} |
||
18 | link_gcc("e80") |