Files
mop3/make/user.mk
kamkow1 bea4ddd2c8
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m9s
Berry failed port attempt leftovers :(
2026-03-08 23:35:41 +01:00

34 lines
579 B
Makefile

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