aboutsummaryrefslogtreecommitdiffstats
path: root/utils/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-21 13:34:12 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-21 13:35:22 -0700
commitd4d9f190900d31b5e9428401a0175012957d7cb7 (patch)
tree3b1bfe13f7b711905591ee1e92fde70ee3ab437d /utils/Makefile
parent652070309f5d283efacaa8c5102368da20a92c4a (diff)
downloadsyslinux.git-d4d9f190900d31b5e9428401a0175012957d7cb7.tar.gz
syslinux.git-d4d9f190900d31b5e9428401a0175012957d7cb7.tar.xz
syslinux.git-d4d9f190900d31b5e9428401a0175012957d7cb7.zip
isohybrid: allow selecting the _c and _f versions of the prefix
Allow selecting the _f or _c versions of the prefix in addition to the default one. This is specified with the -forcehd0 or -ctrlhd0 options. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'utils/Makefile')
-rw-r--r--utils/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 179d5da6..7670bef6 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -23,6 +23,8 @@ LDFLAGS = -O2 -s
TARGETS = mkdiskimage isohybrid gethostip
ASIS = keytab-lilo lss16toppm md5pass ppmtolss16 sha1pass syslinux2ansi
+ISOHDPFX = ../mbr/isohdpfx.bin ../mbr/isohdpfx_f.bin ../mbr/isohdpfx_c.bin
+
all: $(TARGETS)
%.o: %.c
@@ -32,8 +34,9 @@ mkdiskimage: mkdiskimage.in ../mbr/mbr.bin bin2hex.pl
$(PERL) bin2hex.pl < ../mbr/mbr.bin | cat mkdiskimage.in - > $@
chmod a+x $@
-isohybrid: isohybrid.in ../mbr/isohdpfx.bin bin2hex.pl
- $(PERL) bin2hex.pl < ../mbr/isohdpfx.bin | cat isohybrid.in - > $@
+isohybrid: isohybrid.in $(ISOHDPFX) bin2hex.pl
+ cp -f isohybrid.in $@
+ for f in $(ISOHDPFX) ; do $(PERL) bin2hex.pl < $$f >> $@ ; done
chmod a+x $@
gethostip: gethostip.o