# Makefile - GNU Makefile
# 
# Copyright (C) 2011 Sergey Kiselev.
# Provided for hobbyist use on the Sergey's XT board.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY# without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

SOURCES=bios.asm atkbd.inc config.inc errno.inc floppy1.inc floppy2.inc kbc.inc misc.inc printer.inc ps2aux.inc scancode.inc serial.inc sound.inc time1.inc time2.inc video.inc cpu.inc messages.inc inttrace.inc rtc.inc

all: $(SOURCES) bios128k.bin

bios128k.bin: bios.bin ff.bin
	cat ff.bin bios.bin > bios128k.bin

bios.bin: $(SOURCES)
	nasm -O9 -f bin -o bios.bin -l bios.lst bios.asm

clean:
	rm -f bios.bin bios128k.bin bios.lst
