xref: /freebsd/usr.sbin/acpi/acpidb/Makefile (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1
2PROG=	acpidb
3SRCS=	acpidb.c
4
5# common
6SRCS+=	acfileio.c acgetline.c ahids.c ahuuids.c cmfsize.c
7
8# components/debugger
9SRCS+=	dbcmds.c dbconvert.c dbdisply.c dbexec.c dbfileio.c	\
10	dbhistry.c dbinput.c dbmethod.c dbnames.c dbobject.c	\
11	dbstats.c dbtest.c dbutils.c dbxface.c
12
13# components/disassembler
14SRCS+=	dmbuffer.c dmcstyle.c dmdeferred.c dmnames.c dmopcode.c	\
15	dmresrc.c dmresrcl.c dmresrcl2.c dmresrcs.c dmutils.c	\
16	dmwalk.c
17
18# components/dispatcher
19SRCS+=	dsargs.c dscontrol.c dsdebug.c dsfield.c dsinit.c	\
20	dsmethod.c dsmthdat.c dsobject.c dsopcode.c dspkginit.c	\
21	dsutils.c dswexec.c dswload.c dswload2.c dswscope.c	\
22	dswstate.c
23
24# components/events
25SRCS+=	evevent.c evglock.c evgpe.c evgpeblk.c evgpeinit.c	\
26	evgpeutil.c evhandler.c evmisc.c evregion.c evrgnini.c	\
27	evsci.c evxface.c evxfevnt.c evxfregn.c
28
29# components/executer
30SRCS+=	exconcat.c exconfig.c exconvrt.c excreate.c exdebug.c	\
31	exdump.c exfield.c exfldio.c exmisc.c exmutex.c		\
32	exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c	\
33	exprep.c exregion.c exresnte.c exresolv.c exresop.c	\
34	exserial.c exstore.c exstoren.c exstorob.c exsystem.c	\
35	extrace.c exutils.c
36
37# components/hardware
38SRCS+=	hwacpi.c hwesleep.c hwgpe.c hwpci.c hwregs.c hwsleep.c	\
39	hwvalid.c hwxface.c hwxfsleep.c
40
41# components/namespace
42SRCS+=	nsaccess.c nsalloc.c nsarguments.c nsconvert.c nsdump.c	\
43	nseval.c nsinit.c nsload.c nsnames.c nsobject.c		\
44	nsparse.c nspredef.c nsprepkg.c nsrepair.c nsrepair2.c	\
45	nssearch.c nsutils.c nswalk.c nsxfeval.c nsxfname.c	\
46	nsxfobj.c
47
48# components/parser
49SRCS+=	psargs.c psloop.c psobject.c psopcode.c psopinfo.c	\
50	psparse.c psscope.c pstree.c psutils.c pswalk.c		\
51	psxface.c
52
53# components/resources
54SRCS+=	rsaddr.c rscalc.c rscreate.c rsdump.c rsdumpinfo.c	\
55	rsinfo.c rsio.c rsirq.c rslist.c rsmemory.c rsmisc.c	\
56	rsserial.c rsutils.c rsxface.c
57
58# components/tables
59SRCS+=	tbdata.c tbfadt.c tbfind.c tbinstal.c tbprint.c		\
60	tbutils.c tbxface.c tbxfload.c
61
62# components/utilities
63SRCS+=	utaddress.c utalloc.c utascii.c utbuffer.c utcache.c	\
64	utcksum.c utcopy.c utdebug.c utdecode.c utdelete.c	\
65	uterror.c uteval.c utexcep.c utglobal.c uthex.c utids.c	\
66	utinit.c utlock.c utmath.c utmisc.c utmutex.c		\
67	utnonansi.c utobject.c utosi.c utownerid.c utpredef.c	\
68	utresdecode.c utresrc.c utstate.c utstring.c		\
69	utstrsuppt.c utstrtoul64.c uttrack.c utuuid.c utxface.c	\
70	utxferror.c utxfinit.c
71
72# os_specific/service_layers
73SRCS+=	osgendbg.c osunixxf.c
74
75MAN=	acpidb.8
76WARNS?=	3
77
78CFLAGS+= -DACPI_DB_APP -DACPI_EXEC_APP -fno-strict-aliasing
79LIBADD=	pthread
80
81.include <bsd.prog.mk>
82
83# clang 6.0.0 and higher warn about the ACPI_ROOT_OBJECT and
84# ACPI_TO_POINTER macros from sys/contrib/dev/acpica/include/actypes.h,
85# that they use arithmetic on a null pointer treated as a cast from
86# integer to pointer, which is a GNU extension.
87#
88# Turn off the warning, because this is in contributed code.
89.if ${COMPILER_TYPE} == "clang"
90CWARNFLAGS+=	-Wno-null-pointer-arithmetic
91.endif
92
93# AcpiUtInitStackPtrTrace intentionally leaks a pointer to an
94# on-stack variable.
95CWARNFLAGS.utdebug.c+= ${NO_WDANGLING_POINTER}
96