Files
mop3/make/user.mk
kamkow1 7601ea68e2
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m6s
Rename libmsl to libsystem
2026-02-21 12:00:59 +01:00

30 lines
515 B
Makefile

cc := clang
o :=
c :=
ldflags += -L ../libsystem/build -l:libsystem.a -L ../liballoc/build -l:liballoc.a
cflags += -isystem ../libsystem -isystem ../liballoc
include src.mk
include app.mk
include ../generic/flags.mk
include ../$(platform)/flags.mk
all: $(app)
$(app): $(o)
$(cc) -o $@ $(ldflags) -T ../$(platform)/link.ld $^
%.o: %.c
$(cc) -c -o $@ $(cflags) $<
%.o: %.S
$(cc) -c -o $@ $(cflags) $<
clean:
rm -f $(o) $(app)
format:
clang-format -i $$(git ls-files '*.c' '*.h')
.PHONY: all clean format