From 415f75c275c991949ef7c9d2c62d07e8eba761b5 Mon Sep 17 00:00:00 2001 From: Xander Date: Tue, 4 Jul 2023 13:26:09 +0200 Subject: Overloading print + cleanup --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ffe60a8..10fdb4e 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ assembly_source_files := $(wildcard arch/$(arch)/boot/*.asm) assembly_object_files := $(patsubst arch/$(arch)/boot/%.asm, \ build/arch/$(arch)/%.o, $(assembly_source_files)) -dats_source_files := $(wildcard kernel/*.dats) +dats_source_files := $(wildcard kernel/*.dats kernel/**/*.dats) dats_object_files := $(patsubst kernel/%.dats, \ build/kernel/%_dats.o, $(dats_source_files)) @@ -54,7 +54,7 @@ build/arch/$(arch)/%.o: arch/$(arch)/boot/%.asm build/kernel/%_dats.c: kernel/%.dats @mkdir -p $(shell dirname $@) $(PATSCC) -ccats -o $@ $< - @mv *_dats.c build/kernel/ + @mv *_dats.c $@ build/kernel/%.o: build/kernel/%.c @mkdir -p $(shell dirname $@) -- cgit v1.2.3