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