xref: /freebsd/usr.sbin/acpi/iasl/Makefile (revision 7bd6fde3)
1# $FreeBSD$
2
3PROG=	iasl
4SRCS=	adisasm.c
5SRCS+=	osunixxf.c
6
7# common
8SRCS+=	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 aslstubs.c asltransform.c asltree.c	\
17	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+=	tbinstal.c tbutils.c
46
47# utilities
48SRCS+=	utalloc.c utcache.c utcopy.c utdebug.c utdelete.c	\
49	utglobal.c utmath.c utmisc.c utmutex.c utobject.c	\
50	utstate.c
51
52MAN=	iasl.8
53
54CFLAGS+= -DACPI_ASL_COMPILER -I.
55CFLAGS+= -D_USE_BERKELEY_YACC
56LFLAGS= -i -PAslCompiler
57YFLAGS= -d -pAslCompiler
58
59CLEANFILES= aslcompiler.y.h aslcompilerlex.l aslcompilerparse.y
60
61aslcompiler.y.h: aslcompilerparse.h
62	cat ${.ALLSRC} > ${.TARGET}
63
64aslcompilerlex.l: aslcompiler.l
65	cat ${.ALLSRC} > ${.TARGET}
66
67aslcompilerparse.y: aslcompiler.y
68	cat ${.ALLSRC} > ${.TARGET}
69
70.include <bsd.prog.mk>
71