From feba4522d1ac41cd04083fe05410b6e90b54bda2 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Fri, 11 Sep 2026 11:39:21 -0400 Subject: begin adding uacpi - working build target --- uacpi.mk | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 uacpi.mk (limited to 'uacpi.mk') diff --git a/uacpi.mk b/uacpi.mk new file mode 100644 index 0000000..58e08c6 --- /dev/null +++ b/uacpi.mk @@ -0,0 +1,20 @@ +UACPI_DIR := uacpi +UACPI_CDIR := $(UACPI_DIR)/source +UACPI_IDIR := $(UACPI_DIR)/include + +UACPI_CFILES := $(wildcard $(UACPI_CDIR)/*.c) +UACPI_OFILES := $(patsubst %.c,%.o,$(UACPI_CFILES)) + +CFLAGS += -I$(UACPI_IDIR) + +DEPFILES += $(patsubst %.c,%.d,$(UACPI_CFILES)) +CLEAN_DEPENDS += uacpi_clean + +uacpi.a: ${UACPI_OFILES} + ar rcs $@ $^ + +.PHONY: uacpi_clean +uacpi_clean: + -rm $(UACPI_OFILES) + + -- cgit v1.2.3