From 895f0af6ac325dc1ea06da855d43fd292d28dff2 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Wed, 5 Jun 2019 01:12:14 +0000 Subject: [PATCH] Add cmm to autobuild. git-svn-id: svn://kolibrios.org@7669 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/cmm/Tupfile.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 programs/develop/cmm/Tupfile.lua diff --git a/programs/develop/cmm/Tupfile.lua b/programs/develop/cmm/Tupfile.lua new file mode 100644 index 0000000000..d4dbcd7df1 --- /dev/null +++ b/programs/develop/cmm/Tupfile.lua @@ -0,0 +1,15 @@ +if tup.getconfig("NO_GCC") ~= "" then return end +HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR") +tup.include(HELPERDIR .. "/use_gcc.lua") + +SDK_DIR = "../../../contrib/sdk" +LDFLAGS = LDFLAGS .. " -static -S -nostdlib -T" .. SDK_DIR .. "/sources/newlib/app-dynamic.lds --image-base 0 -L" .. SDK_DIR .. "/lib --stack 0x100000 " +LIBS = LIBS .. " -lgcc -ldll -lc.dll " +CFLAGS_cpp = CFLAGS_cpp .. " -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -fno-exceptions -D_KOS_ -U_Win32 -U_WIN32 -U__MINGW32__ -mno-ms-bitfields -Wno-write-strings " +INCLUDES = INCLUDES .. " -I" .. SDK_DIR .. "/sources/newlib/libc/include " + +tup.append_table(LIBDEPS, {SDK_DIR .. "/lib/"}) +tup.append_table(LIBDEPS, {SDK_DIR .. "/lib/"}) + +compile_gcc("*.cpp") +link_gcc("cmm")