summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-08-18 19:11:30 +0200
committerMichal Idziorek <m.i@gmx.at>2014-08-18 19:11:30 +0200
commit71ee34fec93bd8bdbc7800752571746b0a210653 (patch)
treeae7ba7d394a0df64d39e3b015fb458e31cff4f58 /Makefile
parent9776ad666f27dfcdc0a00ae10567b9be8363130f (diff)
Added basic pci scan and started e1000 driver.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 629bc16..ea79f44 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,12 @@ vmem.o: kernel/vmem.c
mem.o: kernel/mem.c
gcc -ffreestanding -m32 -o $@ -c $< -fno-asynchronous-unwind-tables -O0
+e1000.o: kernel/e1000.c
+ gcc -ffreestanding -m32 -o $@ -c $< -fno-asynchronous-unwind-tables -O0
+
+pci.o: kernel/pci.c
+ gcc -ffreestanding -m32 -o $@ -c $< -fno-asynchronous-unwind-tables -O0
+
console.o: kernel/console.c kernel/console.h
gcc -ffreestanding -m32 -o $@ -c $< -fno-asynchronous-unwind-tables -O0
@@ -53,7 +59,7 @@ timer.o: kernel/timer.c
shell.o: kernel/shell.c
gcc -ffreestanding -m32 -o $@ -c $< -fno-asynchronous-unwind-tables -O0
-kernel.bin: kernel_entry.o kernel.o console.o interrupts.o keyboard.o timer.o shell.o mem.o vmem.o
+kernel.bin: kernel_entry.o kernel.o console.o interrupts.o keyboard.o timer.o shell.o mem.o vmem.o pci.o e1000.o
ld -o $@ -Ttext 0x1000 --oformat binary -melf_i386 $^ -O0