Subversion Repositories Kolibri OS

Rev

Rev 5106 | Rev 5131 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5106 Rev 5123
Line 1... Line 1...
1
CFLAGS = "-Os -fno-ident -fomit-frame-pointer -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -mpreferred-stack-boundary=2 -fno-exceptions -fno-asynchronous-unwind-tables -ffast-math -mno-ms-bitfields"
1
CFLAGS = "-Os -fno-ident -fomit-frame-pointer -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -mpreferred-stack-boundary=2 -fno-exceptions -fno-asynchronous-unwind-tables -ffast-math -mno-ms-bitfields -march=pentium-mmx"
-
 
2
CFLAGS_c = "" -- extra flags for *.c
-
 
3
CFLAGS_cpp = " -fno-rtti" -- extra flags for *.cpp
2
LDFLAGS = "-nostdlib -n --file-alignment=16 --section-alignment=16"
4
LDFLAGS = "-nostdlib -n --file-alignment=16 --section-alignment=16"
3
INCLUDES = ""
5
INCLUDES = ""
4
LIBS = ""
6
LIBS = ""
5
LIBDEPS = {}
7
LIBDEPS = {}
6
OBJS = {}
8
OBJS = {}
Line 7... Line 9...
7
 
9
 
8
function compile_gcc(input, output)
10
function compile_gcc(input, output)
9
  if not output then output = '%B.o' end
11
  if not output then output = '%B.o' end
10
  tup.append_table(OBJS,
12
  tup.append_table(OBJS,
11
    tup.foreach_rule(input, "kos32-gcc -c " .. CFLAGS .. " " .. INCLUDES .. " -o %o %f", output)
13
    tup.foreach_rule(input, "kos32-gcc -c " .. CFLAGS .. "$(CFLAGS_%e) " .. INCLUDES .. " -o %o %f", output)
12
  )
14
  )
Line 13... Line 15...
13
end
15
end
14
 
16