aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-03-02 11:24:36 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-03-02 11:24:36 -0500
commit44c631dfd23de0ee83a8a98a95815b452727ba95 (patch)
tree168d5b156e29100227486131e5c24d94305d5705 /Makefile
parent8ce2cd846ed2c64258600f6a6664fa1cd5dfef11 (diff)
downloadseabios-44c631dfd23de0ee83a8a98a95815b452727ba95.tar.gz
Enhance included bios tables.
Moved floppy parameter table to its 0xefc7 location. Define floppy base table as a struct. Cleaned up definitions in romlayout.S Fixed bug in handle_15c0 - wasn't clearing cf. Clean up some post.c usages of bios tables.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 33136da6..f198767a 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ OUT=out/
SRC16=floppy.c disk.c system.c clock.c serial.c kbd.c mouse.c output.c \
boot.c ata.c
SRC32=post.c output.c
+TABLESRC=font.c cbt.c floppy_dbt.c
cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
/dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;)
@@ -25,7 +26,8 @@ CFLAGS = $(COMMONCFLAGS) -g
CFLAGS16 = $(COMMONCFLAGS) -DMODE16 -fno-jump-tables
CFLAGS16WHOLE = $(CFLAGS16) -g -fwhole-program
-all: $(OUT) $(OUT)rom.bin
+TABLETMP=$(addprefix $(OUT), $(patsubst %.c,%.16.s,$(TABLESRC)))
+all: $(OUT) $(OUT)rom.bin $(TABLETMP)
# Run with "make V=1" to see the actual compile commands
ifdef V
@@ -64,7 +66,8 @@ $(OUT)blob.16.s:
@echo " Generating whole program assembler $@"
$(Q)$(CC) $(CFLAGS16WHOLE) -S -combine -c $(addprefix src/, $(SRC16)) -o $@
-$(OUT)romlayout16.o: romlayout.S $(OUT)blob.proc.16.s $(OUT)font.proc.16.s $(OUT)cbt.proc.16.s
+TABLEASM=$(addprefix $(OUT), $(patsubst %.c,%.proc.16.s,$(TABLESRC)))
+$(OUT)romlayout16.o: romlayout.S $(OUT)blob.proc.16.s $(TABLEASM)
@echo " Generating 16bit layout of $@"
$(Q)$(CC) $(CFLAGS16) -c $< -o $@