Rev 6543 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6543 | Rev 10042 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | NEWLIB_BASE = tup.getcwd() .. "/../contrib/sdk/sources/newlib" |
1 | NEWLIB_BASE = tup.getcwd() .. "/../contrib/sdk/sources/newlib" |
2 | NEWLIB_LIB = tup.getcwd() .. "/../contrib/sdk/lib" |
2 | SDK_CWD = tup.getcwd() .. "/../contrib/sdk/lib" |
- | 3 | SDK_VAR = tup.getvariantdir() .. "/../contrib/sdk/lib" |
|
Line 3... | Line 4... | ||
3 | 4 | ||
4 | TOOLCHAIN_LIBPATH = tup.getconfig("TOOLCHAIN_LIBPATH") |
5 | TOOLCHAIN_LIBPATH = tup.getconfig("TOOLCHAIN_LIBPATH") |
5 | -- if not given explicitly in config, try to guess |
6 | -- if not given explicitly in config, try to guess |
6 | if TOOLCHAIN_LIBPATH == "" then |
7 | if TOOLCHAIN_LIBPATH == "" then |
7 | if tup.getconfig("TUP_PLATFORM") == "win32" |
8 | if tup.getconfig("TUP_PLATFORM") == "win32" |
8 | then TOOLCHAIN_LIBPATH="C:\\MinGW\\msys\\1.0\\home\\autobuild\\tools\\win32\\mingw32\\lib" |
9 | then TOOLCHAIN_LIBPATH="C:\\MinGW\\msys\\1.0\\home\\autobuild\\tools\\win32\\mingw32\\lib" |
9 | else TOOLCHAIN_LIBPATH="/home/autobuild/tools/win32/mingw32/lib" |
10 | else TOOLCHAIN_LIBPATH="/home/autobuild/tools/win32/mingw32/lib" |
10 | end |
11 | end |
Line 11... | Line 12... | ||
11 | end |
12 | end |
12 | 13 | ||
13 | INCLUDES = INCLUDES .. " -I" .. NEWLIB_BASE .. "/libc/include" |
14 | INCLUDES += " -I$(NEWLIB_BASE)/libc/include" |
14 | LDFLAGS = LDFLAGS .. " -T$(NEWLIB_BASE)/app-dynamic.lds -L$(NEWLIB_LIB) --image-base 0" |
15 | LDFLAGS += " -T$(NEWLIB_BASE)/app-dynamic.lds -L$(SDK_CWD) -L$(SDK_VAR) --image-base 0" |