Rev 8316 | Rev 10042 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8310 | 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 | -- C_Layer |
||
8316 | dunkaist | 7 | CFLAGS = CFLAGS .. " -std=c99 -Wall -Wextra" |
8 | INCLUDES = INCLUDES .. " -I../../../contrib/C_Layer/INCLUDE" |
||
9 | table.insert(LIBDEPS, "../../../contrib/C_Layer/OBJ/ |
||
10 | LIBS = LIBS .. " ../../../contrib/C_Layer/OBJ/loadlibimg.o" |
||
8310 | maxcodehac | 11 | |
8378 | maxcodehac | 12 | -- Subsystem native |
13 | LDFLAGS = LDFLAGS .. " --subsystem native" |
||
14 | |||
8310 | maxcodehac | 15 | compile_gcc{"fridge.c"} |
16 | link_gcc("fridge") |