2003-08-07 16:51:50 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PROG= iasl
|
|
|
|
|
2005-11-01 22:44:08 +00:00
|
|
|
# common
|
2016-04-27 19:09:21 +00:00
|
|
|
SRCS= acfileio.c adfile.c adisasm.c adwalk.c ahids.c \
|
|
|
|
ahpredef.c ahtable.c ahuuids.c cmfsize.c dmextern.c \
|
2017-06-01 00:01:19 +00:00
|
|
|
dmrestag.c dmswitch.c dmtable.c dmtables.c dmtbdump.c \
|
2018-02-09 21:49:38 +00:00
|
|
|
dmtbdump1.c dmtbdump2.c dmtbdump3.c dmtbinfo.c \
|
|
|
|
dmtbinfo1.c dmtbinfo2.c dmtbinfo3.c getopt.c
|
2005-11-01 22:44:08 +00:00
|
|
|
|
|
|
|
# compiler
|
2017-10-10 19:33:24 +00:00
|
|
|
SRCS+= aslallocate.c aslanalyze.c aslascii.c aslbtypes.c \
|
|
|
|
aslcache.c aslcodegen.c aslcompile.c aslcompiler.y.h \
|
|
|
|
aslcompilerlex.c aslcompilerparse.c asldebug.c \
|
|
|
|
aslerror.c aslexternal.c aslfileio.c aslfiles.c \
|
|
|
|
aslfold.c aslhelp.c aslhex.c asllength.c asllisting.c \
|
|
|
|
asllistsup.c aslload.c asllookup.c aslmain.c aslmap.c \
|
|
|
|
aslmapenter.c aslmapoutput.c aslmaputils.c \
|
|
|
|
aslmessages.c aslmethod.c aslnamesp.c asloffset.c \
|
|
|
|
aslopcodes.c asloperands.c aslopt.c asloptions.c \
|
|
|
|
aslparseop.c aslpld.c aslpredef.c aslprepkg.c \
|
|
|
|
aslprintf.c aslprune.c aslresource.c aslrestype1.c \
|
|
|
|
aslrestype1i.c aslrestype2.c aslrestype2d.c \
|
|
|
|
aslrestype2e.c aslrestype2q.c aslrestype2s.c \
|
|
|
|
aslrestype2w.c aslstartup.c aslstubs.c asltransform.c \
|
|
|
|
asltree.c aslutils.c asluuid.c aslwalks.c aslxref.c \
|
|
|
|
aslxrefout.c cvcompiler.c cvdisasm.c cvparser.c \
|
2019-10-19 14:56:44 +00:00
|
|
|
dtcompile.c dtcompilerparser.y.h dtcompilerparserlex.c \
|
|
|
|
dtcompilerparserparse.c dtexpress.c dtfield.c dtio.c \
|
|
|
|
dtparser.y.h dtparserlex.c dtparserparse.c dtsubtable.c \
|
|
|
|
dttable.c dttable1.c dttable2.c dttemplate.c dtutils.c \
|
2017-10-10 19:33:24 +00:00
|
|
|
prexpress.c prmacros.c prparser.y.h prparserlex.c \
|
|
|
|
prparserparse.c prscan.c prutils.c
|
2005-11-01 22:44:08 +00:00
|
|
|
|
2012-02-16 22:59:29 +00:00
|
|
|
# components/debugger
|
2005-11-01 22:44:08 +00:00
|
|
|
SRCS+= dbfileio.c
|
|
|
|
|
2012-02-16 22:59:29 +00:00
|
|
|
# components/disassembler
|
2015-02-18 20:33:00 +00:00
|
|
|
SRCS+= dmbuffer.c dmcstyle.c dmdeferred.c dmnames.c dmopcode.c \
|
|
|
|
dmresrc.c dmresrcl.c dmresrcl2.c dmresrcs.c dmutils.c \
|
|
|
|
dmwalk.c
|
2005-11-01 22:44:08 +00:00
|
|
|
|
2012-02-16 22:59:29 +00:00
|
|
|
# components/dispatcher
|
2011-02-12 01:03:15 +00:00
|
|
|
SRCS+= dsargs.c dscontrol.c dsfield.c dsobject.c dsopcode.c \
|
2017-07-28 22:23:29 +00:00
|
|
|
dspkginit.c dsutils.c dswexec.c dswload.c dswload2.c \
|
|
|
|
dswscope.c dswstate.c
|
2005-11-01 22:44:08 +00:00
|
|
|
|
2012-02-16 22:59:29 +00:00
|
|
|
# components/executer
|
2016-04-27 19:09:21 +00:00
|
|
|
SRCS+= exconcat.c exconvrt.c excreate.c exdump.c exmisc.c \
|
|
|
|
exmutex.c exnames.c exoparg1.c exoparg2.c exoparg3.c \
|
|
|
|
exoparg6.c exprep.c exresnte.c exresolv.c exresop.c \
|
|
|
|
exstore.c exstoren.c exstorob.c exsystem.c exutils.c
|
2003-08-07 16:51:50 +00:00
|
|
|
|
2012-02-16 22:59:29 +00:00
|
|
|
# components/parser
|
2013-01-17 23:56:43 +00:00
|
|
|
SRCS+= psargs.c psloop.c psobject.c psopcode.c psopinfo.c \
|
|
|
|
psparse.c psscope.c pstree.c psutils.c pswalk.c
|
2005-11-01 22:44:08 +00:00
|
|
|
|
2012-02-16 22:59:29 +00:00
|
|
|
# components/namespace
|
2005-11-01 22:44:08 +00:00
|
|
|
SRCS+= nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c \
|
2012-01-13 22:16:47 +00:00
|
|
|
nsparse.c nssearch.c nsutils.c nswalk.c
|
2005-11-01 22:44:08 +00:00
|
|
|
|
2012-02-16 22:59:29 +00:00
|
|
|
# components/tables
|
2014-10-02 19:11:18 +00:00
|
|
|
SRCS+= tbdata.c tbfadt.c tbinstal.c tbprint.c tbutils.c \
|
2016-04-27 19:09:21 +00:00
|
|
|
tbxface.c tbxfload.c
|
2005-11-01 22:44:08 +00:00
|
|
|
|
2012-02-16 22:59:29 +00:00
|
|
|
# components/utilities
|
2016-04-27 19:09:21 +00:00
|
|
|
SRCS+= utaddress.c utalloc.c utascii.c utbuffer.c utcache.c \
|
|
|
|
utcopy.c utdebug.c utdecode.c utdelete.c uterror.c \
|
|
|
|
utexcep.c utglobal.c uthex.c utinit.c utlock.c utmath.c \
|
|
|
|
utmisc.c utmutex.c utnonansi.c utobject.c utownerid.c \
|
2017-06-01 00:01:19 +00:00
|
|
|
utpredef.c utresdecode.c utresrc.c utstate.c utstring.c \
|
2017-08-31 22:47:04 +00:00
|
|
|
utstrsuppt.c utstrtoul64.c utuuid.c utxface.c \
|
|
|
|
utxferror.c
|
2005-11-01 22:44:08 +00:00
|
|
|
|
2012-02-16 22:59:29 +00:00
|
|
|
# os_specific/service_layers
|
2016-10-04 20:27:15 +00:00
|
|
|
SRCS+= osunixxf.c
|
2012-02-16 22:59:29 +00:00
|
|
|
|
2010-01-02 11:07:44 +00:00
|
|
|
WARNS?= 2
|
|
|
|
|
2005-11-01 22:44:08 +00:00
|
|
|
MAN= iasl.8
|
2003-08-07 16:51:50 +00:00
|
|
|
|
2005-11-01 22:44:08 +00:00
|
|
|
CFLAGS+= -DACPI_ASL_COMPILER -I.
|
2011-04-15 18:34:27 +00:00
|
|
|
LFLAGS= -i -s
|
2019-10-19 14:56:44 +00:00
|
|
|
DLFLAGS=-i
|
2011-04-15 18:34:27 +00:00
|
|
|
YFLAGS= -d
|
2003-08-07 16:51:50 +00:00
|
|
|
|
2014-10-02 19:11:18 +00:00
|
|
|
CLEANFILES= aslcompiler.y aslcompiler.y.h aslcompilerlex.c \
|
2019-10-19 14:56:44 +00:00
|
|
|
aslcompilerparse.c aslcompilerparse.h \
|
|
|
|
dtcompilerparser.y.h dtcompilerparserlex.c \
|
|
|
|
dtcompilerparserparse.c dtcompilerparserparse.h \
|
|
|
|
dtparser.y.h dtparserlex.c dtparserparse.c \
|
|
|
|
dtparserparse.h prparser.y.h prparserlex.c \
|
|
|
|
prparserparse.c prparserparse.h
|
2003-08-07 16:51:50 +00:00
|
|
|
|
2016-10-04 20:27:15 +00:00
|
|
|
PARSER= aslcstyle.y aslhelpers.y aslkeywords.y aslparser.y \
|
|
|
|
aslprimaries.y aslresources.y aslrules.y aslsupport.y \
|
|
|
|
asltokens.y asltypes.y
|
2016-04-27 19:09:21 +00:00
|
|
|
|
2012-04-23 23:05:14 +00:00
|
|
|
aslcompilerlex.c: aslcompiler.l aslsupport.l
|
|
|
|
${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} \
|
|
|
|
${ACPICA_DIR}/compiler/aslcompiler.l
|
2003-08-07 16:51:50 +00:00
|
|
|
|
2016-04-27 19:09:21 +00:00
|
|
|
aslcompiler.y: ${PARSER}
|
2014-10-02 19:11:18 +00:00
|
|
|
m4 -P -I${ACPICA_DIR}/compiler \
|
|
|
|
${ACPICA_DIR}/compiler/aslparser.y > ${.TARGET}
|
|
|
|
|
2012-03-07 23:57:49 +00:00
|
|
|
.ORDER: aslcompilerparse.c aslcompilerparse.h
|
2016-06-03 19:25:41 +00:00
|
|
|
aslcompilerparse.h: .NOMETA
|
2012-03-07 23:57:49 +00:00
|
|
|
aslcompilerparse.c aslcompilerparse.h: aslcompiler.y
|
|
|
|
${YACC} ${YFLAGS} -pAslCompiler -oaslcompilerparse.c ${.ALLSRC}
|
2004-01-13 20:53:56 +00:00
|
|
|
|
2015-11-25 19:44:43 +00:00
|
|
|
aslcompiler.y.h: aslcompilerparse.h .NOMETA
|
2012-03-07 23:57:49 +00:00
|
|
|
ln -f ${.ALLSRC} ${.TARGET}
|
2011-04-15 18:34:27 +00:00
|
|
|
|
2019-10-19 14:56:44 +00:00
|
|
|
dtcompilerparserlex.c: dtcompilerparser.l
|
|
|
|
${LEX} ${DLFLAGS} -PDtCompilerParser -o${.TARGET} ${.ALLSRC}
|
|
|
|
|
|
|
|
.ORDER: dtcompilerparserparse.c dtcompilerparserparse.h
|
|
|
|
dtcompilerparserparse.h: .NOMETA
|
|
|
|
dtcompilerparserparse.c dtcompilerparserparse.h: dtcompilerparser.y
|
|
|
|
${YACC} ${YFLAGS} -pDtCompilerParser -odtcompilerparserparse.c \
|
|
|
|
${.ALLSRC}
|
|
|
|
|
|
|
|
dtcompilerparser.y.h: dtcompilerparserparse.h .NOMETA
|
|
|
|
ln -f ${.ALLSRC} ${.TARGET}
|
|
|
|
|
2011-04-15 18:34:27 +00:00
|
|
|
dtparserlex.c: dtparser.l
|
2019-10-19 14:56:44 +00:00
|
|
|
${LEX} ${DLFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC}
|
2011-04-15 18:34:27 +00:00
|
|
|
|
2012-03-07 23:57:49 +00:00
|
|
|
.ORDER: dtparserparse.c dtparserparse.h
|
2016-06-03 19:25:41 +00:00
|
|
|
dtparserparse.h: .NOMETA
|
2012-03-07 23:57:49 +00:00
|
|
|
dtparserparse.c dtparserparse.h: dtparser.y
|
|
|
|
${YACC} ${YFLAGS} -pDtParser -odtparserparse.c ${.ALLSRC}
|
2011-04-15 18:34:27 +00:00
|
|
|
|
2015-11-25 19:44:43 +00:00
|
|
|
dtparser.y.h: dtparserparse.h .NOMETA
|
2012-03-07 23:57:49 +00:00
|
|
|
ln -f ${.ALLSRC} ${.TARGET}
|
2003-08-07 16:51:50 +00:00
|
|
|
|
2012-03-20 21:37:52 +00:00
|
|
|
prparserlex.c: prparser.l
|
|
|
|
${LEX} ${LFLAGS} -PPrParser -o${.TARGET} ${.ALLSRC}
|
|
|
|
|
|
|
|
.ORDER: prparserparse.c prparserparse.h
|
2016-06-03 19:25:41 +00:00
|
|
|
prparserparse.h: .NOMETA
|
2012-03-20 21:37:52 +00:00
|
|
|
prparserparse.c prparserparse.h: prparser.y
|
|
|
|
${YACC} ${YFLAGS} -pPrParser -oprparserparse.c ${.ALLSRC}
|
|
|
|
|
2015-11-25 19:44:43 +00:00
|
|
|
prparser.y.h: prparserparse.h .NOMETA
|
2012-03-20 21:37:52 +00:00
|
|
|
ln -f ${.ALLSRC} ${.TARGET}
|
|
|
|
|
2003-08-07 16:51:50 +00:00
|
|
|
.include <bsd.prog.mk>
|