From 89602748a923ae015ea2fada59e0be9687801e79 Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Fri, 30 Nov 2012 23:44:12 +0800 Subject: [PATCH] Externals/ACPICA - Working on drop-in ACPICA - Note: Requires it to be extracted to the Externals/ACPICA directory --- Externals/ACPICA/.gitignore | 1 + Externals/ACPICA/Makefile | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Externals/ACPICA/.gitignore create mode 100644 Externals/ACPICA/Makefile diff --git a/Externals/ACPICA/.gitignore b/Externals/ACPICA/.gitignore new file mode 100644 index 00000000..81af5ccf --- /dev/null +++ b/Externals/ACPICA/.gitignore @@ -0,0 +1 @@ +acpica-unix-* diff --git a/Externals/ACPICA/Makefile b/Externals/ACPICA/Makefile new file mode 100644 index 00000000..378a042d --- /dev/null +++ b/Externals/ACPICA/Makefile @@ -0,0 +1,25 @@ + + +include $(dir $(lastword $(MAKEFILE_LIST)))../../Makefile.cfg + +COMPONENTS = utilities tables +BIN := ../$(ARCH)/libacpica.a + +ACPICAROOT := acpica-unix-20121114/ +COMPDIR := $(ACPICAROOT)source/components/ + +CPPFLAGS += -I $(ACPICAROOT)source/include + +SRCS := $(foreach comp,$(COMPONENTS),$(wildcard $(COMPDIR)$(comp)/*.c)) +OBJS := $(SRCS:$(COMPDIR)%.c=obj-$(ARCH)/%.o) + +.PHONY: all clean + +$(BIN): $(OBJS) + ar -cu $@ $(OBJS) + +obj-$(ARCH)/%.o: $(COMPDIR)%.c + @mkdir -p $(dir $@) + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< + @$(CC) -M -MP -MT $@ $(CPPFLAGS) $< -o $@.dep + -- 2.20.1