summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2764705..7b34c01 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
SHELL:=/bin/bash
-# -mgeneral-regs-only only needed for interrupt handlers
-
override CFLAGS += \
-nostdlib \
-nostdinc \
@@ -65,6 +63,9 @@ fs/dbg/kernel.dis.asm: stage3.bin
stage3/%.o: stage3/%.asm
nasm -f elf64 $< -o $@
+stage3/interrupts.o: stage3/interrupts.c
+ gcc $(CFLAGS) -mgeneral-regs-only -c $< -o $@
+
stage3/%.o: stage3/%.c
gcc $(CFLAGS) -c $< -o $@