aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXander <xander@icth.xyz>2023-06-30 21:25:18 +0200
committerXander <xander@icth.xyz>2023-06-30 21:27:18 +0200
commite9b14562b46f230e7208ea3dad8d836f73e8f100 (patch)
tree3cfa4355c7e48e295e4b362e6266936a20b2274b /Makefile
parent3f846ecba11a66d7679a68c187d4f6e3560af5e6 (diff)
downloadats-os-e9b14562b46f230e7208ea3dad8d836f73e8f100.tar.xz
ats-os-e9b14562b46f230e7208ea3dad8d836f73e8f100.zip
Modulating print
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