xref: /freebsd/usr.sbin/acpi/iasl/Makefile (revision 3157ba21)
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 aslcodegen.c aslcompile.c aslcompiler.y.h	\
13	aslcompilerlex.l aslcompilerparse.y aslerror.c		\
14	aslfiles.c aslfold.c asllength.c asllisting.c		\
15	aslload.c asllookup.c aslmain.c aslmap.c aslopcodes.c	\
16	asloperands.c aslopt.c aslpredef.c aslresource.c	\
17	aslrestype1.c aslrestype1i.c aslrestype2.c		\
18	aslrestype2d.c aslrestype2e.c aslrestype2q.c		\
19	aslrestype2w.c aslstartup.c aslstubs.c asltransform.c	\
20	asltree.c aslutils.c
21
22# debugger
23SRCS+=	dbfileio.c
24
25# disassembler
26SRCS+=	dmbuffer.c dmnames.c dmobject.c dmopcode.c dmresrc.c	\
27	dmresrcl.c dmresrcs.c dmutils.c dmwalk.c
28
29# interpreter/dispatcher
30SRCS+=	dsfield.c dsobject.c dsopcode.c dsutils.c dswexec.c	\
31	dswload.c dswscope.c dswstate.c
32
33# interpreter/executer
34SRCS+=	exconvrt.c excreate.c exdump.c exmisc.c exmutex.c	\
35	exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c	\
36	exprep.c exregion.c exresnte.c exresolv.c exresop.c	\
37	exstore.c exstoren.c exstorob.c exsystem.c exutils.c
38
39# interpreter/parser
40SRCS+=	psargs.c psloop.c psopcode.c psparse.c psscope.c	\
41	pstree.c psutils.c pswalk.c
42
43# namespace
44SRCS+=	nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c	\
45	nsparse.c nssearch.c nsutils.c nswalk.c nsxfobj.c
46
47# tables
48SRCS+=	tbfadt.c tbinstal.c tbutils.c tbxface.c
49
50# utilities
51SRCS+=	utalloc.c utcache.c utcopy.c utdebug.c utdelete.c	\
52	utglobal.c utinit.c utlock.c utmath.c utmisc.c		\
53	utmutex.c utobject.c utresrc.c utstate.c utxface.c
54
55WARNS?=	2
56
57MAN=	iasl.8
58
59CFLAGS+= -DACPI_ASL_COMPILER -I.
60CFLAGS+= -D_USE_BERKELEY_YACC
61LFLAGS= -i -PAslCompiler
62YFLAGS= -d -pAslCompiler
63DPADD=	${LIBPTHREAD}
64LDADD=	-lpthread
65
66CLEANFILES= aslcompiler.y.h aslcompilerlex.l aslcompilerparse.y
67
68aslcompiler.y.h: aslcompilerparse.h
69	cat ${.ALLSRC} > ${.TARGET}
70
71aslcompilerlex.l: aslcompiler.l
72	cat ${.ALLSRC} > ${.TARGET}
73
74aslcompilerparse.y: aslcompiler.y
75	cat ${.ALLSRC} > ${.TARGET}
76
77.include <bsd.prog.mk>
78