Files
mop3/kernel/Makefile
kamkow1 8ae16342b6
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 40s
Build documentation / build-and-deploy (push) Successful in 33s
ISO9660 filesystem driver
2026-04-06 22:45:54 +02:00

42 lines
689 B
Makefile

cc := clang
ld := ld.lld
o :=
c :=
ldflags :=
cflags :=
buildtype ?= release
include make/vars.mk
include make/flags.mk
include make/src.mk
all: build/kernel.elf
build/kernel.elf: $(o)
$(ld) -o $@ $(ldflags) -T $(platform)/link.ld $^
%.o: %.c
$(cc) -c -o $@ $(cflags) $<
%.o: %.S
$(cc) -c -o $@ $(cflags) $<
clean:
rm -f $(o) build/kernel.elf
format:
clang-format -i $$(git ls-files '*.c' '*.h' \
':!limine/limine.h' \
':!c_headers/include/**' \
':!uACPI/source/**' \
':!uACPI/include/**' \
':!uACPI/tests/**' \
':!libk/printf*' \
':!lz4/lz4*' \
':!device/pci/pci_defs.c' \
':!mm/malloc*' \
':!fs/lib9660.c' \
':!fs/lib9660.h')
.PHONY: all clean format