Rev 8723 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8527 | maxcodehac | 1 | if tup.getconfig("NO_GCC") ~= "" then return end |
2 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../programs" or tup.getconfig("HELPERDIR") |
||
3 | tup.include(HELPERDIR .. "/use_gcc.lua") |
||
4 | tup.include(HELPERDIR .. "/use_newlib.lua") |
||
5 | tup.include(HELPERDIR .. "/use_sdl_newlib.lua") |
||
6 | |||
7 | SDK_DIR = "../../sdk" |
||
8 | |||
9 | CFLAGS = CFLAGS .. " -Dstricmp=strcasecmp -DZLIB_SUPPORT -Dstrnicmp=strncasecmp -DUSE_SDL -DNDEBUG -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32" |
||
8723 | dunkaist | 10 | INCLUDES = INCLUDES .. " -I. -I " .. SDK_DIR .. "/sources/zlib" |
8527 | maxcodehac | 11 | LDFLAGS = LDFLAGS .. " -Lsdl --subsystem native" |
8769 | turbocat | 12 | LIBS = "-ls -lz.dll " .. LIBS |
8527 | maxcodehac | 13 | |
8769 | turbocat | 14 | table.insert(LIBDEPS, SDK_DIR .. "/lib/ |
8527 | maxcodehac | 15 | table.insert(LIBDEPS, "sdl/ |
16 | |||
17 | compile_gcc{"filter.c", "fireworks.c", "main.c", "menu.c", "stub.c"} |
||
18 | link_gcc("jumpnbump") |