aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-02-28 20:01:11 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-02-28 20:01:11 -0500
commitd5f1e84aa4a343bc3d078664e943b803b7ddabd0 (patch)
treea82963a394f17b515bf33062301c2bd1ea7ee605 /Makefile
parentddd4bfdfc22e218f44d378f960485e26603bbfad (diff)
downloadseabios-d5f1e84aa4a343bc3d078664e943b803b7ddabd0.tar.gz
Have compiler add debugging info to main 16bit code.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ad99d817..ba2a80ee 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
CFLAGS = $(COMMONCFLAGS) -g
CFLAGS16 = $(COMMONCFLAGS) -DMODE16 -fno-jump-tables
+CFLAGS16WHOLE = $(CFLAGS16) -g -fwhole-program
all: $(OUT) $(OUT)rom.bin
@@ -40,7 +41,7 @@ vpath %.S src
################ Build rules
$(OUT)%.proc.16.s: $(OUT)%.16.s
@echo " Moving data sections to text in $<"
- $(Q)sed 's/\t.section\t.rodata.*// ; s/\t.data//' < $< > $@
+ $(Q)sed 's/\t\.section\t\.rodata.*// ; s/\t\.data//' < $< > $@
$(OUT)%.16.s: %.c
@echo " Generating assembler for $<"
@@ -60,7 +61,7 @@ $(OUT)%.offset.auto.h: $(OUT)%.o
$(OUT)blob.16.s:
@echo " Generating whole program assembler $@"
- $(Q)$(CC) $(CFLAGS16) -fwhole-program -S -combine -c $(addprefix src/, $(SRC16)) -o $@
+ $(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
@echo " Generating 16bit layout of $@"