From 7f5d765c929a4dc2deddb7b68a41a3a841940837 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 22 Jan 2026 03:55:02 +0100 Subject: LLVM clang compiler backend Signed-off-by: Mel --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d5e7069..9775895 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ -CFLAGS ?= -std=c99 -Wall -Werror -static -g -O0 +MUSL_LIB ?= /usr/lib/musl +MUSL_DEV ?= /usr/include/musl + +DEFINES ?= -DMUSL_LIB=\"$(MUSL_LIB)\" -DMUSL_DEV=\"$(MUSL_DEV)\" +CFLAGS ?= -std=c99 -Wall -Werror -static -g -O0 $(DEFINES) + .DEFAULT_GOAL := all -BOOTSTRAP_SOURCES = boot/catboot.c boot/common.c boot/lex.c boot/tree.c boot/visit.c boot/parse.c +BOOTSTRAP_SOURCES = boot/catboot.c boot/common.c boot/lex.c boot/tree.c boot/visit.c boot/parse.c boot/build.c BOOTSTRAP_TEST_SOURCES = boot/tests/test.c SOURCES = src/catskill.csk -- cgit 1.4.1