Externals/ACPICA - Working on drop-in ACPICA
authorJohn Hodge (sonata) <[email protected]>
Fri, 30 Nov 2012 15:44:12 +0000 (23:44 +0800)
committerJohn Hodge (sonata) <[email protected]>
Fri, 30 Nov 2012 15:44:12 +0000 (23:44 +0800)
- Note: Requires it to be extracted to the Externals/ACPICA directory

Externals/ACPICA/.gitignore [new file with mode: 0644]
Externals/ACPICA/Makefile [new file with mode: 0644]

diff --git a/Externals/ACPICA/.gitignore b/Externals/ACPICA/.gitignore
new file mode 100644 (file)
index 0000000..81af5cc
--- /dev/null
@@ -0,0 +1 @@
+acpica-unix-*
diff --git a/Externals/ACPICA/Makefile b/Externals/ACPICA/Makefile
new file mode 100644 (file)
index 0000000..378a042
--- /dev/null
@@ -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 [email protected]
+

UCC git Repository :: git.ucc.asn.au