]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/zstd
suricata: Change midstream policy to "pass-flow"
[ipfire-2.x.git] / lfs / zstd
CommitLineData
6b264af5
MF
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
ee5c0d09 4# Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
6b264af5
MF
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
51c7cfed 27VER = 1.5.5
6b264af5
MF
28
29THISAPP = zstd-$(VER)
30DL_FILE = $(THISAPP).tar.gz
31DL_FROM = $(URL_IPFIRE)
32DIR_APP = $(DIR_SRC)/$(THISAPP)
2d29899d
MT
33
34ifeq "$(TOOLCHAIN)" "1"
35 TARGET = $(DIR_INFO)/$(THISAPP)-tools
36 PREFIX = $(TOOLS_DIR)
e4ce8ee5 37 CC = $(CROSSTARGET)-gcc
2d29899d
MT
38else
39 TARGET = $(DIR_INFO)/$(THISAPP)
40 PREFIX = /usr
e4ce8ee5 41 CC = gcc
2d29899d 42endif
6b264af5
MF
43
44###############################################################################
45# Top-level Rules
46###############################################################################
47
48objects = $(DL_FILE)
49
50$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
51
51c7cfed 52$(DL_FILE)_BLAKE2 = 7680e27a0adacfb809d9fc81e06d3f99bf74df30374d3b5cb2d58f667dd1b7d5c41697e608592709e17c0e32277f20a6d615edee409b5d7cdcb15da2799a2350
6b264af5
MF
53
54install : $(TARGET)
55
56check : $(patsubst %,$(DIR_CHK)/%,$(objects))
57
58download :$(patsubst %,$(DIR_DL)/%,$(objects))
59
9a7e4d85 60b2 : $(subst %,%_BLAKE2,$(objects))
6b264af5 61
66c36198 62dist:
6b264af5
MF
63 @$(PAK)
64
65###############################################################################
9a7e4d85 66# Downloading, checking, b2sum
6b264af5
MF
67###############################################################################
68
69$(patsubst %,$(DIR_CHK)/%,$(objects)) :
70 @$(CHECK)
71
72$(patsubst %,$(DIR_DL)/%,$(objects)) :
73 @$(LOAD)
74
9a7e4d85
PM
75$(subst %,%_BLAKE2,$(objects)) :
76 @$(B2SUM)
6b264af5
MF
77
78###############################################################################
79# Installation Details
80###############################################################################
81
82$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
83 @$(PREBUILD)
84 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
e4ce8ee5 85 cd $(DIR_APP) && make CC=$(CC) $(MAKETUNING)
2d29899d 86 cd $(DIR_APP) && make prefix=$(PREFIX) install
6b264af5
MF
87 @rm -rf $(DIR_APP)
88 @$(POSTBUILD)