X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Externals%2FACPICA%2FMakefile;h=835614d3424d99b639d6862381e5efbbae75082e;hb=4e8503d48fc27851b9eab09e9e3edf4c6f6c9488;hp=761b5ec49262e25d774ececb6cb653a044463989;hpb=9c8b7750be573fbe40bdb3dc4c2a9a5390970b39;p=tpg%2Facess2.git diff --git a/Externals/ACPICA/Makefile b/Externals/ACPICA/Makefile index 761b5ec4..835614d3 100644 --- a/Externals/ACPICA/Makefile +++ b/Externals/ACPICA/Makefile @@ -2,7 +2,8 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../../Makefile.cfg -COMPONENTS = utilities tables +ACPI_DEBUG ?= no + BIN := ../bin-$(ARCH)/libacpica.a _VERS := $(patsubst acpica-unix-%.tar.gz,%,$(wildcard acpica-unix-*.tar.gz)) @@ -31,9 +32,12 @@ CPPFLAGS += -I $(KERNELDIR)include -I$(KERNELDIR)arch/$(ARCHDIR)/include -D_MODU CPPFLAGS += -I $(ACPICAROOT)source/include -D _ACESS -D __KERNEL__ CPPFLAGS += -D ARCH=$(ARCH) -D ARCHDIR=$(ARCHDIR) -D PLATFORM=\"$(PLATFORM)\" -D ARCHDIR_IS_$(ARCHDIR)=1 -D PLATFORM_is_$(PLATFORM)=1 CPPFLAGS += -D KERNEL_VERSION=$(KERNEL_VERSION) -ffreestanding +ifneq ($(ACPI_DEBUG),no) + CPPFLAGS += -D ACPI_DEBUG_OUTPUT=1 -D ACPI_DISASSEMBLER=1 +endif CFLAGS += -Wall -fno-stack-protector -Wstrict-prototypes -std=gnu99 -g -SRCS := $(foreach comp,$(COMPONENTS),$(wildcard $(COMPDIR)$(comp)/*.c)) +SRCS := $(wildcard $(COMPDIR)*/*.c) OBJS := $(SRCS:$(COMPDIR)%.c=obj-$(ARCH)/%.o) ACENV_H := $(ACPICAROOT)source/include/platform/acenv.h @@ -46,10 +50,11 @@ extract: $(ACPICAROOT) @echo Re-run make to compile endif -all: $(BIN) +all: $(BIN) include clean: - $(RM) -r obj-$(ARCH)/ + $(RM) -r obj-$(ARCH)/ include + purge: clean $(RM) -r $(ACPICAROOT) @@ -58,6 +63,9 @@ $(BIN): $(OBJS) @echo [AR] $@ @ar rcu $@ $(OBJS) +include: + ln -s $(ACPICAROOT)source/include + $(ACPICAROOT): $(ACPICA_ARCHIVE) tar -xf $(ACPICA_ARCHIVE)