aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2015-02-16 14:30:04 -0500
committerGene Cumm <gene.cumm@gmail.com>2015-02-16 14:30:04 -0500
commit2b35d34f59694b9622ae246e6b695510bd874345 (patch)
treedaaeeeeb05b97f9d2e8b2019aa70b10dc9af8cc8
parent9d33f23c9bbb0f308ca6dab3fca16a128247e283 (diff)
downloadsyslinux-2b35d34f59694b9622ae246e6b695510bd874345.tar.gz
syslinux-2b35d34f59694b9622ae246e6b695510bd874345.tar.xz
syslinux-2b35d34f59694b9622ae246e6b695510bd874345.zip
diag/geodsp/Makefile: lib; _f alternate
Move library dependendcies to a variable; Add another _f (Force DL == 80h) variant. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r--diag/geodsp/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/diag/geodsp/Makefile b/diag/geodsp/Makefile
index 3fee73db..a369b03e 100644
--- a/diag/geodsp/Makefile
+++ b/diag/geodsp/Makefile
@@ -22,12 +22,13 @@ include $(MAKEDIR)/embedded.mk
coredir = $(topdir)/core
VPATH = $(SRC)
-BTARGET = geodsp1s.bin geodspms.bin \
- geodsp1s.img.xz geodspms.img.xz
+BTARGET = geodsp1s.bin geodsp1s_f.bin geodspms.bin \
+ geodsp1s.img.xz geodsp1s_f.img.xz geodspms.img.xz
NASMOPT = -i $(coredir)/ -i $(SRC)/ -Ox -f bin -dBINFMT
NASMOPT += -w+orphan-labels
CFLAGS = -g -O
+LIBS = $(coredir)/writehex.inc $(coredir)/macros.inc $(coredir)/diskboot.inc geodsplib.inc
all: $(BTARGET)
@@ -42,9 +43,12 @@ all: $(BTARGET)
%.img: %.bin mk-lba-img.pl
$(PERL) $(SRC)/mk-lba-img.pl $< > $@ || ( rm -f $@ ; false )
-%.bin: %.asm $(coredir)/writehex.inc $(coredir)/macros.inc $(coredir)/diskboot.inc
+%.bin: %.asm $(LIBS)
$(NASM) $(NASMOPT) -o $@ -l $(@:.bin=.lst) $<
+%_f.bin: %.asm $(LIBS)
+ $(NASM) $(NASMOPT) -o $@ -dFORCE_80 -l $(@:.bin=.lst) $<
+
mk-lba-img: mk-lba-img.c
$(CC) $(CFLAGS) -o $@ $<