Rev 8949 | Rev 10042 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8949 | Rev 9719 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | if tup.getconfig("NO_CMM") ~= "" then return end |
1 | if tup.getconfig("NO_CMM") ~= "" then return end |
- | 2 | if tup.getconfig("NO_TCC") ~= "" then return end |
|
- | 3 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR") |
|
- | 4 | tup.include(HELPERDIR .. "/use_tcc.lua") |
|
- | 5 | ||
2 | if tup.getconfig("LANG") == "ru" |
6 | if tup.getconfig("LANG") == "ru" |
3 | then C_LANG = "LANG_RUS" |
7 | then C_LANG = "LANG_RUS" |
4 | else C_LANG = "LANG_ENG" -- this includes default case without config |
8 | else C_LANG = "LANG_ENG" -- this includes default case without config |
5 | end |
9 | end |
- | 10 | ||
- | 11 | LFLAGS = LFLAGS .. " -stack=20480" |
|
- | 12 | LIBS = LIBS .. " ../../develop/ktcc/trunk/bin/lib/tiny.o -nostdlib -lbox_lib -lini -limg" |
|
- | 13 | ||
6 | tup.rule("Eolite.c", "c-- /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "Eolite.com") |
14 | tup.rule("Eolite.c", "c-- -coff /D=" .. C_LANG .. " %f %o", "%B.obj") |
- | 15 | tup.rule("Eolite.obj", "objconv -felf32 %f %o", "%B.o") |
|
- | 16 | link_tcc("Eolite.o", "%B.com") |