Rev 9666 | Rev 9843 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9666 | Rev 9774 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | if tup.getconfig("NO_FASM") ~= "" then return end |
|
1 | if tup.getconfig("NO_GCC") ~= "" then return end |
2 | if tup.getconfig("NO_GCC") ~= "" then return end |
2 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../../" or tup.getconfig("HELPERDIR") |
3 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../../" or tup.getconfig("HELPERDIR") |
3 | tup.include(HELPERDIR .. "/use_gcc.lua") |
4 | tup.include(HELPERDIR .. "/use_gcc.lua") |
Line 4... | Line 5... | ||
4 | 5 | ||
5 | CFLAGS = " -c -nostdinc -DGNUC -D_BUILD_LIBC -Os -fno-common -fno-builtin -fno-leading-underscore -fno-pie" |
6 | CFLAGS = " -c -nostdinc -DGNUC -D_BUILD_LIBC -Os -fno-common -fno-builtin -fno-leading-underscore -fno-pie" |
Line -... | Line 7... | ||
- | 7 | INCLUDES = " -I../include" |
|
- | 8 | ||
- | 9 | OBJS = {"math/tan.obj", "math/sqrt.obj"} |
|
- | 10 | ||
- | 11 | for _, OBJ in pairs(OBJS) do |
|
- | 12 | tup.rule(string.gsub(OBJ, ".obj", ".asm"), "fasm %f %o ", OBJ) |
|
6 | INCLUDES = " -I../include" |
13 | end |
- | 14 | ||
- | 15 | tup.rule("libc.c", "kos32-gcc" .. CFLAGS .. INCLUDES .. " -o %o %f ", "libc_tmp.obj") |
|
- | 16 |