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