os/lib/acpica-build/Makefile
Mathieu Strypsteen f0b4236407
All checks were successful
Build / build (push) Successful in 2m43s
Download compiler in CI
2024-12-25 20:44:02 +01:00

11 lines
600 B
Makefile

EXEC_PRE:=$(shell rm -f ../acpica/source/include/platform/aclinux.h)
COMPONENTS:=dispatcher events executer hardware namespace parser resources tables utilities
CFILES:=$(foreach comp, $(COMPONENTS), $(wildcard ../acpica/source/components/$(comp)/*.c)) printf.c
OFILES:=$(patsubst %.c, %.o, $(CFILES))
CC:=clang
CFLAGS:=--target=x86_64-elf -ffreestanding -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -fstack-protector-strong -Wall -Werror -O2 -I. -I../acpica/source/include -DACPI_LIBRARY -D__linux__
libacpica.a: $(OFILES)
llvm-ar rcD $@ $^
clean:
find ../acpica -name '*.o' -delete