From 6e38478e144787f033d63392097e1d27030bad7c Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 9 Apr 2019 23:36:30 +0200 Subject: [PATCH] Makefile big enhancement --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9be191e..b1518b6 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,8 @@ LibCSources= libc/atoi.c libc/itoa.c \ libc/strtol.c extras/argv.c \ extras/prog.c +KernObj=$(patsubst %.c,$(KOBJDIR)/%.o,$(KernSources)) + # Kernel sources KernSources= libbuf/buf.c libbuf/bput.c \ libbuf/bprint.c kernel/cpu/cpuid.c \ @@ -91,7 +93,6 @@ KernSources= libbuf/buf.c libbuf/bput.c \ kernel/mm/heap.c kernel/mm/malloc.c \ kernel/mm/gdt.c kernel/ps/sched.c \ -KernObj=$(patsubst %.c,$(KOBJDIR)/%.o,$(KernSources)) LibCObj=$(patsubst %.c,$(KOBJDIR)/%.o,$(LibCSources))