#	Makefile for samples
#
#  Requires NASM - "The Netwide Assembler"
#  You can get the NASM from http://www.web-sites.co.uk/nasm/
#

# 8086 assembler
ASM86	= nasm

IPLBIN	= lba_xipl.bin lbafdsim.bin
EQU	= ../src/_extipl.equ

all: $(IPLBIN)

.SUFFIXES: .asm .bin
.asm.bin :
	$(ASM86) -f bin -o $@ -l $*.lst $<
	@ls -l $@

lba_xipl.bin: lba_xipl.asm lba_main.asm $(EQU)
lbafdsim.bin: lbafdsim.asm lba_main.asm $(EQU)

xipl.bin: xipl.asm $(EQU)

# myipl.bin: myipl.asm

clean:
	rm -f *.lst *.bak *~ *.core _BootSec.* *.bin
