xref: /freebsd/usr.sbin/acpi/iasl/Makefile (revision 884a2a699669ec61e2366e3e358342dbc94be24a)
1# $FreeBSD$
2
3PROG=	iasl
4SRCS=	adfile.c adisasm.c adwalk.c
5SRCS+=	osunixxf.c
6
7# common
8SRCS+=	dmextern.c dmrestag.c dmtable.c dmtbdump.c dmtbinfo.c	\
9	getopt.c
10
11# compiler
12SRCS+=	aslanalyze.c aslbtypes.c aslcodegen.c aslcompile.c	\
13	aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c	\
14	aslerror.c aslfiles.c aslfold.c asllength.c		\
15	asllisting.c aslload.c asllookup.c aslmain.c aslmap.c	\
16	aslopcodes.c asloperands.c aslopt.c aslpredef.c		\
17	aslresource.c aslrestype1.c aslrestype1i.c		\
18	aslrestype2.c aslrestype2d.c aslrestype2e.c		\
19	aslrestype2q.c aslrestype2w.c aslstartup.c aslstubs.c	\
20	asltransform.c asltree.c aslutils.c asluuid.c		\
21	aslwalks.c dtcompile.c dtexpress.c dtfield.c dtio.c	\
22	dtparser.y.h dtparserlex.c dtparserparse.c dtsubtable.c	\
23	dttable.c dttemplate.c 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 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# tables
52SRCS+=	tbfadt.c tbinstal.c tbutils.c tbxface.c
53
54# utilities
55SRCS+=	utalloc.c utcache.c utcopy.c utdebug.c utdecode.c	\
56	utdelete.c utglobal.c utinit.c utlock.c utmath.c	\
57	utmisc.c utmutex.c utobject.c utosi.c utresrc.c		\
58	utstate.c utxface.c utxferror.c
59
60WARNS?=	2
61
62MAN=	iasl.8
63
64CFLAGS+= -DACPI_ASL_COMPILER -I.
65LFLAGS= -i -s
66YFLAGS= -d
67DPADD=	${LIBPTHREAD}
68LDADD=	-lpthread
69
70CLEANFILES= aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c	\
71	aslcompilerparse.h dtparser.y.h dtparserlex.c		\
72	dtparserparse.c dtparserparse.h
73
74aslcompilerlex.c: aslcompiler.l
75	${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} ${.ALLSRC}
76
77aslcompilerparse.c: aslcompiler.y
78	${YACC} ${YFLAGS} -pAslCompiler -o${.TARGET} ${.ALLSRC}
79
80aslcompiler.y.h: aslcompilerparse.c
81	mv -f aslcompilerparse.h ${.TARGET}
82
83dtparserlex.c: dtparser.l
84	${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC}
85
86dtparserparse.c: dtparser.y
87	${YACC} ${YFLAGS} -pDtParser -o${.TARGET} ${.ALLSRC}
88
89dtparser.y.h: dtparserparse.c
90	mv -f dtparserparse.h ${.TARGET}
91
92.include <bsd.prog.mk>
93