summaryrefslogtreecommitdiffstats
path: root/uacpi.mk
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-09-11 11:39:21 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-09-11 11:39:21 -0400
commitfeba4522d1ac41cd04083fe05410b6e90b54bda2 (patch)
tree867c58ba68c705bdb77ca4283ad21ce74cd3ec51 /uacpi.mk
parentbb08472a04127c994d3ea5a2cbc195f7116a03b8 (diff)
downloadjove-kernel-feba4522d1ac41cd04083fe05410b6e90b54bda2.tar.gz
jove-kernel-feba4522d1ac41cd04083fe05410b6e90b54bda2.tar.bz2
jove-kernel-feba4522d1ac41cd04083fe05410b6e90b54bda2.zip
begin adding uacpi - working build target
Diffstat (limited to 'uacpi.mk')
-rw-r--r--uacpi.mk20
1 files changed, 20 insertions, 0 deletions
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)
+
+