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