2020-06-15 14:18:57 +00:00
|
|
|
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
|
|
|
|
#── vi: set noet ft=make ts=8 sw=8 fenc=utf-8 :vi ────────────────────┘
|
|
|
|
#
|
|
|
|
# WARNING
|
|
|
|
#
|
|
|
|
# This is GPL program. It's intended for compressing files.
|
|
|
|
# Cosmopolitan provides a 116 byte LZ4 runtime for extracting them.
|
|
|
|
# Consider using that before linking this.
|
|
|
|
#
|
|
|
|
# SEE ALSO
|
|
|
|
#
|
|
|
|
# libc/nexgen32e/lz4cpy.c
|
|
|
|
|
|
|
|
PKGS += THIRD_PARTY_LZ4CLI
|
|
|
|
|
2021-02-02 11:45:31 +00:00
|
|
|
THIRD_PARTY_LZ4CLI_FILES := $(wildcard third_party/lz4cli/*)
|
|
|
|
THIRD_PARTY_LZ4CLI_SRCS = $(filter %.c,$(THIRD_PARTY_LZ4CLI_FILES))
|
|
|
|
THIRD_PARTY_LZ4CLI_HDRS = $(filter %.h,$(THIRD_PARTY_LZ4CLI_FILES))
|
|
|
|
|
2020-06-15 14:18:57 +00:00
|
|
|
THIRD_PARTY_LZ4CLI = \
|
2024-03-03 00:57:56 +00:00
|
|
|
o/$(MODE)/third_party/lz4cli/lz4cli
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
THIRD_PARTY_LZ4CLI_OBJS = \
|
|
|
|
o/$(MODE)/third_party/lz4cli/bench.o \
|
|
|
|
o/$(MODE)/third_party/lz4cli/lz4.o \
|
|
|
|
o/$(MODE)/third_party/lz4cli/lz4cli.o \
|
|
|
|
o/$(MODE)/third_party/lz4cli/lz4io.o \
|
|
|
|
o/$(MODE)/third_party/lz4cli/lz4hc.o \
|
|
|
|
o/$(MODE)/third_party/lz4cli/lz4frame.o \
|
|
|
|
o/$(MODE)/third_party/lz4cli/datagen.o \
|
2021-01-16 20:05:41 +00:00
|
|
|
o/$(MODE)/third_party/lz4cli/xxhash.o
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
o/$(MODE)/third_party/lz4cli/lz4.o \
|
|
|
|
o/$(MODE)/third_party/lz4cli/lz4io.o \
|
|
|
|
o/$(MODE)/third_party/lz4cli/lz4hc.o \
|
|
|
|
o/$(MODE)/third_party/lz4cli/lz4frame.o \
|
2022-08-11 01:00:45 +00:00
|
|
|
o/$(MODE)/third_party/lz4cli/datagen.o: private \
|
2020-06-15 14:18:57 +00:00
|
|
|
DEFAULT_CPPFLAGS += \
|
|
|
|
-DSTACK_FRAME_UNLIMITED
|
|
|
|
|
|
|
|
THIRD_PARTY_LZ4CLI_DIRECTDEPS = \
|
2021-01-16 20:05:41 +00:00
|
|
|
LIBC_INTRIN \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_STDIO \
|
2024-05-05 06:05:36 +00:00
|
|
|
LIBC_LOG
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
THIRD_PARTY_LZ4CLI_DEPS := \
|
|
|
|
$(call uniq,$(foreach x,$(THIRD_PARTY_LZ4CLI_DIRECTDEPS),$($(x))))
|
|
|
|
|
2022-08-11 01:00:45 +00:00
|
|
|
$(THIRD_PARTY_LZ4CLI_OBJS): private \
|
2020-06-15 14:18:57 +00:00
|
|
|
DEFAULT_CPPFLAGS += \
|
|
|
|
-isystem third_party/lz4cli
|
|
|
|
|
2024-03-03 00:57:56 +00:00
|
|
|
o/$(MODE)/third_party/lz4cli/lz4cli.dbg: \
|
2020-06-15 14:18:57 +00:00
|
|
|
$(THIRD_PARTY_LZ4CLI_DEPS) \
|
|
|
|
$(THIRD_PARTY_LZ4CLI_OBJS) \
|
|
|
|
$(CRT) \
|
2022-05-24 17:19:39 +00:00
|
|
|
$(APE_NO_MODIFY_SELF)
|
2020-06-15 14:18:57 +00:00
|
|
|
@$(APELINK)
|
|
|
|
|
|
|
|
$(THIRD_PARTY_LZ4CLI_OBJS): \
|
|
|
|
$(BUILD_FILES) \
|
2023-11-28 19:21:08 +00:00
|
|
|
third_party/lz4cli/BUILD.mk
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
.PHONY: o/$(MODE)/third_party/lz4cli
|
|
|
|
o/$(MODE)/third_party/lz4cli: $(THIRD_PARTY_LZ4CLI)
|