aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-09-05 14:49:42 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-09-05 14:49:42 -0700
commit058dd028ac7d8ae217d1b3b00213751d63034195 (patch)
tree53bd1e95555370d939258873062db00c7d74bf7d /mbr/Makefile
parent1eb0d6f7cfa7547470580d821ca815e20df4e93e (diff)
downloadsyslinux-058dd028ac7d8ae217d1b3b00213751d63034195.tar.gz
syslinux-058dd028ac7d8ae217d1b3b00213751d63034195.tar.xz
syslinux-058dd028ac7d8ae217d1b3b00213751d63034195.zip
ISOLINUX: support for hybrid mode (CD-ROM/USB key)
Still a work in progress. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'mbr/Makefile')
-rw-r--r--mbr/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/mbr/Makefile b/mbr/Makefile
index 7952e60b..a57b3946 100644
--- a/mbr/Makefile
+++ b/mbr/Makefile
@@ -17,23 +17,25 @@
topdir = ..
include $(topdir)/MCONFIG.embedded
-all: mbr.bin gptmbr.bin
+all: mbr.bin gptmbr.bin isohdpfx.bin
.PRECIOUS: %.o
%.o: %.S
$(CC) $(SFLAGS) -Wa,-a=$*.lst -c -o $@ $<
-mbr.elf: mbr.o mbr.ld
+.PRECIOUS: %.elf
+%.elf: %.o mbr.ld
$(LD) $(LDFLAGS) -T mbr.ld -e _start -o $@ $<
mbr.bin: mbr.elf checksize.pl
$(OBJCOPY) -O binary $< $@
$(PERL) checksize.pl mbr.bin 440
-mbr_bin.c: mbr.bin
+isohdpfx.bin: isohdpfx.elf checksize.pl
+ $(OBJCOPY) -O binary $< $@
+ $(PERL) checksize.pl mbr.bin 432
-gptmbr.elf: gptmbr.o mbr.ld
- $(LD) $(LDFLAGS) -T mbr.ld -e _start -o $@ $<
+mbr_bin.c: mbr.bin
gptmbr.bin: gptmbr.elf checksize.pl
$(OBJCOPY) -O binary $< $@