1 ## -----------------------------------------------------------------------
3 ## Copyright 2007-2008 H. Peter Anvin - All Rights Reserved
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 ## Boston MA 02111-1307, USA; either version 2 of the License, or
9 ## (at your option) any later version; incorporated herein by reference.
11 ## -----------------------------------------------------------------------
18 include $(topdir
)/MCONFIG.embedded
20 all: mbr.bin gptmbr.bin isohdpfx.bin
24 $(CC
) $(SFLAGS
) -Wa
,-a
=$*.lst
-c
-o
$@
$<
28 $(LD
) $(LDFLAGS
) -T mbr.
ld -e _start
-o
$@
$<
30 mbr.bin
: mbr.elf checksize.pl
31 $(OBJCOPY
) -O binary
$< $@
32 $(PERL
) checksize.pl
$@
440
34 isohdpfx.bin
: isohdpfx.elf checksize.pl
35 $(OBJCOPY
) -O binary
$< $@
36 $(PERL
) checksize.pl
$@
432
40 gptmbr.bin
: gptmbr.elf checksize.pl
41 $(OBJCOPY
) -O binary
$< $@
42 $(PERL
) checksize.pl
$@
424