diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 $@) |