1 ## -----------------------------------------------------------------------
3 ## Copyright 2010-2015 Gene Cumm
5 ## Portions from core/Makefile:
6 ## Copyright 1998-2009 H. Peter Anvin - All Rights Reserved
7 ## Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
9 ## This program is free software; you can redistribute it and/or modify
10 ## it under the terms of the GNU General Public License as published by
11 ## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
12 ## Boston MA 02111-1307, USA; either version 2 of the License, or
13 ## (at your option) any later version; incorporated herein by reference.
15 ## -----------------------------------------------------------------------
18 # Makefile for the SYSLINUX geometry display for diagnostics
21 include $(MAKEDIR
)/embedded.mk
22 coredir
= $(topdir
)/core
/bios
25 BTARGET
= geodsp1s.bin geodsp1s_f.bin geodspms.bin \
26 geodsp1s.img.xz geodspms.img.xz
28 NASMOPT
= -i
$(coredir
)/ -i
$(SRC
)/ -Ox
-f bin
-dBINFMT
29 NASMOPT
+= -w
+orphan-labels
31 LIBS
= $(wildcard $(coredir
)/*.inc
)
35 # Higher compression levels result in larger files
36 %.img.xz
: %.bin mk-lba-img.pl
37 $(PERL
) $(SRC
)/mk-lba-img.pl
$< |
$(XZ
) -0 > $@ ||
( rm -f
$@
; false
)
39 %.img.gz
: %.bin mk-lba-img.pl
40 $(PERL
) $(SRC
)/mk-lba-img.pl
$< |
$(GZIPPROG
) -9 > $@ ||
( rm -f
$@
; false
)
42 # in case someone really wants these without needing a decompressor
43 %.img
: %.bin mk-lba-img.pl
44 $(PERL
) $(SRC
)/mk-lba-img.pl
$< > $@ ||
( rm -f
$@
; false
)
47 $(NASM
) $(NASMOPT
) -o
$@
-l
$(@
:.bin
=.lst
) $<
49 %_f.bin
: %.asm
$(LIBS
)
50 $(NASM
) $(NASMOPT
) -o
$@
-dFORCE_80
-l
$(@
:.bin
=.lst
) $<
52 mk-lba-img
: mk-lba-img.c
53 $(CC
) $(CFLAGS
) -o
$@
$<