1# $FreeBSD$ 2 3PROG= iasl 4SRCS= adfile.c adisasm.c adwalk.c 5 6# common 7SRCS+= ahpredef.c dmextern.c dmrestag.c dmtable.c dmtbdump.c \ 8 dmtbinfo.c getopt.c 9 10# compiler 11SRCS+= aslanalyze.c aslbtypes.c aslcodegen.c aslcompile.c \ 12 aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c \ 13 aslerror.c aslfileio.c aslfiles.c aslfold.c aslhex.c \ 14 asllength.c asllisting.c asllistsup.c aslload.c \ 15 asllookup.c aslmain.c aslmap.c aslmethod.c aslnamesp.c \ 16 asloffset.c aslopcodes.c asloperands.c aslopt.c \ 17 asloptions.c aslpredef.c aslprepkg.c aslresource.c \ 18 aslrestype1.c aslrestype1i.c aslrestype2.c \ 19 aslrestype2d.c aslrestype2e.c aslrestype2q.c \ 20 aslrestype2s.c aslrestype2w.c aslstartup.c aslstubs.c \ 21 asltransform.c asltree.c aslutils.c asluuid.c \ 22 aslwalks.c aslxref.c dtcompile.c dtexpress.c dtfield.c \ 23 dtio.c dtparser.y.h dtparserlex.c dtparserparse.c \ 24 dtsubtable.c dttable.c dttemplate.c dtutils.c \ 25 prexpress.c prmacros.c prparser.y.h prparserlex.c \ 26 prparserparse.c prscan.c prutils.c 27 28# components/debugger 29SRCS+= dbfileio.c 30 31# components/disassembler 32SRCS+= dmbuffer.c dmdeferred.c dmnames.c dmopcode.c dmresrc.c \ 33 dmresrcl.c dmresrcl2.c dmresrcs.c dmutils.c dmwalk.c 34 35# components/dispatcher 36SRCS+= dsargs.c dscontrol.c dsfield.c dsobject.c dsopcode.c \ 37 dsutils.c dswexec.c dswload.c dswload2.c dswscope.c \ 38 dswstate.c 39 40# components/executer 41SRCS+= exconvrt.c excreate.c exdump.c exmisc.c exmutex.c \ 42 exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c \ 43 exprep.c exresnte.c exresolv.c exresop.c exstore.c \ 44 exstoren.c exstorob.c exsystem.c exutils.c 45 46# components/parser 47SRCS+= psargs.c psloop.c psobject.c psopcode.c psopinfo.c \ 48 psparse.c psscope.c pstree.c psutils.c pswalk.c 49 50# components/namespace 51SRCS+= nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c \ 52 nsparse.c nssearch.c nsutils.c nswalk.c 53 54# components/tables 55SRCS+= tbfadt.c tbinstal.c tbprint.c tbutils.c tbxface.c 56 57# components/utilities 58SRCS+= utaddress.c utalloc.c utbuffer.c utcache.c utcopy.c \ 59 utdebug.c utdecode.c utdelete.c uterror.c utexcep.c \ 60 utglobal.c utinit.c utlock.c utmath.c utmisc.c \ 61 utmutex.c utobject.c utownerid.c utpredef.c utresrc.c \ 62 utstate.c utstring.c utxface.c utxferror.c 63 64# os_specific/service_layers 65SRCS+= osunixxf.c 66 67WARNS?= 2 68 69MAN= iasl.8 70 71CFLAGS+= -DACPI_ASL_COMPILER -I. 72LFLAGS= -i -s 73YFLAGS= -d 74 75CLEANFILES= aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c \ 76 aslcompilerparse.h dtparser.y.h dtparserlex.c \ 77 dtparserparse.c dtparserparse.h prparser.y.h \ 78 prparserlex.c prparserparse.c prparserparse.h 79 80aslcompilerlex.c: aslcompiler.l aslsupport.l 81 ${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} \ 82 ${ACPICA_DIR}/compiler/aslcompiler.l 83 84.ORDER: aslcompilerparse.c aslcompilerparse.h 85aslcompilerparse.c aslcompilerparse.h: aslcompiler.y 86 ${YACC} ${YFLAGS} -pAslCompiler -oaslcompilerparse.c ${.ALLSRC} 87 88aslcompiler.y.h: aslcompilerparse.h 89 ln -f ${.ALLSRC} ${.TARGET} 90 91dtparserlex.c: dtparser.l 92 ${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC} 93 94.ORDER: dtparserparse.c dtparserparse.h 95dtparserparse.c dtparserparse.h: dtparser.y 96 ${YACC} ${YFLAGS} -pDtParser -odtparserparse.c ${.ALLSRC} 97 98dtparser.y.h: dtparserparse.h 99 ln -f ${.ALLSRC} ${.TARGET} 100 101prparserlex.c: prparser.l 102 ${LEX} ${LFLAGS} -PPrParser -o${.TARGET} ${.ALLSRC} 103 104.ORDER: prparserparse.c prparserparse.h 105prparserparse.c prparserparse.h: prparser.y 106 ${YACC} ${YFLAGS} -pPrParser -oprparserparse.c ${.ALLSRC} 107 108prparser.y.h: prparserparse.h 109 ln -f ${.ALLSRC} ${.TARGET} 110 111.include <bsd.prog.mk> 112