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