From a3c239e78ac9e2f6238287c89222671b23624b7f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 5 May 2022 22:50:00 +0000 Subject: fix makefiles on netbsd + Doesn't quite compile all the way unfortunately, building the GNU toolchain on NetBSD is a bit more difficult than I was expecting. LLVM does compile, but fails to link for some reason. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2e46774..7d7e04d 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ COMPILER != [ $(LLVM) ] \ KERNEL_SOURCES != echo common/*.c common/uapi/*.c lib/*.c -CLEANUP := build deps.mk kernel.* init.* apos.bin +CLEANUP := build kernel.* init.* apos.bin CLEANUP_CMD := INIT_SOURCES := @@ -64,7 +64,7 @@ KERN_INFO = sed "s//$$($(KERN_SIZE))/" KERNEL_LINK := arch/$(ARCH)/conf/kernel-link INIT_LINK := arch/$(ARCH)/conf/init-link -KERN_FLAGS != [ $(UBSAN) ] && echo -fsanitize=undefined +KERN_FLAGS != [ $(UBSAN) ] && echo -fsanitize=undefined || echo INIT_FLAGS := KERNEL_OBJECTS != ./scripts/gen-deps --kernel --compile "$(KERNEL_SOURCES)" @@ -97,6 +97,8 @@ format: find arch lib common include -iname '*.[ch]' \ -exec clang-format -i -style=file {} \+ +RM ?= rm -f + clean: $(RM) -r $(CLEANUP) -- cgit v1.3