Add zlib and jumpnbump to autobuild

git-svn-id: svn://kolibrios.org@8527 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
maxcodehack 2021-01-08 11:06:19 +00:00
parent dadd9561ac
commit 3117bdc927
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,18 @@
if tup.getconfig("NO_GCC") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../programs" or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_gcc.lua")
tup.include(HELPERDIR .. "/use_newlib.lua")
tup.include(HELPERDIR .. "/use_sdl_newlib.lua")
SDK_DIR = "../../sdk"
CFLAGS = CFLAGS .. " -Dstricmp=strcasecmp -DZLIB_SUPPORT -Dstrnicmp=strncasecmp -DUSE_SDL -DNDEBUG -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32"
INCLUDES = INCLUDES .. " -I. -I $(SDK_DIR)/sources/zlib"
LDFLAGS = LDFLAGS .. " -Lsdl --subsystem native"
LIBS = "-ls -lz " .. LIBS
table.insert(LIBDEPS, "$(SDK_DIR)/lib/<libz>")
table.insert(LIBDEPS, "sdl/<libs>")
compile_gcc{"filter.c", "fireworks.c", "main.c", "menu.c", "stub.c"}
link_gcc("jumpnbump")

View File

@ -0,0 +1,11 @@
if tup.getconfig("NO_GCC") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../programs" or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_gcc.lua")
tup.include(HELPERDIR .. "/use_newlib.lua")
tup.include(HELPERDIR .. "/use_sdl_newlib.lua")
CFLAGS = CFLAGS .. " -DNDEBUG -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DUSE_SDL"
INCLUDES = INCLUDES .. " -I.."
compile_gcc{"gfx.c", "input.c", "interrpt.c", "sound.c"}
tup.rule(OBJS, "kos32-ar rcs %o %f", {"libs.a", "<libs>"})

View File

@ -0,0 +1,9 @@
if tup.getconfig("NO_GCC") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../programs" or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_gcc.lua")
tup.include(HELPERDIR .. "/use_newlib.lua")
CFLAGS = CFLAGS .. " -DHAVE_UNISTD_H -U_Win32 -U_WIN32 -U__MINGW32__"
compile_gcc{"adler32.c", "compress.c", "crc32.c", "deflate.c", "gzclose.c", "gzlib.c", "gzread.c", "gzwrite.c", "infback.c", "inffast.c", "inflate.c", "inftrees.c", "trees.c", "uncompr.c", "zutil.c"}
tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../lib/libz.a", "../../lib/<libz>"})