]>
Commit | Line | Data |
---|---|---|
edd536b6 | 1 | ############################################################################### |
edd536b6 | 2 | # # |
70df8302 MT |
3 | # IPFire.org - A linux based firewall # |
4 | # Copyright (C) 2007 Michael Tremer & Christian Schmidt # | |
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 | ||
25 | include Config | |
26 | ||
27 | VER = ipfire | |
28 | ||
29 | THISAPP = strip | |
30 | TARGET = $(DIR_INFO)/$(THISAPP) | |
31 | ||
32 | ############################################################################### | |
33 | # Top-level Rules | |
34 | ############################################################################### | |
35 | ||
36 | install : $(TARGET) | |
37 | ||
38 | check : | |
39 | ||
40 | download : | |
41 | ||
42 | md5 : | |
43 | ||
44 | ############################################################################### | |
45 | # Installation Details | |
46 | ############################################################################### | |
47 | ||
48 | $(TARGET) : | |
49 | ||
50 | ifeq "$(LFS_PASS)" "toolchain" | |
51 | -find $(TOOLS_DIR)/lib -type f -exec $(TOOLS_DIR)/bin/strip --strip-debug '{}' ';' | |
52 | -find $(TOOLS_DIR)/{bin,sbin,libexec} -type f -exec $(TOOLS_DIR)/bin/strip --strip-all '{}' ';' | |
53 | rm -rf $(TOOLS_DIR)/{,share/}{doc,info,man} | |
54 | endif | |
55 | ||
56 | ifeq "$(LFS_PASS)" "install" | |
57 | # Add -ls before -exec if you want to verify what files are in the path to be stripped | |
58 | # A running binary can't be stripped, so use the version from /tools | |
59 | # It may fail (signal 11) under circonstance not identified by me (Gilles), | |
60 | # to strip libc again so ignore the error now. Probably need a static strip for libc | |
61 | # Don't use --strip-all on libraries, or they'll be destroyed. Don't use --strip-unneeded, either. | |
62 | -/tools/bin/find /lib /usr/lib /usr/share/rrdtool-* /install/initrd/lib \ | |
63 | -type f \( -name '*.so' -o -name '*.so[\.0-9]*' \) \ | |
65998e0a | 64 | -exec /tools/bin/strip --strip-debug {} \; 2>/dev/null |
edd536b6 | 65 | |
07d77093 | 66 | -/tools/bin/strip --strip-all /{,usr/}{,local/}{bin,sbin}/* /install/{initrd,misc}/bin/* /usr/lib/cyrus/* 2>/dev/null |
069680ac MT |
67 | -/tools/bin/strip --strip-all /usr/lib/awk/{grcat,pwcat} 2>/dev/null |
68 | -/tools/bin/strip --strip-all /usr/lib/gcc/*-linux-gnu/4.0.3/{cc1*,collect2} 2>/dev/null | |
edd536b6 MT |
69 | endif |
70 |