All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m17s
34 lines
585 B
Makefile
34 lines
585 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/libstring.a
|
|
|
|
build/libstring.a: $(o)
|
|
llvm-ar rcs $@ $^
|
|
|
|
%.o: %.c
|
|
$(cc) -c -o $@ $(cflags) $<
|
|
|
|
%.o: %.S
|
|
$(cc) -c -o $@ $(cflags) $<
|
|
|
|
clean:
|
|
rm -f $(o) build/libstring.a
|
|
|
|
format:
|
|
clang-format -i $$(git ls-files '*.c' '*.h')
|
|
|
|
docs:
|
|
clang-doc --format=md --output docs -p . $$(git ls-files '*.h')
|
|
mkdir -p ../docs/libs/libstring
|
|
cp ./docs/GlobalNamespace/*.md ../docs/libs/libstring
|
|
|
|
.PHONY: all clean format
|