Files
mop3/libterminal/Makefile
kamkow1 f07e920270
All checks were successful
Build documentation / build-and-deploy (push) Successful in 55s
Minimal device system, implement terminal device and libterminal
2026-02-12 15:49:04 +01:00

29 lines
431 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/libterminal.a
build/libterminal.a: $(o)
llvm-ar rcs $@ $^
%.o: %.c
$(cc) -c -o $@ $(cflags) $<
%.o: %.S
$(cc) -c -o $@ $(cflags) $<
clean:
rm -f $(o) build/libterminal.a
format:
clang-format -i $$(git ls-files '*.c' '*.h')
.PHONY: all clean format