summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi/iasl/Makefile
blob: 32942a105f09b539bc9e037c4b81fabe83000d32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# $FreeBSD$

PROG=	iasl
SRCS=	adfile.c adisasm.c adwalk.c

# common
SRCS+=	dmextern.c dmrestag.c dmtable.c dmtbdump.c dmtbinfo.c	\
	getopt.c

# compiler
SRCS+=	aslanalyze.c aslbtypes.c aslcodegen.c aslcompile.c	\
	aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c	\
	aslerror.c aslfiles.c aslfold.c asllength.c		\
	asllisting.c aslload.c asllookup.c aslmain.c aslmap.c	\
	aslopcodes.c asloperands.c aslopt.c aslpredef.c		\
	aslresource.c aslrestype1.c aslrestype1i.c		\
	aslrestype2.c aslrestype2d.c aslrestype2e.c		\
	aslrestype2q.c aslrestype2s.c aslrestype2w.c		\
	aslstartup.c aslstubs.c	asltransform.c asltree.c	\
	aslutils.c asluuid.c aslwalks.c dtcompile.c dtexpress.c	\
	dtfield.c dtio.c dtparser.y.h dtparserlex.c		\
	dtparserparse.c dtsubtable.c dttable.c dttemplate.c	\
	dtutils.c

# debugger
SRCS+=	dbfileio.c

# disassembler
SRCS+=	dmbuffer.c dmnames.c dmopcode.c dmresrc.c dmresrcl.c	\
	dmresrcl2.c dmresrcs.c dmutils.c dmwalk.c

# interpreter/dispatcher
SRCS+=	dsargs.c dscontrol.c dsfield.c dsobject.c dsopcode.c	\
	dsutils.c dswexec.c dswload.c dswload2.c dswscope.c	\
	dswstate.c

# interpreter/executer
SRCS+=	exconvrt.c excreate.c exdump.c exmisc.c exmutex.c	\
	exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c	\
	exprep.c exresnte.c exresolv.c exresop.c exstore.c	\
	exstoren.c exstorob.c exsystem.c exutils.c

# interpreter/parser
SRCS+=	psargs.c psloop.c psopcode.c psparse.c psscope.c	\
	pstree.c psutils.c pswalk.c

# namespace
SRCS+=	nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c	\
	nsparse.c nssearch.c nsutils.c nswalk.c

# os_specific/service_layers
SRCS+=	osunixxf.c

# tables
SRCS+=	tbfadt.c tbinstal.c tbutils.c tbxface.c

# utilities
SRCS+=	utaddress.c utalloc.c utcache.c utcopy.c utdebug.c	\
	utdecode.c utdelete.c utglobal.c utinit.c utlock.c	\
	utmath.c utmisc.c utmutex.c utobject.c utresrc.c	\
	utstate.c utxface.c utxferror.c

WARNS?=	2

MAN=	iasl.8

CFLAGS+= -DACPI_ASL_COMPILER -I.
LFLAGS= -i -s
YFLAGS= -d

CLEANFILES= aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c	\
	aslcompilerparse.h dtparser.y.h dtparserlex.c		\
	dtparserparse.c dtparserparse.h

aslcompilerlex.c: aslcompiler.l
	${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} ${.ALLSRC}

aslcompilerparse.c: aslcompiler.y
	${YACC} ${YFLAGS} -pAslCompiler -o${.TARGET} ${.ALLSRC}

aslcompiler.y.h: aslcompilerparse.c
	mv -f aslcompilerparse.h ${.TARGET}

dtparserlex.c: dtparser.l
	${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC}

dtparserparse.c: dtparser.y
	${YACC} ${YFLAGS} -pDtParser -o${.TARGET} ${.ALLSRC}

dtparser.y.h: dtparserparse.c
	mv -f dtparserparse.h ${.TARGET}

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud