Files
mop3/liballoc/Makefile
kamkow1 ec6cd43a14
All checks were successful
Build documentation / build-and-deploy (push) Successful in 26s
Move out libmsl functionality into separate libs
2026-02-12 22:57:33 +01:00

29 lines
422 B
Makefile

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