Rev 8527 | Rev 8767 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8527 | Rev 8766 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | if tup.getconfig("NO_GCC") ~= "" then return end |
1 | if tup.getconfig("NO_GCC") ~= "" then return end |
2 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../programs" or tup.getconfig("HELPERDIR") |
2 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../programs" or tup.getconfig("HELPERDIR") |
3 | tup.include(HELPERDIR .. "/use_gcc.lua") |
3 | tup.include(HELPERDIR .. "/use_gcc.lua") |
4 | tup.include(HELPERDIR .. "/use_newlib.lua") |
4 | tup.include(HELPERDIR .. "/use_newlib.lua") |
Line -... | Line 5... | ||
- | 5 | ||
- | 6 | LDFLAGS = " -shared -s -T dll.lds --entry _DllStartup --image-base=0 --out-implib ../../lib/libz.dll.a " |
|
5 | 7 | ||
Line 6... | Line 8... | ||
6 | CFLAGS = CFLAGS .. " -DHAVE_UNISTD_H -U_Win32 -U_WIN32 -U__MINGW32__" |
8 | CFLAGS = CFLAGS .. " -DHAVE_UNISTD_H -U_Win32 -U_WIN32 -U__MINGW32__" |
7 | 9 | ||
- | 10 | 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"} |
|
- | 11 | --tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../lib/libz.a", "../../lib/ |
|
- | 12 |