Rev 6543 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5132 | clevermous | 1 | NEWLIB_BASE = tup.getcwd() .. "/../contrib/sdk/sources/newlib" |
10042 | dunkaist | 2 | SDK_CWD = tup.getcwd() .. "/../contrib/sdk/lib" |
3 | SDK_VAR = tup.getvariantdir() .. "/../contrib/sdk/lib" |
||
5132 | clevermous | 4 | |
5 | TOOLCHAIN_LIBPATH = tup.getconfig("TOOLCHAIN_LIBPATH") |
||
6 | -- if not given explicitly in config, try to guess |
||
7 | if TOOLCHAIN_LIBPATH == "" then |
||
8 | if tup.getconfig("TUP_PLATFORM") == "win32" |
||
9 | then TOOLCHAIN_LIBPATH="C:\\MinGW\\msys\\1.0\\home\\autobuild\\tools\\win32\\mingw32\\lib" |
||
10 | else TOOLCHAIN_LIBPATH="/home/autobuild/tools/win32/mingw32/lib" |
||
11 | end |
||
12 | end |
||
13 | |||
10042 | dunkaist | 14 | INCLUDES += " -I$(NEWLIB_BASE)/libc/include" |
15 | LDFLAGS += " -T$(NEWLIB_BASE)/app-dynamic.lds -L$(SDK_CWD) -L$(SDK_VAR) --image-base 0" |
||
16 | tup.append_table(LIBDEPS, {SDK_CWD .. "/ |
||
17 | LIBS += "-lgcc -lc.dll" |