Rev 9774 | Rev 9844 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9774 | Rev 9843 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | if tup.getconfig("NO_FASM") ~= "" then return end |
1 | if tup.getconfig("NO_FASM") ~= "" then return end |
2 | if tup.getconfig("NO_GCC") ~= "" then return end |
2 | if tup.getconfig("NO_GCC") ~= "" then return end |
3 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../../" or tup.getconfig("HELPERDIR") |
3 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../../" or tup.getconfig("HELPERDIR") |
4 | tup.include(HELPERDIR .. "/use_gcc.lua") |
4 | tup.include(HELPERDIR .. "/use_gcc.lua") |
Line 5... | Line 5... | ||
5 | 5 | ||
6 | CFLAGS = " -c -nostdinc -DGNUC -D_BUILD_LIBC -Os -fno-common -fno-builtin -fno-leading-underscore -fno-pie" |
6 | CFLAGS = " -r -nostdinc -nostdlib -DGNUC -D_BUILD_LIBC " |
Line -... | Line 7... | ||
- | 7 | INCLUDES = " -I../include" |
|
- | 8 | ||
- | 9 | GAS_SRC = { |
|
- | 10 | "setjmp/setjmp.s", |
|
- | 11 | "setjmp/longjmp.s", |
|
- | 12 | "math/round.s", |
|
- | 13 | "math/atan.s", |
|
- | 14 | "math/pow2.s", |
|
- | 15 | "math/log10.s", |
|
- | 16 | "math/exp.s", |
|
- | 17 | "math/pow10.s", |
|
- | 18 | "math/log.s", |
|
- | 19 | "math/pow.s", |
|
- | 20 | "math/ceil.s", |
|
- | 21 | "math/cos.s", |
|
- | 22 | "math/sin.s", |
|
- | 23 | "math/asin.s", |
|
- | 24 | "math/modf.s", |
|
- | 25 | "math/floor.s", |
|
- | 26 | "math/fabs.s", |
|
- | 27 | "math/fmod.s", |
|
- | 28 | "math/log2.s", |
|
- | 29 | "math/acos.s", |
|
7 | INCLUDES = " -I../include" |
30 | "math/modfl.s", |
- | 31 | "math/atan2.s", |
|
- | 32 | "math/sqrt.s", |
|
- | 33 | "math/tan.s", |
|
- | 34 | "string/memset.s", |
|
Line 8... | Line 35... | ||
8 | 35 | "string/memmove.s" |
|
9 | OBJS = {"math/tan.obj", "math/sqrt.obj"} |
- | |
10 | - | ||
Line -... | Line 36... | ||
- | 36 | } |
|
11 | for _, OBJ in pairs(OBJS) do |
37 | |
- | 38 | OBJS = {} |
|
Line 12... | Line 39... | ||
12 | tup.rule(string.gsub(OBJ, ".obj", ".asm"), "fasm %f %o ", OBJ) |
39 | |
- | 40 | tup.append_table(OBJS, |
|
- | 41 | tup.foreach_rule(GAS_SRC, "as --32 %f -o %o", "%B.o") |
|
13 | end |
42 | ) |