012faf16c1
Reviewed by: tijl
96 lines
2.7 KiB
Makefile
96 lines
2.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
PROG= iasl
|
|
SRCS= adfile.c adisasm.c adwalk.c
|
|
|
|
# common
|
|
SRCS+= dmextern.c dmrestag.c dmtable.c dmtbdump.c dmtbinfo.c \
|
|
getopt.c
|
|
|
|
# compiler
|
|
SRCS+= aslanalyze.c aslbtypes.c aslcodegen.c aslcompile.c \
|
|
aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c \
|
|
aslerror.c aslfiles.c aslfold.c asllength.c \
|
|
asllisting.c aslload.c asllookup.c aslmain.c aslmap.c \
|
|
aslopcodes.c asloperands.c aslopt.c aslpredef.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 dtcompile.c dtexpress.c \
|
|
dtfield.c dtio.c dtparser.y.h dtparserlex.c \
|
|
dtparserparse.c dtsubtable.c dttable.c dttemplate.c \
|
|
dtutils.c
|
|
|
|
# components/debugger
|
|
SRCS+= dbfileio.c
|
|
|
|
# components/disassembler
|
|
SRCS+= dmbuffer.c dmnames.c dmopcode.c dmresrc.c dmresrcl.c \
|
|
dmresrcl2.c dmresrcs.c dmutils.c dmwalk.c
|
|
|
|
# components/dispatcher
|
|
SRCS+= dsargs.c dscontrol.c dsfield.c dsobject.c dsopcode.c \
|
|
dsutils.c dswexec.c dswload.c dswload2.c dswscope.c \
|
|
dswstate.c
|
|
|
|
# components/executer
|
|
SRCS+= 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
|
|
|
|
# components/parser
|
|
SRCS+= psargs.c psloop.c psopcode.c psparse.c psscope.c \
|
|
pstree.c psutils.c pswalk.c
|
|
|
|
# components/namespace
|
|
SRCS+= nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c \
|
|
nsparse.c nssearch.c nsutils.c nswalk.c
|
|
|
|
# components/tables
|
|
SRCS+= tbfadt.c tbinstal.c tbutils.c tbxface.c
|
|
|
|
# components/utilities
|
|
SRCS+= utaddress.c utalloc.c utcache.c utcopy.c utdebug.c \
|
|
utdecode.c utdelete.c utglobal.c utinit.c utlock.c \
|
|
utmath.c utmisc.c utmutex.c utobject.c utresrc.c \
|
|
utstate.c utxface.c utxferror.c
|
|
|
|
# os_specific/service_layers
|
|
SRCS+= osunixxf.c
|
|
|
|
WARNS?= 2
|
|
|
|
MAN= iasl.8
|
|
|
|
CFLAGS+= -DACPI_ASL_COMPILER -I.
|
|
LFLAGS= -i -s
|
|
YFLAGS= -d
|
|
|
|
CLEANFILES= aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c \
|
|
aslcompilerparse.h dtparser.y.h dtparserlex.c \
|
|
dtparserparse.c dtparserparse.h
|
|
|
|
aslcompilerlex.c: aslcompiler.l
|
|
${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} ${.ALLSRC}
|
|
|
|
.ORDER: aslcompilerparse.c aslcompilerparse.h
|
|
aslcompilerparse.c aslcompilerparse.h: aslcompiler.y
|
|
${YACC} ${YFLAGS} -pAslCompiler -oaslcompilerparse.c ${.ALLSRC}
|
|
|
|
aslcompiler.y.h: aslcompilerparse.h
|
|
ln -f ${.ALLSRC} ${.TARGET}
|
|
|
|
dtparserlex.c: dtparser.l
|
|
${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC}
|
|
|
|
.ORDER: dtparserparse.c dtparserparse.h
|
|
dtparserparse.c dtparserparse.h: dtparser.y
|
|
${YACC} ${YFLAGS} -pDtParser -odtparserparse.c ${.ALLSRC}
|
|
|
|
dtparser.y.h: dtparserparse.h
|
|
ln -f ${.ALLSRC} ${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|