aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-05-09 20:02:27 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-05-09 20:02:27 -0700
commit2613174223371677d0a701a69cb7468947940d65 (patch)
tree0341dc40c1833d3fa017846f3cd1c4bc04f52fdd /utils
parentb0e7c325933396ff42b38c097a3a7142625b6ab7 (diff)
downloadsyslinux-2613174223371677d0a701a69cb7468947940d65.tar.gz
syslinux-2613174223371677d0a701a69cb7468947940d65.tar.xz
syslinux-2613174223371677d0a701a69cb7468947940d65.zip
Add "make strip" target
Add a "make strip" target, to make doing the official build easier. We want the official build to have stripped binaries for size reasons, so do it right and make it an actual build target. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 23f9a3db..acda8c05 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -21,10 +21,13 @@ include $(MAKEDIR)/syslinux.mk
CFLAGS = $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
LDFLAGS = -O2
-TARGETS = mkdiskimage isohybrid gethostip memdiskfind
-TARGETS += isohybrid.pl # about to be obsoleted
-ASIS = keytab-lilo lss16toppm md5pass ppmtolss16 sha1pass syslinux2ansi \
- pxelinux-options
+C_TARGETS = isohybrid gethostip memdiskfind
+SCRIPT_TARGETS = mkdiskimage
+SCRIPT_TARGETS += isohybrid.pl # about to be obsoleted
+ASIS = keytab-lilo lss16toppm md5pass ppmtolss16 sha1pass \
+ syslinux2ansi pxelinux-options
+
+TARGETS = $(C_TARGETS) $(SCRIPT_TARGETS)
ISOHDPFX = ../mbr/isohdpfx.bin ../mbr/isohdpfx_f.bin ../mbr/isohdpfx_c.bin \
../mbr/isohdppx.bin ../mbr/isohdppx_f.bin ../mbr/isohdppx_c.bin
@@ -70,4 +73,7 @@ install: installer
mkdir -m 755 -p $(INSTALLROOT)$(BINDIR)
install -m 755 $(TARGETS) $(ASIS) $(INSTALLROOT)$(BINDIR)
+strip:
+ $(STRIP) $(C_TARGETS)
+
-include .*.d