update disclaimer in LFS files
[ipfire-2.x.git] / lfs / strip
CommitLineData
edd536b6 1###############################################################################
edd536b6 2# #
70df8302 3# IPFire.org - A linux based firewall #
eee037b8 4# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
70df8302
MT
5# #
6# This program is free software: you can redistribute it and/or modify #
edd536b6 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
edd536b6
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
edd536b6
MT
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 #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
edd536b6
MT
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
27VER = ipfire
28
29THISAPP = strip
30TARGET = $(DIR_INFO)/$(THISAPP)
31
7b93b62b
MT
32ifeq "$(TOOLCHAIN)" "1"
33 SHELL = /bin/bash
34 STRIP = /usr/bin/strip
35 ROOT = $(TOOLS_DIR)
36else
37 SHELL = $(TOOLS_DIR)/bin/bash
38 STRIP = $(TOOLS_DIR)/bin/strip
ce9264a1 39 ROOT = /
7b93b62b
MT
40endif
41
edd536b6
MT
42###############################################################################
43# Top-level Rules
44###############################################################################
45
46install : $(TARGET)
47
48check :
49
50download :
51
52md5 :
53
54###############################################################################
55# Installation Details
56###############################################################################
57
58$(TARGET) :
1580ba11
MT
59 # Don't strip VDR binaries, because they use a weird plugin system
60 # which does not work when unneeded symbols get stripped from
61 # /usr/sbin/vdr.
7b93b62b 62 STRIP=$(STRIP) $(SHELL) $(DIR_SRC)/src/stripper $(ROOT) \
6c4cc7ea 63 --exclude=/usr/src --exclude=$(TOOLS_DIR) \
1580ba11 64 --exclude=/usr/sbin/vdr --exclude=/usr/lib/vdr