projects
/
eightysix
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
foo
[eightysix]
/
kern
/
Makefile
diff --git
a/kern/Makefile
b/kern/Makefile
index
70e479b
..
f4ff034
100644
(file)
--- a/
kern/Makefile
+++ b/
kern/Makefile
@@
-13,13
+13,14
@@
CC = ia16-elf-gcc
LD = ia16-elf-ld
CFLAGS = -march=i8088 -mtune=i8088 -MMD
LD = ia16-elf-ld
CFLAGS = -march=i8088 -mtune=i8088 -MMD
+LDFLAGS = -T kern.ld -Map kern.map
$(img): $(bin)
dd if=/dev/zero of=$@ bs=512 count=$(disk_numsec)
dd if=$< of=$@ bs=512 conv=notrunc
$(bin): $(obj)
$(img): $(bin)
dd if=/dev/zero of=$@ bs=512 count=$(disk_numsec)
dd if=$< of=$@ bs=512 conv=notrunc
$(bin): $(obj)
- $(LD) -T kern.ld -Map kern.map -o $@ $(obj)
+ $(LD) -o $@ $(obj) $(LDFLAGS)
-include $(dep)
-include $(dep)
@@
-45,5
+46,4
@@
debug: $(img)
.PHONY: disasm
disasm: $(bin)
.PHONY: disasm
disasm: $(bin)
- ndisasm -o 0x7c00 $< >dis1
- ndisasm -o 0x98000 -e 512 $< >dis2
+ ndisasm -o 0x600 $< >dis