os/lib/acpica-build/Makefile

11 lines
586 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 -O2 -I. -I../acpica/source/include -DACPI_LIBRARY -D__linux__
libacpica.a: $(OFILES)
llvm-ar rcD $@ $^
clean:
find ../acpica -name '*.o' -delete