Rev 8723 | Go to most recent revision | Details | 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" |
||
10 | INCLUDES = INCLUDES .. " -I. -I $(SDK_DIR)/sources/zlib" |
||
11 | LDFLAGS = LDFLAGS .. " -Lsdl --subsystem native" |
||
12 | LIBS = "-ls -lz " .. LIBS |
||
13 | |||
14 | table.insert(LIBDEPS, "$(SDK_DIR)/lib/ |
||
15 | table.insert(LIBDEPS, "sdl/ |
||
16 | |||
17 | compile_gcc{"filter.c", "fireworks.c", "main.c", "menu.c", "stub.c"} |
||
18 | link_gcc("jumpnbump") |