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