aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ef3446b..ffe60a8 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ dats_source_files := $(wildcard kernel/*.dats)
dats_object_files := $(patsubst kernel/%.dats, \
build/kernel/%_dats.o, $(dats_source_files))
-PATSCC=patscc
+PATSCC=acc pc
INCLUDE_ATS :=
INCLUDE_ATS += -I${PATSHOME}
@@ -51,9 +51,9 @@ build/arch/$(arch)/%.o: arch/$(arch)/boot/%.asm
@mkdir -p $(shell dirname $@)
@nasm -felf64 $< -o $@
-build/kernel/%_dats.c: $(dats_source_files)
+build/kernel/%_dats.c: kernel/%.dats
@mkdir -p $(shell dirname $@)
- $(PATSCC) -ccats - $<
+ $(PATSCC) -ccats -o $@ $<
@mv *_dats.c build/kernel/
build/kernel/%.o: build/kernel/%.c