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