Berry failed port attempt leftovers :(
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m9s

This commit is contained in:
2026-03-08 23:35:41 +01:00
parent ed4db21cf2
commit bea4ddd2c8
22 changed files with 218 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
apps := \
init \
spin \
ce
ce \
all_apps:
@for d in $(apps); do make -C $$d platform=$(platform) all; done

16
make/libmath.mk Normal file
View File

@@ -0,0 +1,16 @@
all_libmath:
make -C libmath platform=$(platform) all
all_compiledb_libmath:
bear --output libmath/compile_commands.json -- make -C libmath platform=$(platform) all
clean_libmath:
make -C libmath platform=$(platform) clean
format_libmath:
make -C libmath platform=$(platform) format
docs_libmath:
make -C libmath platform=$(platform) docs
.PHONY: all_libmath clean_libmath format_libmath docs_libmath all_compiledb_libmath

View File

@@ -4,16 +4,19 @@ 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): $(o)
$(ld) -o $@ $(ldflags) -T ../$(platform)/link.ld $^
$(app): $(extra_deps) $(o)
$(ld) -o $@ $(ldflags) -T ../$(platform)/link.ld $(o)
%.o: %.c
$(cc) -c -o $@ $(cflags) $<
@@ -25,6 +28,6 @@ clean:
rm -f $(o) $(app)
format:
clang-format -i $$(git ls-files '*.c' '*.h')
$(FORMAT)
.PHONY: all clean format