summaryrefslogtreecommitdiffstats
path: root/uacpi.mk
diff options
context:
space:
mode:
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)
+
+