dmi: check both the AC and ID flags at the same time
[syslinux.git] / diag / geodsp / Makefile
blob92d6be2d40ae843226aac035ab5308e4ddb29ba4
1 ## -----------------------------------------------------------------------
2 ##
3 ## Copyright 2010-2015 Gene Cumm
4 ##
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
8 ##
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
23 VPATH = $(SRC)
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
30 CFLAGS = -g -O
31 LIBS = $(wildcard $(coredir)/*.inc)
33 all: $(BTARGET)
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 )
46 %.bin: %.asm $(LIBS)
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 $@ $<
55 tidy dist:
56 rm -Rf *.lst *.img
57 rm -f mk-lba-img
59 clean: tidy
61 spotless: clean
62 rm -f $(BTARGET)