summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi/iasl/Makefile
blob: 7ba08ffd5b94c6dba54c311d39a459d1c9066f97 (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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# $FreeBSD$

PROG=	iasl

# common
SRCS=	acfileio.c adfile.c adisasm.c adwalk.c ahids.c		\
	ahpredef.c ahtable.c ahuuids.c cmfsize.c dmextern.c	\
	dmrestag.c dmtable.c dmtables.c dmtbdump.c dmtbinfo.c	\
	getopt.c

# compiler
SRCS+=	aslanalyze.c aslascii.c aslbtypes.c aslcodegen.c	\
	aslcompile.c aslcompiler.y.h aslcompilerlex.c		\
	aslcompilerparse.c asldebug.c aslerror.c aslexternal.c	\
	aslfileio.c aslfiles.c aslfold.c aslhex.c asllength.c	\
	asllisting.c asllistsup.c aslload.c asllookup.c		\
	aslmain.c aslmap.c aslmapenter.c aslmapoutput.c		\
	aslmaputils.c aslmessages.c aslmethod.c aslnamesp.c	\
	asloffset.c aslopcodes.c asloperands.c aslopt.c		\
	asloptions.c aslpld.c aslpredef.c aslprepkg.c		\
	aslprintf.c aslprune.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 aslxref.c	\
	aslxrefout.c dtcompile.c dtexpress.c dtfield.c dtio.c	\
	dtparser.y.h dtparserlex.c dtparserparse.c dtsubtable.c	\
	dttable.c dttable1.c dttable2.c dttemplate.c dtutils.c	\
	prexpress.c prmacros.c prparser.y.h prparserlex.c	\
	prparserparse.c prscan.c prutils.c

# components/debugger
SRCS+=	dbfileio.c

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

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

# components/executer
SRCS+=	exconcat.c 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

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

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

# components/tables
SRCS+=	tbdata.c tbfadt.c tbinstal.c tbprint.c tbutils.c	\
	tbxface.c tbxfload.c

# components/utilities
SRCS+=	utaddress.c utalloc.c utascii.c utbuffer.c utcache.c	\
	utcopy.c utdebug.c utdecode.c utdelete.c uterror.c	\
	utexcep.c utglobal.c uthex.c utinit.c utlock.c utmath.c	\
	utmisc.c utmutex.c utnonansi.c utobject.c utownerid.c	\
	utpredef.c utprint.c utresrc.c utstate.c utstring.c	\
	utuuid.c utxface.c utxferror.c

# os_specific/service_layers
SRCS+=	oslibcfs.c osunixxf.c

WARNS?=	2

MAN=	iasl.8

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

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

PARSER=	aslcstyle.y aslparser.y aslresources.y aslrules.y	\
	aslsupport.y asltokens.y asltypes.y

aslcompilerlex.c: aslcompiler.l aslsupport.l
	${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} \
	    ${ACPICA_DIR}/compiler/aslcompiler.l

aslcompiler.y: ${PARSER}
	m4 -P -I${ACPICA_DIR}/compiler \
	    ${ACPICA_DIR}/compiler/aslparser.y > ${.TARGET}

.ORDER: aslcompilerparse.c aslcompilerparse.h
aslcompilerparse.c aslcompilerparse.h: aslcompiler.y
	${YACC} ${YFLAGS} -pAslCompiler -oaslcompilerparse.c ${.ALLSRC}

aslcompiler.y.h: aslcompilerparse.h .NOMETA
	ln -f ${.ALLSRC} ${.TARGET}

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

.ORDER: dtparserparse.c dtparserparse.h
dtparserparse.c dtparserparse.h: dtparser.y
	${YACC} ${YFLAGS} -pDtParser -odtparserparse.c ${.ALLSRC}

dtparser.y.h: dtparserparse.h .NOMETA
	ln -f ${.ALLSRC} ${.TARGET}

prparserlex.c: prparser.l
	${LEX} ${LFLAGS} -PPrParser -o${.TARGET} ${.ALLSRC}

.ORDER: prparserparse.c prparserparse.h
prparserparse.c prparserparse.h: prparser.y
	${YACC} ${YFLAGS} -pPrParser -oprparserparse.c ${.ALLSRC}

prparser.y.h: prparserparse.h .NOMETA
	ln -f ${.ALLSRC} ${.TARGET}

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