abaacc031f395984fa58c7a9030d3217ac9dba62
[dragonfly.git] / usr.sbin / acpi / iasl / Makefile
1 #
2 # iASL compiler/disassembler
3 #
4
5 UTILDIR=${.CURDIR}/../../../sys/contrib/dev/acpica/source/compiler
6
7 .PATH:  ${UTILDIR}
8
9 PROG=   iasl
10 MAN=    iasl.8
11
12 SRCS=   \
13         aslcompiler.y.h \
14         aslcompilerlex.c \
15         aslcompilerparse.c \
16         aslmessages.c \
17         dtparser.y.h \
18         dtparserlex.c \
19         dtparserparse.c \
20         prparser.y.h \
21         prparserlex.c \
22         prparserparse.c \
23         acfileio.c \
24         adfile.c \
25         adisasm.c \
26         adwalk.c \
27         ahids.c \
28         ahpredef.c \
29         ahtable.c \
30         ahuuids.c \
31         aslanalyze.c \
32         aslascii.c \
33         aslbtypes.c \
34         aslcodegen.c \
35         aslcompile.c \
36         aslerror.c \
37         aslfiles.c \
38         aslfileio.c \
39         aslfold.c \
40         aslhex.c \
41         asllength.c \
42         asllisting.c \
43         asllistsup.c \
44         aslload.c \
45         asllookup.c \
46         aslmain.c \
47         aslmap.c \
48         aslmapenter.c \
49         aslmapoutput.c \
50         aslmaputils.c \
51         aslmethod.c \
52         aslnamesp.c \
53         asloffset.c \
54         aslopcodes.c \
55         asloperands.c \
56         aslopt.c \
57         asloptions.c \
58         aslpredef.c \
59         aslprepkg.c \
60         aslprintf.c \
61         aslprune.c \
62         aslresource.c \
63         aslrestype1.c \
64         aslrestype1i.c \
65         aslrestype2.c \
66         aslrestype2d.c \
67         aslrestype2e.c \
68         aslrestype2q.c \
69         aslrestype2s.c \
70         aslrestype2w.c \
71         aslstartup.c \
72         aslstubs.c \
73         asltransform.c \
74         asltree.c \
75         aslutils.c \
76         asluuid.c \
77         aslwalks.c \
78         aslxref.c \
79         cmfsize.c \
80         dbfileio.c \
81         dmbuffer.c \
82         dmcstyle.c \
83         dmdeferred.c \
84         dmextern.c \
85         dmnames.c \
86         dmopcode.c \
87         dmresrc.c \
88         dmresrcl.c \
89         dmresrcl2.c \
90         dmresrcs.c \
91         dmrestag.c \
92         dmtable.c \
93         dmtables.c \
94         dmtbdump.c \
95         dmtbinfo.c \
96         dmutils.c \
97         dmwalk.c \
98         dsargs.c \
99         dscontrol.c \
100         dsfield.c \
101         dsobject.c \
102         dsopcode.c \
103         dsutils.c \
104         dswexec.c \
105         dswload.c \
106         dswload2.c \
107         dswscope.c \
108         dswstate.c \
109         dtcompile.c \
110         dtexpress.c \
111         dtfield.c \
112         dtio.c \
113         dtsubtable.c \
114         dttable.c \
115         dttable1.c \
116         dttable2.c \
117         dttemplate.c \
118         dtutils.c \
119         exconvrt.c \
120         excreate.c \
121         exdump.c \
122         exmisc.c \
123         exmutex.c \
124         exnames.c \
125         exoparg1.c \
126         exoparg2.c \
127         exoparg3.c \
128         exoparg6.c \
129         exprep.c \
130         exregion.c \
131         exresnte.c \
132         exresolv.c \
133         exresop.c \
134         exstore.c \
135         exstoren.c \
136         exstorob.c \
137         exsystem.c \
138         exutils.c \
139         getopt.c \
140         nsaccess.c \
141         nsalloc.c \
142         nsdump.c \
143         nsnames.c \
144         nsobject.c \
145         nsparse.c \
146         nssearch.c \
147         nsutils.c \
148         nswalk.c \
149         nsxfobj.c \
150         osunixxf.c \
151         oslibcfs.c \
152         prexpress.c \
153         prmacros.c \
154         prscan.c \
155         prutils.c \
156         psargs.c \
157         psloop.c \
158         psobject.c \
159         psopcode.c \
160         psopinfo.c \
161         psparse.c \
162         psscope.c \
163         pstree.c \
164         psutils.c \
165         pswalk.c \
166         tbdata.c \
167         tbfadt.c \
168         tbinstal.c \
169         tbprint.c \
170         tbutils.c \
171         tbxface.c \
172         tbxfload.c \
173         utaddress.c \
174         utalloc.c \
175         utbuffer.c \
176         utcache.c \
177         utcopy.c \
178         utdebug.c \
179         utdecode.c \
180         utdelete.c \
181         uterror.c \
182         utexcep.c \
183         utglobal.c \
184         uthex.c \
185         utinit.c \
186         utlock.c \
187         utmath.c \
188         utmisc.c \
189         utmutex.c \
190         utnonansi.c \
191         utobject.c \
192         utownerid.c \
193         utpredef.c \
194         utprint.c \
195         utresrc.c \
196         utstate.c \
197         utstring.c \
198         utuuid.c \
199         utxface.c \
200         utxferror.c
201
202 CFLAGS+= \
203         -DACPI_ASL_COMPILER \
204         -I${UTILDIR} \
205         -I${.CURDIR}
206
207 LFLAGS= -i -s
208 YFLAGS= -d
209
210 ASLPARSER_M4INC = \
211         aslcstyle.y \
212         aslresources.y \
213         aslrules.y \
214         aslsupport.y \
215         asltokens.y \
216         asltypes.y
217
218 aslcompiler.y: aslparser.y ${ASLPARSER_M4INC}
219         m4 -P -I${UTILDIR} aslparser.y >${.TARGET}
220
221 aslcompilerlex.c: aslcompiler.l
222         ${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} ${.ALLSRC}
223
224 aslcompilerparse.c: aslcompiler.y
225         ${YACC} ${YFLAGS} -pAslCompiler -o${.TARGET} ${.ALLSRC}
226
227 aslcompiler.y.h: aslcompilerparse.c
228         mv -f aslcompilerparse.h ${.TARGET}
229
230 dtparserlex.c: dtparser.l
231         ${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC}
232
233 dtparserparse.c: dtparser.y
234         ${YACC} ${YFLAGS} -pDtParser -o${.TARGET} ${.ALLSRC}
235
236 dtparser.y.h: dtparserparse.c
237         mv -f dtparserparse.h ${.TARGET}
238
239 prparserlex.c: prparser.l
240         ${LEX} ${LFLAGS} -PPrParser -o${.TARGET} ${.ALLSRC}
241
242 prparserparse.c: prparser.y
243         ${YACC} ${YFLAGS} -pPrParser -o${.TARGET} ${.ALLSRC}
244
245 prparser.y.h: prparserparse.c
246         mv -f prparserparse.h ${.TARGET}
247
248 CLEANFILES+=    \
249                 aslcompiler.y \
250                 aslcompilerlex.c \
251                 aslcompilerparse.c \
252                 aslcompilerparse.h \
253                 aslcompiler.y.h \
254                 dtparserlex.c \
255                 dtparserparse.c \
256                 dtparserparse.h \
257                 dtparser.y.h \
258                 prparserlex.c \
259                 prparserparse.c \
260                 prparserparse.h \
261                 prparser.y.h
262
263 .include <bsd.prog.mk>