tools/zstd: update to 1.5.5
[openwrt/staging/nbd.git] / tools / lz4 / Makefile
1 #
2 # Copyright (C) 2022 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lz4
11 PKG_VERSION:=1.9.4
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=https://codeload.github.com/lz4/lz4/tar.gz/v$(PKG_VERSION)?
15 PKG_HASH:=0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
16
17 PKG_LICENSE:=BSD-2-Clause
18 PKG_LICENSE_FILES:=LICENSE lib/LICENSE
19
20 HOST_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/host-build.mk
23
24 # Always optimize for speed
25 HOST_CFLAGS := $(filter-out -O%,$(HOST_CFLAGS)) -O3
26
27 HOST_MAKE_FLAGS+=PREFIX=$(HOST_BUILD_PREFIX) \
28 ENABLE_DOCS=1
29
30 define Host/Configure
31 endef
32
33 define Host/Compile
34 $(call Host/Compile/Default,default)
35 endef
36
37 define Host/Install
38 $(call Host/Compile/Default,install)
39 endef
40
41 define Host/Uninstall
42 $(call Host/Compile/Default,uninstall)
43 $(call Host/Compile/Default,clean)
44 endef
45
46 define Host/Clean
47 endef
48
49 $(eval $(call HostBuild))