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