Subversion Repositories Kolibri OS

Rev

Rev 8368 | Rev 8370 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5205 clevermous 1
if tup.getconfig("NO_GCC") ~= "" then return end
2
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../programs" or tup.getconfig("HELPERDIR")
3
tup.include(HELPERDIR .. "/use_gcc.lua")
4
tup.include(HELPERDIR .. "/use_newlib.lua")
6550 serge 5
CFLAGS = CFLAGS .. " -UWIN32 -U_WIN32 -U__WIN32__ -DLUA_COMPAT_ALL -DLUA_ANSI"
8369 maxcodehac 6
 
7
LDFLAGS = "-call_shared -S -nostdlib -T$(NEWLIB_BASE)/sources/newlib/app-dynamic.lds --image-base 0"
8368 maxcodehac 8
LDFLAGS = LDFLAGS .. " --disable-runtime-pseudo-reloc --subsystem native"
5205 clevermous 9
compile_gcc{
10
  "lapi.c",
11
  "lauxlib.c",
12
  "lbaselib.c",
13
  "lbitlib.c",
14
  "lcode.c",
15
  "lcorolib.c",
16
  "lctype.c",
17
  "ldblib.c",
18
  "ldebug.c",
19
  "ldo.c",
20
  "ldump.c",
21
  "lfunc.c",
22
  "lgc.c",
23
  "linit.c",
24
  "liolib.c",
25
  "llex.c",
26
  "lmathlib.c",
27
  "lmem.c",
28
  "loadlib.c",
29
  "lobject.c",
30
  "lopcodes.c",
31
  "loslib.c",
32
  "lparser.c",
33
  "lstate.c",
34
  "lstring.c",
35
  "lstrlib.c",
36
  "ltable.c",
37
  "ltablib.c",
38
  "ltm.c",
39
  "lua.c",
40
  "lundump.c",
41
  "lvm.c",
42
  "lzio.c",
43
  "kolibri.c"
44
}
45
link_gcc("lua")