mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 09:17:53 +00:00
- Python static hello world now 1.8mb - Python static fully loaded now 10mb - Python HTTPS client now uses MbedTLS - Python REPL now completes import stmts - Increase stack size for Python for now - Begin synthesizing posixpath and ntpath - Restore Python \N{UNICODE NAME} support - Restore Python NFKD symbol normalization - Add optimized code path for Intel SHA-NI - Get more Python unit tests passing faster - Get Python help() pagination working on NT - Python hashlib now supports MbedTLS PBKDF2 - Make memcpy/memmove/memcmp/bcmp/etc. faster - Add Mersenne Twister and Vigna to LIBC_RAND - Provide privileged __printf() for error code - Fix zipos opendir() so that it reports ENOTDIR - Add basic chmod() implementation for Windows NT - Add Cosmo's best functions to Python cosmo module - Pin function trace indent depth to that of caller - Show memory diagram on invalid access in MODE=dbg - Differentiate stack overflow on crash in MODE=dbg - Add stb_truetype and tools for analyzing font files - Upgrade to UNICODE 13 and reduce its binary footprint - COMPILE.COM now logs resource usage of build commands - Start implementing basic poll() support on bare metal - Set getauxval(AT_EXECFN) to GetModuleFileName() on NT - Add descriptions to strerror() in non-TINY build modes - Add COUNTBRANCH() macro to help with micro-optimizations - Make error / backtrace / asan / memory code more unbreakable - Add fast perfect C implementation of μ-Law and a-Law audio codecs - Make strtol() functions consistent with other libc implementations - Improve Linenoise implementation (see also github.com/jart/bestline) - COMPILE.COM now suppresses stdout/stderr of successful build commands
148 lines
4.2 KiB
Makefile
148 lines
4.2 KiB
Makefile
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
|
|
#───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘
|
|
|
|
PKGS += THIRD_PARTY_ZIP
|
|
|
|
THIRD_PARTY_ZIP_FILES := \
|
|
$(wildcard third_party/infozip/zip/*) \
|
|
$(wildcard third_party/infozip/zip/unix/*)
|
|
|
|
THIRD_PARTY_ZIP_SRCS = $(filter %.c,$(THIRD_PARTY_ZIP_FILES))
|
|
THIRD_PARTY_ZIP_HDRS = $(filter %.h,$(THIRD_PARTY_ZIP_FILES))
|
|
THIRD_PARTY_ZIP_INCS = $(filter %.inc,$(THIRD_PARTY_ZIP_FILES))
|
|
|
|
THIRD_PARTY_ZIP_COMS = \
|
|
o/$(MODE)/third_party/infozip/zip.com \
|
|
o/$(MODE)/third_party/infozip/zipsplit.com \
|
|
o/$(MODE)/third_party/infozip/zipnote.com \
|
|
o/$(MODE)/third_party/infozip/zipcloak.com
|
|
|
|
THIRD_PARTY_ZIP_BINS = \
|
|
$(THIRD_PARTY_ZIP_COMS) \
|
|
$(THIRD_PARTY_ZIP_COMS:%=%.dbg)
|
|
|
|
THIRD_PARTY_ZIP_OBJS = $(sort \
|
|
$(THIRD_PARTY_ZIP_COM_OBJS) \
|
|
$(THIRD_PARTY_ZIPCLOAK_OBJS) \
|
|
$(THIRD_PARTY_ZIPNOTE_OBJS) \
|
|
$(THIRD_PARTY_ZIPSPLIT_OBJS) \
|
|
)
|
|
|
|
THIRD_PARTY_ZIP_UTIL_OBJS1 = \
|
|
o/$(MODE)/third_party/infozip/zip/globals.o \
|
|
o/$(MODE)/third_party/infozip/zip/unix/unix_.o \
|
|
o/$(MODE)/third_party/infozip/zip/zipfile_.o \
|
|
o/$(MODE)/third_party/infozip/zip/fileio_.o \
|
|
o/$(MODE)/third_party/infozip/zip/util_.o
|
|
|
|
THIRD_PARTY_ZIP_UTIL_OBJS2 = \
|
|
o/$(MODE)/third_party/infozip/zip/crypt_.o \
|
|
o/$(MODE)/third_party/infozip/zip/crc32_.o
|
|
|
|
THIRD_PARTY_ZIP_UTIL_OBJS = \
|
|
$(THIRD_PARTY_ZIP_UTIL_OBJS1) \
|
|
$(THIRD_PARTY_ZIP_UTIL_OBJS2)
|
|
|
|
THIRD_PARTY_ZIP_COM_OBJS = \
|
|
o/$(MODE)/third_party/infozip/zip/zip.o \
|
|
o/$(MODE)/third_party/infozip/zip/zipfile.o \
|
|
o/$(MODE)/third_party/infozip/zip/zipup.o \
|
|
o/$(MODE)/third_party/infozip/zip/fileio.o \
|
|
o/$(MODE)/third_party/infozip/zip/util.o \
|
|
o/$(MODE)/third_party/infozip/zip/globals.o \
|
|
o/$(MODE)/third_party/infozip/zip/crypt.o \
|
|
o/$(MODE)/third_party/infozip/zip/ttyio.o \
|
|
o/$(MODE)/third_party/infozip/zip/unix/unix.o \
|
|
o/$(MODE)/third_party/infozip/zip/crc32.o \
|
|
o/$(MODE)/third_party/infozip/zip/zbz2err.o \
|
|
o/$(MODE)/third_party/infozip/zip/deflate.o \
|
|
o/$(MODE)/third_party/infozip/zip/trees.o
|
|
|
|
THIRD_PARTY_ZIPSPLIT_OBJS = \
|
|
o/$(MODE)/third_party/infozip/zip/zipsplit.o \
|
|
$(THIRD_PARTY_ZIP_UTIL_OBJS1)
|
|
|
|
THIRD_PARTY_ZIPNOTE_OBJS = \
|
|
o/$(MODE)/third_party/infozip/zip/zipnote.o \
|
|
$(THIRD_PARTY_ZIP_UTIL_OBJS1)
|
|
|
|
THIRD_PARTY_ZIPCLOAK_OBJS = \
|
|
o/$(MODE)/third_party/infozip/zip/zipcloak.o \
|
|
o/$(MODE)/third_party/infozip/zip/ttyio.o \
|
|
$(THIRD_PARTY_ZIP_UTIL_OBJS1) \
|
|
$(THIRD_PARTY_ZIP_UTIL_OBJS2)
|
|
|
|
THIRD_PARTY_ZIP_LARGE_OBJS = \
|
|
o/$(MODE)/third_party/infozip/zip/zip.o \
|
|
o/$(MODE)/third_party/infozip/zip/zipsplit.o \
|
|
o/$(MODE)/third_party/infozip/zip/fileio.o \
|
|
o/$(MODE)/third_party/infozip/zip/fileio_.o
|
|
|
|
o/$(MODE)/third_party/infozip/zip/%_.o: \
|
|
third_party/infozip/zip/%.c \
|
|
o/$(MODE)/third_party/infozip/zip/%.o
|
|
@$(COMPILE) -AOBJECTIFY.c $(OBJECTIFY.c) $(OUTPUT_OPTION) -DUTIL $<
|
|
|
|
$(THIRD_PARTY_ZIP_OBJS): \
|
|
OVERRIDE_CPPFLAGS += \
|
|
-DUNIX \
|
|
-DMMAP \
|
|
-DUNICODE_SUPPORT \
|
|
-DUSE_EF_UT_TIME \
|
|
-DLARGE_FILE_SUPPORT \
|
|
-DHAVE_DIRENT_H \
|
|
-DHAVE_TERMIOS_H \
|
|
-DNO_BZIP2_SUPPORT \
|
|
-DZIP64_SUPPORT
|
|
|
|
$(THIRD_PARTY_ZIP_LARGE_OBJS): \
|
|
OVERRIDE_CPPFLAGS += \
|
|
-DSTACK_FRAME_UNLIMITED
|
|
|
|
THIRD_PARTY_ZIP_DIRECTDEPS = \
|
|
LIBC_ERRNO \
|
|
LIBC_LIMITS \
|
|
LIBC_ALG \
|
|
LIBC_FMT \
|
|
LIBC_STR \
|
|
LIBC_MEM \
|
|
LIBC_LOG \
|
|
LIBC_CALLS \
|
|
LIBC_STDIO \
|
|
LIBC_TIME \
|
|
LIBC_UNICODE
|
|
|
|
THIRD_PARTY_ZIP_DEPS := \
|
|
$(call uniq,$(foreach x,$(THIRD_PARTY_ZIP_DIRECTDEPS),$($(x))))
|
|
|
|
o/$(MODE)/third_party/infozip/zip.com.dbg: \
|
|
$(THIRD_PARTY_ZIP_DEPS) \
|
|
$(THIRD_PARTY_ZIP_COM_OBJS) \
|
|
$(CRT) \
|
|
$(APE)
|
|
@$(APELINK)
|
|
|
|
o/$(MODE)/third_party/infozip/zipsplit.com.dbg: \
|
|
$(THIRD_PARTY_ZIP_DEPS) \
|
|
$(THIRD_PARTY_ZIPSPLIT_OBJS) \
|
|
$(CRT) \
|
|
$(APE)
|
|
@$(APELINK)
|
|
|
|
o/$(MODE)/third_party/infozip/zipnote.com.dbg: \
|
|
$(THIRD_PARTY_ZIP_DEPS) \
|
|
$(THIRD_PARTY_ZIPNOTE_OBJS) \
|
|
$(CRT) \
|
|
$(APE)
|
|
@$(APELINK)
|
|
|
|
o/$(MODE)/third_party/infozip/zipcloak.com.dbg: \
|
|
$(THIRD_PARTY_ZIP_DEPS) \
|
|
$(THIRD_PARTY_ZIPCLOAK_OBJS) \
|
|
$(CRT) \
|
|
$(APE)
|
|
@$(APELINK)
|
|
|
|
.PHONY: o/$(MODE)/third_party/infozip
|
|
o/$(MODE)/third_party/infozip: \
|
|
$(THIRD_PARTY_ZIP_BINS)
|