2021-01-08 12:06:19 +01:00
|
|
|
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")
|
|
|
|
|
2024-05-21 16:45:21 +02:00
|
|
|
SDK_DIR_CWD = tup.getcwd() .. "/../../sdk"
|
|
|
|
SDK_DIR_VAR = tup.getvariantdir() .. "/../../sdk"
|
2021-01-08 12:06:19 +01:00
|
|
|
|
|
|
|
CFLAGS = CFLAGS .. " -Dstricmp=strcasecmp -DZLIB_SUPPORT -Dstrnicmp=strncasecmp -DUSE_SDL -DNDEBUG -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32"
|
2024-05-21 16:45:21 +02:00
|
|
|
INCLUDES = INCLUDES .. " -I. -I " .. SDK_DIR_CWD .. "/sources/zlib"
|
|
|
|
LDFLAGS = LDFLAGS .. " -L" .. tup.getvariantdir() .. "/sdl --subsystem native"
|
2021-06-05 23:20:22 +02:00
|
|
|
LIBS = "-ls -lz.dll " .. LIBS
|
2021-01-08 12:06:19 +01:00
|
|
|
|
2024-05-21 16:45:21 +02:00
|
|
|
table.insert(LIBDEPS, SDK_DIR_VAR .. "/lib/<libz.dll.a>")
|
2021-01-08 12:06:19 +01:00
|
|
|
table.insert(LIBDEPS, "sdl/<libs>")
|
|
|
|
|
|
|
|
compile_gcc{"filter.c", "fireworks.c", "main.c", "menu.c", "stub.c"}
|
|
|
|
link_gcc("jumpnbump")
|