2 # acpihelp - ACPI Help utility. Displays ASL operator syntax and
3 # information about ACPI predefined names.
5 # NOTE: This makefile is intended to be used within the native
12 # gcc should be version 4 or greater, otherwise some of the options
13 # used will not be recognized.
14 # Global optimization flags (such as -O2, -Os) are not used, since
15 # they cause issues on some compilers.
16 # The _GNU_SOURCE symbol is required for many hosts.
22 COMPILE = $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $<
24 ACPICA_SRC = ../../../source
25 ACPICA_COMMON = $(ACPICA_SRC)/common
26 ACPICA_TOOLS = $(ACPICA_SRC)/tools
27 ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers
28 ACPICA_CORE = $(ACPICA_SRC)/components
29 ACPICA_INCLUDE = $(ACPICA_SRC)/include
30 ACPICA_DEBUGGER = $(ACPICA_CORE)/debugger
31 ACPICA_DISASSEMBLER = $(ACPICA_CORE)/disassembler
32 ACPICA_DISPATCHER = $(ACPICA_CORE)/dispatcher
33 ACPICA_EVENTS = $(ACPICA_CORE)/events
34 ACPICA_EXECUTER = $(ACPICA_CORE)/executer
35 ACPICA_HARDWARE = $(ACPICA_CORE)/hardware
36 ACPICA_NAMESPACE = $(ACPICA_CORE)/namespace
37 ACPICA_PARSER = $(ACPICA_CORE)/parser
38 ACPICA_RESOURCES = $(ACPICA_CORE)/resources
39 ACPICA_TABLES = $(ACPICA_CORE)/tables
40 ACPICA_UTILITIES = $(ACPICA_CORE)/utilities
41 ACPIHELP = $(ACPICA_TOOLS)/acpihelp
43 INSTALLPROG = cp --remove-destination $(PROG) $(INSTALLDIR)
46 $(wildcard $(ACPICA_INCLUDE)/*.h) \
47 $(wildcard $(ACPICA_INCLUDE)/platform/*.h)
50 # Search paths for source files
57 $(wildcard $(ACPIHELP)/*.h)
78 -Wdeclaration-after-statement \
81 -Wmissing-declarations \
82 -Wmissing-prototypes \
98 -Wmissing-declarations \
99 -Wmissing-field-initializers \
100 -Wmissing-parameter-type \
102 -Wold-style-declaration \
103 -Wold-style-definition \
111 $(CC) $(LDFLAGS) $(OBJECTS) -o $(PROG)
114 %.o : %.c $(HEADERS) $(ACPICA_HEADERS)
118 rm -f $(PROG) $(PROG).exe $(OBJECTS)