Move out libmsl functionality into separate libs
All checks were successful
Build documentation / build-and-deploy (push) Successful in 26s

This commit is contained in:
2026-02-12 22:57:33 +01:00
parent f37c34958e
commit ec6cd43a14
25 changed files with 112 additions and 29 deletions

28
liballoc/Makefile Normal file
View File

@@ -0,0 +1,28 @@
cc := clang
o :=
c :=
cflags := -isystem . -isystem ../libmsl
buildtype ?= release
include src.mk
include ../generic/flags.mk
include ../$(platform)/flags.mk
all: build/liballoc.a
build/liballoc.a: $(o)
llvm-ar rcs $@ $^
%.o: %.c
$(cc) -c -o $@ $(cflags) $<
%.o: %.S
$(cc) -c -o $@ $(cflags) $<
clean:
rm -f $(o) build/liballoc.a
format:
clang-format -i $$(git ls-files '*.c' '*.h')
.PHONY: all clean format