xref: /freebsd/usr.sbin/acpi/iasl/Makefile (revision bb15ca603fa442c72dde3f3cb8b46db6970e3950)
1# $FreeBSD$
2
3PROG=	iasl
4SRCS=	adfile.c adisasm.c adwalk.c
5
6# common
7SRCS+=	dmextern.c dmrestag.c dmtable.c dmtbdump.c dmtbinfo.c	\
8	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 aslfiles.c aslfold.c asllength.c		\
14	asllisting.c aslload.c asllookup.c aslmain.c aslmap.c	\
15	aslopcodes.c asloperands.c aslopt.c aslpredef.c		\
16	aslresource.c aslrestype1.c aslrestype1i.c		\
17	aslrestype2.c aslrestype2d.c aslrestype2e.c		\
18	aslrestype2q.c aslrestype2s.c aslrestype2w.c		\
19	aslstartup.c aslstubs.c	asltransform.c asltree.c	\
20	aslutils.c asluuid.c aslwalks.c dtcompile.c dtexpress.c	\
21	dtfield.c dtio.c dtparser.y.h dtparserlex.c		\
22	dtparserparse.c dtsubtable.c dttable.c dttemplate.c	\
23	dtutils.c
24
25# debugger
26SRCS+=	dbfileio.c
27
28# disassembler
29SRCS+=	dmbuffer.c dmnames.c dmobject.c dmopcode.c dmresrc.c	\
30	dmresrcl.c dmresrcl2.c dmresrcs.c dmutils.c dmwalk.c
31
32# interpreter/dispatcher
33SRCS+=	dsargs.c dscontrol.c dsfield.c dsobject.c dsopcode.c	\
34	dsutils.c dswexec.c dswload.c dswload2.c dswscope.c	\
35	dswstate.c
36
37# interpreter/executer
38SRCS+=	exconvrt.c excreate.c exdump.c exmisc.c exmutex.c	\
39	exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c	\
40	exprep.c exregion.c exresnte.c exresolv.c exresop.c	\
41	exstore.c exstoren.c exstorob.c exsystem.c exutils.c
42
43# interpreter/parser
44SRCS+=	psargs.c psloop.c psopcode.c psparse.c psscope.c	\
45	pstree.c psutils.c pswalk.c
46
47# namespace
48SRCS+=	nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c	\
49	nsparse.c nssearch.c nsutils.c nswalk.c nsxfobj.c
50
51# os_specific/service_layers
52SRCS+=	osunixxf.c
53
54# tables
55SRCS+=	tbfadt.c tbinstal.c tbutils.c tbxface.c
56
57# utilities
58SRCS+=	utalloc.c utcache.c utcopy.c utdebug.c utdecode.c	\
59	utdelete.c utglobal.c utinit.c utlock.c utmath.c	\
60	utmisc.c utmutex.c utobject.c utosi.c utresrc.c		\
61	utstate.c utxface.c utxferror.c
62
63WARNS?=	2
64
65MAN=	iasl.8
66
67CFLAGS+= -DACPI_ASL_COMPILER -I.
68LFLAGS= -i -s
69YFLAGS= -d
70
71CLEANFILES= aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c	\
72	aslcompilerparse.h dtparser.y.h dtparserlex.c		\
73	dtparserparse.c dtparserparse.h
74
75aslcompilerlex.c: aslcompiler.l
76	${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} ${.ALLSRC}
77
78aslcompilerparse.c: aslcompiler.y
79	${YACC} ${YFLAGS} -pAslCompiler -o${.TARGET} ${.ALLSRC}
80
81aslcompiler.y.h: aslcompilerparse.c
82	mv -f aslcompilerparse.h ${.TARGET}
83
84dtparserlex.c: dtparser.l
85	${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC}
86
87dtparserparse.c: dtparser.y
88	${YACC} ${YFLAGS} -pDtParser -o${.TARGET} ${.ALLSRC}
89
90dtparser.y.h: dtparserparse.c
91	mv -f dtparserparse.h ${.TARGET}
92
93.include <bsd.prog.mk>
94