From: John Hodge (sonata) Date: Fri, 30 Nov 2012 15:44:12 +0000 (+0800) Subject: Externals/ACPICA - Working on drop-in ACPICA X-Git-Tag: rel0.15~627 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=89602748a923ae015ea2fada59e0be9687801e79;p=tpg%2Facess2.git Externals/ACPICA - Working on drop-in ACPICA - Note: Requires it to be extracted to the Externals/ACPICA directory --- 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 +