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