2010-12-02 01:33:02 +03:00
|
|
|
#
|
2011-06-02 01:29:54 +04:00
|
|
|
# acpinames - Load ACPI table and dump namespace. This is a subset
|
|
|
|
# of the AcpiExec functionality, it is intended to demonstrate
|
|
|
|
# the configurability of ACPICA.
|
|
|
|
#
|
|
|
|
# NOTE: This makefile is intended to be used in the Linux environment,
|
|
|
|
# with the Linux directory structure. It will not work directly
|
|
|
|
# on the native ACPICA source tree.
|
2010-12-02 01:33:02 +03:00
|
|
|
#
|
2011-06-10 21:36:49 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Configuration
|
|
|
|
# Notes:
|
|
|
|
# gcc should be version 4 or greater, otherwise some of the options
|
|
|
|
# used will not be recognized.
|
|
|
|
# Global optimization flags (such as -O2, -Os) are not used, since
|
|
|
|
# they cause issues on some compilers.
|
|
|
|
# The _GNU_SOURCE symbol is required for many hosts.
|
|
|
|
#
|
2010-12-02 01:33:02 +03:00
|
|
|
PROG = acpinames
|
|
|
|
|
2011-06-10 21:36:49 +04:00
|
|
|
HOST = _LINUX
|
|
|
|
NOMAN = YES
|
|
|
|
COMPILE = $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $?
|
|
|
|
|
|
|
|
ACPICA_COMPONENTS =
|
2010-12-02 01:33:02 +03:00
|
|
|
ACPICA_SRC = ../..
|
|
|
|
ACPICA_COMMON = $(ACPICA_SRC)/common
|
2011-06-10 21:36:49 +04:00
|
|
|
ACPICA_CORE = $(ACPICA_SRC)$(ACPICA_COMPONENTS)
|
2010-12-02 01:33:02 +03:00
|
|
|
ACPICA_TOOLS = $(ACPICA_SRC)/tools
|
|
|
|
ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers
|
2011-06-04 01:19:27 +04:00
|
|
|
INSTALLDIR = /usr/bin
|
|
|
|
INSTALLPROG = cp --remove-destination $(PROG) $(INSTALLDIR)
|
2010-12-02 01:33:02 +03:00
|
|
|
|
2011-06-04 01:19:27 +04:00
|
|
|
CFLAGS+= \
|
2011-06-10 21:36:49 +04:00
|
|
|
-D$(HOST) \
|
|
|
|
-D_GNU_SOURCE \
|
2011-06-09 02:00:21 +04:00
|
|
|
-DACPI_NAMES_APP \
|
2011-06-04 01:19:27 +04:00
|
|
|
-I$(ACPICA_SRC)/include \
|
|
|
|
-I$(ACPICA_TOOLS)/acpinames
|
|
|
|
|
|
|
|
CWARNINGFLAGS = \
|
|
|
|
-ansi \
|
|
|
|
-Wall \
|
|
|
|
-Wbad-function-cast \
|
|
|
|
-Wdeclaration-after-statement \
|
|
|
|
-Werror \
|
|
|
|
-Wformat=2 \
|
|
|
|
-Wmissing-declarations \
|
|
|
|
-Wmissing-prototypes \
|
|
|
|
-Wstrict-aliasing=0 \
|
|
|
|
-Wstrict-prototypes \
|
|
|
|
-Wswitch-default \
|
|
|
|
-Wpointer-arith \
|
|
|
|
-Wundef
|
|
|
|
|
2010-12-02 01:33:02 +03:00
|
|
|
OBJS = \
|
|
|
|
anmain.o \
|
|
|
|
anstubs.o \
|
|
|
|
antables.o \
|
|
|
|
dbfileio.o \
|
|
|
|
dsfield.o \
|
|
|
|
dsmthdat.o \
|
|
|
|
dsobject.o \
|
|
|
|
dsutils.o \
|
|
|
|
dswload.o \
|
2011-01-27 21:28:18 +03:00
|
|
|
dswload2.o \
|
2010-12-02 01:33:02 +03:00
|
|
|
dswscope.o \
|
|
|
|
dswstate.o \
|
|
|
|
excreate.o \
|
|
|
|
exnames.o \
|
|
|
|
exresnte.o \
|
|
|
|
exresolv.o \
|
|
|
|
exutils.o \
|
|
|
|
getopt.o \
|
|
|
|
nsaccess.o \
|
|
|
|
nsalloc.o \
|
|
|
|
nsdump.o \
|
|
|
|
nsinit.o \
|
|
|
|
nsload.o \
|
|
|
|
nsnames.o \
|
|
|
|
nsobject.o \
|
|
|
|
nsparse.o \
|
|
|
|
nssearch.o \
|
|
|
|
nsutils.o \
|
|
|
|
nswalk.o \
|
|
|
|
nsxfeval.o \
|
|
|
|
nsxfname.o \
|
|
|
|
nsxfobj.o \
|
|
|
|
osunixxf.o \
|
|
|
|
psargs.o \
|
|
|
|
psloop.o \
|
|
|
|
psopcode.o \
|
|
|
|
psparse.o \
|
|
|
|
psscope.o \
|
|
|
|
pstree.o \
|
|
|
|
psutils.o \
|
|
|
|
pswalk.o \
|
|
|
|
psxface.o \
|
|
|
|
tbfadt.o \
|
|
|
|
tbfind.o \
|
|
|
|
tbinstal.o \
|
|
|
|
tbutils.o \
|
|
|
|
tbxface.o \
|
|
|
|
tbxfroot.o \
|
|
|
|
utalloc.o \
|
|
|
|
utcache.o \
|
2011-01-22 02:10:19 +03:00
|
|
|
utdebug.o \
|
|
|
|
utdecode.o \
|
2010-12-02 01:33:02 +03:00
|
|
|
utdelete.o \
|
|
|
|
utglobal.o \
|
|
|
|
utlock.o \
|
|
|
|
utmath.o \
|
|
|
|
utmisc.o \
|
|
|
|
utmutex.o \
|
|
|
|
utobject.o \
|
|
|
|
utstate.o \
|
|
|
|
utosi.o \
|
|
|
|
utxferror.o \
|
|
|
|
utxface.o
|
|
|
|
|
|
|
|
#
|
|
|
|
# Root rule
|
|
|
|
#
|
|
|
|
$(PROG) : $(OBJS)
|
2011-06-08 21:11:12 +04:00
|
|
|
$(CC) $(LDFLAGS) $(OBJS) -o $(PROG)
|
2010-12-02 01:33:02 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# acpinames source
|
|
|
|
#
|
|
|
|
anmain.o : $(ACPICA_TOOLS)/acpinames/anmain.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
anstubs.o : $(ACPICA_TOOLS)/acpinames/anstubs.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
antables.o : $(ACPICA_TOOLS)/acpinames/antables.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
#
|
|
|
|
# ACPICA core source - common
|
|
|
|
#
|
|
|
|
getopt.o : $(ACPICA_COMMON)/getopt.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
#
|
|
|
|
# ACPICA core source
|
|
|
|
#
|
|
|
|
dbfileio.o : $(ACPICA_CORE)/debugger/dbfileio.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
dsfield.o : $(ACPICA_CORE)/dispatcher/dsfield.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
dsmthdat.o : $(ACPICA_CORE)/dispatcher/dsmthdat.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
dsobject.o : $(ACPICA_CORE)/dispatcher/dsobject.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
dsutils.o : $(ACPICA_CORE)/dispatcher/dsutils.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
dswload.o : $(ACPICA_CORE)/dispatcher/dswload.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
2011-01-27 21:28:18 +03:00
|
|
|
dswload2.o : $(ACPICA_CORE)/dispatcher/dswload2.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
2010-12-02 01:33:02 +03:00
|
|
|
dswscope.o : $(ACPICA_CORE)/dispatcher/dswscope.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
dswstate.o : $(ACPICA_CORE)/dispatcher/dswstate.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
excreate.o : $(ACPICA_CORE)/executer/excreate.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
exnames.o : $(ACPICA_CORE)/executer/exnames.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
exresnte.o : $(ACPICA_CORE)/executer/exresnte.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
exresolv.o : $(ACPICA_CORE)/executer/exresolv.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
exutils.o : $(ACPICA_CORE)/executer/exutils.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsaccess.o : $(ACPICA_CORE)/namespace/nsaccess.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsalloc.o : $(ACPICA_CORE)/namespace/nsalloc.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsdump.o : $(ACPICA_CORE)/namespace/nsdump.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsinit.o : $(ACPICA_CORE)/namespace/nsinit.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsload.o : $(ACPICA_CORE)/namespace/nsload.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsnames.o : $(ACPICA_CORE)/namespace/nsnames.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsobject.o : $(ACPICA_CORE)/namespace/nsobject.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsparse.o : $(ACPICA_CORE)/namespace/nsparse.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nssearch.o : $(ACPICA_CORE)/namespace/nssearch.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsutils.o : $(ACPICA_CORE)/namespace/nsutils.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nswalk.o : $(ACPICA_CORE)/namespace/nswalk.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsxfeval.o : $(ACPICA_CORE)/namespace/nsxfeval.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsxfname.o : $(ACPICA_CORE)/namespace/nsxfname.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
nsxfobj.o : $(ACPICA_CORE)/namespace/nsxfobj.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
psargs.o : $(ACPICA_CORE)/parser/psargs.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
psloop.o : $(ACPICA_CORE)/parser/psloop.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
psopcode.o : $(ACPICA_CORE)/parser/psopcode.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
psparse.o : $(ACPICA_CORE)/parser/psparse.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
psscope.o : $(ACPICA_CORE)/parser/psscope.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
pstree.o : $(ACPICA_CORE)/parser/pstree.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
psutils.o : $(ACPICA_CORE)/parser/psutils.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
pswalk.o : $(ACPICA_CORE)/parser/pswalk.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
psxface.o : $(ACPICA_CORE)/parser/psxface.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
tbfadt.o : $(ACPICA_CORE)/tables/tbfadt.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
tbfind.o : $(ACPICA_CORE)/tables/tbfind.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
tbinstal.o : $(ACPICA_CORE)/tables/tbinstal.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
tbutils.o : $(ACPICA_CORE)/tables/tbutils.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
tbxface.o : $(ACPICA_CORE)/tables/tbxface.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
tbxfroot.o : $(ACPICA_CORE)/tables/tbxfroot.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utalloc.o : $(ACPICA_CORE)/utilities/utalloc.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utcache.o : $(ACPICA_CORE)/utilities/utcache.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utdebug.o : $(ACPICA_CORE)/utilities/utdebug.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
2011-01-22 02:10:19 +03:00
|
|
|
utdecode.o : $(ACPICA_CORE)/utilities/utdecode.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
2010-12-02 01:33:02 +03:00
|
|
|
utdelete.o : $(ACPICA_CORE)/utilities/utdelete.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utglobal.o : $(ACPICA_CORE)/utilities/utglobal.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utlock.o : $(ACPICA_CORE)/utilities/utlock.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utmath.o : $(ACPICA_CORE)/utilities/utmath.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utmisc.o : $(ACPICA_CORE)/utilities/utmisc.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utmutex.o : $(ACPICA_CORE)/utilities/utmutex.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utobject.o : $(ACPICA_CORE)/utilities/utobject.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utstate.o : $(ACPICA_CORE)/utilities/utstate.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utosi.o : $(ACPICA_CORE)/utilities/utosi.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utxferror.o : $(ACPICA_CORE)/utilities/utxferror.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
utxface.o : $(ACPICA_CORE)/utilities/utxface.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Unix OS services layer (OSL)
|
|
|
|
#
|
|
|
|
osunixxf.o : $(ACPICA_OSL)/osunixxf.c
|
|
|
|
$(COMPILE)
|
|
|
|
|
|
|
|
|
2011-06-04 01:19:27 +04:00
|
|
|
clean :
|
2010-12-02 01:33:02 +03:00
|
|
|
rm -f $(PROG) $(PROG).exe $(OBJS)
|
2011-06-04 01:19:27 +04:00
|
|
|
|
|
|
|
install :
|
|
|
|
$(INSTALLPROG)
|