1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2019 IPFire Team <info@ipfire.org> #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
30 DL_FILE = $(THISAPP)-$(RUST_BOOTSTRAP).tar.gz
31 DL_FROM = $(URL_IPFIRE)
32 DIR_APP = $(DIR_SRC)/$(THISAPP)-$(RUST_BOOTSTRAP)
33 TARGET = $(DIR_INFO)/$(THISAPP)
37 ifeq "$(BUILD_ARCH)" "i586"
40 RUST_ARCH = $(BUILD_ARCH)
43 ifeq "$(BUILD_ARCH)" "armv5tel"
44 RUST_BOOTSTRAP = arm-unknown-linux-gnueabi
46 RUST_BOOTSTRAP = $(RUST_ARCH)-unknown-linux-gnu
49 ###############################################################################
51 ###############################################################################
55 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
57 $(THISAPP)-x86_64-unknown-linux-gnu.tar.gz_MD5 = 3f84df04bd0cf0ea4668390be263945e
58 $(THISAPP)-i686-unknown-linux-gnu.tar.gz_MD5 = 29411d7420184ad51f99339b2e2cf20a
59 $(THISAPP)-aarch64-unknown-linux-gnu.tar.gz_MD5 = 28f9556a3febd2d38c0ba97337d56cb8
60 $(THISAPP)-arm-unknown-linux-gnueabi.tar.gz_MD5 = 970ad24c516394466e7b8ca40689ee76
64 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
66 download :$(patsubst %,$(DIR_DL)/%,$(objects))
68 md5 : $(subst %,%_MD5,$(objects))
70 ###############################################################################
71 # Downloading, checking, md5sum
72 ###############################################################################
74 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
77 $(patsubst %,$(DIR_DL)/%,$(objects)) :
80 $(subst %,%_MD5,$(objects)) :
83 ###############################################################################
84 # Installation Details
85 ###############################################################################
87 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
89 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
91 cd $(DIR_APP) && ./install.sh \
92 --components=cargo,rustc,rust-std-$(RUST_BOOTSTRAP) \