summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-06-01 20:57:52 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-06-01 20:57:52 +0200
commit33a47946fd82f42ba0960a2b3599d09906be467e (patch)
treee6f4bc700cb9d76d4b2f4add32acef327dd04e20 /src/Makefile
parentec014db9fa3f6b5b7ad3491c20f2c2a65c56a7a6 (diff)
downloadabaos-33a47946fd82f42ba0960a2b3599d09906be467e.tar.gz
abaos-33a47946fd82f42ba0960a2b3599d09906be467e.tar.bz2
started with keyboard driver
split registration of interrupts in a gate registration and a handler registration
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 9c6a931..14aa939 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -28,11 +28,11 @@ kernel.bin: kernel.elf
kernel.sym: kernel.elf
$(OBJCOPY) --only-keep-debug kernel.elf kernel.sym
-kernel.elf: kernel.o console.o vga.o serial.o port.o port_asm.o interrupts.o interrupts_asm.o string.o stdlib.o stdio.o setjmp.o
+kernel.elf: kernel.o console.o vga.o serial.o port.o port_asm.o interrupts.o interrupts_asm.o keyboard.o string.o stdlib.o stdio.o setjmp.o
$(LD) -o kernel.elf -N -n -Ttext 0x8400 --oformat elf32-i386 \
kernel.o console.o vga.o serial.o port.o port_asm.o \
- interrupts.o interrupts_asm.o string.o stdlib.o stdio.o \
- setjmp.o
+ interrupts.o interrupts_asm.o keyboard.o \
+ string.o stdlib.o stdio.o setjmp.o
magic.bin: magic.asm
$(NASM) magic.asm -DMAGIC='"$(MAGIC)"' -f bin -o magic.bin
@@ -61,6 +61,9 @@ interrupts.o: interrupts.c interrupts.h
interrupts_asm.o: interrupts.asm
$(NASM) interrupts.asm $(NASMFLAGS) -o interrupts_asm.o
+keyboard.o: keyboard.c keyboard.h
+ $(CC) $(CFLAGS) -c -o keyboard.o keyboard.c
+
string.o: string.c string.h
$(CC) $(CFLAGS) -c -o string.o string.c