Rev 6549 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6549 | Rev 9704 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | CFLAGS_OPTIMIZE_SPEED = "-O2 -mpush-args -mno-accumulate-outgoing-args " .. CFLAGS_GENERIC |
3 | CFLAGS_OPTIMIZE_SPEED = "-O2 -mpush-args -mno-accumulate-outgoing-args " .. CFLAGS_GENERIC |
4 | -- The following could in specific cases be marginally faster CFLAGS_OPTIMIZE_SPEED, |
4 | -- The following could in specific cases be marginally faster CFLAGS_OPTIMIZE_SPEED, |
5 | -- and in all cases gives a notable overhead in size. |
5 | -- and in all cases gives a notable overhead in size. |
6 | CFLAGS_OPTIMIZE_SPEED_INSANE = "-O2 " .. CFLAGS_GENERIC |
6 | CFLAGS_OPTIMIZE_SPEED_INSANE = "-O2 " .. CFLAGS_GENERIC |
7 | -- Default is optimizing by size. Override on per-project or per-file basis. |
7 | -- Default is optimizing by size. Override on per-project or per-file basis. |
- | 8 | ||
- | 9 | DEFINES =" -D_KOLIBRI_ -D_KOLIBRI -DKOLIBRI -D_KOS_ -D_KOS -DKOS -U_Win32 -UWIN32 -U_WIN32 -U__MINGW32__ -U__WIN32__ " |
|
8 | CFLAGS = CFLAGS_OPTIMIZE_SIZE |
10 | CFLAGS = CFLAGS_OPTIMIZE_SIZE |
Line 9... | Line 11... | ||
9 | 11 | ||
10 | CFLAGS_c = "" -- extra flags for *.c |
12 | CFLAGS_c = "" -- extra flags for *.c |
11 | CFLAGS_cpp = " -fno-rtti" -- extra flags for *.cpp |
13 | CFLAGS_cpp = " -fno-rtti" -- extra flags for *.cpp |
Line 16... | Line 18... | ||
16 | OBJS = {} |
18 | OBJS = {} |
Line 17... | Line 19... | ||
17 | 19 | ||
18 | function compile_gcc(input, output) |
20 | function compile_gcc(input, output) |
19 | if not output then output = '%B.o' end |
21 | if not output then output = '%B.o' end |
20 | tup.append_table(OBJS, |
22 | tup.append_table(OBJS, |
21 | tup.foreach_rule(input, "kos32-gcc -c " .. CFLAGS .. "$(CFLAGS_%e) " .. INCLUDES .. " -o %o %f", output) |
23 | tup.foreach_rule(input, "kos32-gcc -c " .. CFLAGS .. DEFINES .. "$(CFLAGS_%e) " .. INCLUDES .. " -o %o %f", output) |
22 | ) |
24 | ) |
Line 23... | Line 25... | ||
23 | end |
25 | end |
24 | 26 |