Home | History | Annotate | Line # | Download | only in iasl
Makefile revision 1.1
      1 # $NetBSD: Makefile,v 1.1 2011/02/17 07:48:16 jruoho 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_LINUX -DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT
     15 CPPFLAGS+=	-D_USE_BERKELEY_YACC
     16 LDADD+=		-ll -ly -lrt -lpthread
     17 DPADD+=		${LIBL} ${LIBY} ${LIBRT} ${LIBPTHREAD}
     18 
     19 DPSRCS=	aslcompilerparse.c
     20 DPSRCS+=aslcompilerlex.c
     21 
     22 .PATH:	${TOPDIR}
     23 SRCS=	aslcompilerparse.c
     24 SRCS+=	aslcompilerlex.c
     25 SRCS+=	aslanalyze.c
     26 SRCS+=	aslcodegen.c
     27 SRCS+=	aslcompile.c
     28 SRCS+=	aslerror.c
     29 SRCS+=	aslfiles.c
     30 SRCS+=	asllength.c
     31 SRCS+=	asllisting.c
     32 SRCS+=	aslload.c
     33 SRCS+=	asllookup.c
     34 SRCS+=	aslmain.c
     35 SRCS+=	aslmap.c
     36 SRCS+=	aslopcodes.c
     37 SRCS+=	asloperands.c
     38 SRCS+=	aslpredef.c
     39 SRCS+=	aslresource.c
     40 SRCS+=	aslrestype1.c
     41 SRCS+=	aslrestype1i.c
     42 SRCS+=	aslrestype2.c
     43 SRCS+=	aslrestype2d.c
     44 SRCS+=	aslrestype2e.c
     45 SRCS+=	aslrestype2q.c
     46 SRCS+=	aslrestype2w.c
     47 SRCS+=	aslstartup.c
     48 SRCS+=	asltree.c
     49 SRCS+=	aslutils.c
     50 SRCS+=	asltransform.c
     51 SRCS+=	aslfold.c
     52 SRCS+=	aslstubs.c
     53 SRCS+=	aslopt.c
     54 SRCS+=	dtcompile.c
     55 SRCS+=	dtfield.c
     56 SRCS+=	dtio.c
     57 SRCS+=	dtsubtable.c
     58 SRCS+=	dttable.c
     59 SRCS+=	dtutils.c
     60 .PATH: ${TOPDIR}/../common
     61 SRCS+=	getopt.c
     62 .PATH: ${TOPDIR}/../utilities
     63 SRCS+=	utalloc.c
     64 SRCS+=	utcache.c
     65 SRCS+=	utcopy.c
     66 SRCS+=	utdebug.c
     67 SRCS+=	utdelete.c
     68 SRCS+=	utglobal.c
     69 SRCS+=	utinit.c
     70 SRCS+=	utlock.c
     71 SRCS+=	utobject.c
     72 SRCS+=	utmisc.c
     73 SRCS+=	utmath.c
     74 SRCS+=	utmutex.c
     75 SRCS+=	utresrc.c
     76 SRCS+=	utstate.c
     77 SRCS+=	utxface.c
     78 .PATH: ${TOPDIR}/../namespace
     79 SRCS+=	nsaccess.c
     80 SRCS+=	nsalloc.c
     81 SRCS+=	nsdump.c
     82 SRCS+=	nsnames.c
     83 SRCS+=	nsobject.c
     84 SRCS+=	nsparse.c
     85 SRCS+=	nssearch.c
     86 SRCS+=	nsutils.c
     87 SRCS+=	nswalk.c
     88 SRCS+=	nsxfobj.c
     89 .PATH: ${TOPDIR}/../parser
     90 SRCS+=	psargs.c
     91 SRCS+=	psloop.c
     92 SRCS+=	psopcode.c
     93 SRCS+=	psparse.c
     94 SRCS+=	psscope.c
     95 SRCS+=	pstree.c
     96 SRCS+=	psutils.c
     97 SRCS+=	pswalk.c
     98 .PATH: ${TOPDIR}/../dispatcher
     99 SRCS+=	dmextern.c
    100 SRCS+=	dswscope.c
    101 SRCS+=	dswstate.c
    102 SRCS+=	dsfield.c
    103 SRCS+=	dsobject.c
    104 SRCS+=	dsopcode.c
    105 SRCS+=	dsutils.c
    106 SRCS+=	dswexec.c
    107 SRCS+=	dswload.c
    108 .PATH: ${TOPDIR}/../executer
    109 SRCS+=	exconvrt.c
    110 SRCS+=	excreate.c
    111 SRCS+=	exdump.c
    112 SRCS+=	exmisc.c
    113 SRCS+=	exmutex.c
    114 SRCS+=	exnames.c
    115 SRCS+=	exoparg1.c
    116 SRCS+=	exoparg2.c
    117 SRCS+=	exoparg3.c
    118 SRCS+=	exoparg6.c
    119 SRCS+=	exprep.c
    120 SRCS+=	exregion.c
    121 SRCS+=	exresnte.c
    122 SRCS+=	exresolv.c
    123 SRCS+=	exresop.c
    124 SRCS+=	exstore.c
    125 SRCS+=	exstoren.c
    126 SRCS+=	exstorob.c
    127 SRCS+=	exsystem.c
    128 SRCS+=	exutils.c
    129 .PATH: ${TOPDIR}/../common
    130 SRCS+=	adfile.c
    131 SRCS+=	adisasm.c
    132 SRCS+=	adwalk.c
    133 SRCS+=	dmrestag.c
    134 SRCS+=	dmtable.c
    135 SRCS+=	dmtbinfo.c
    136 SRCS+=	dmtbdump.c
    137 .PATH: ${TOPDIR}/../debugger
    138 SRCS+=	dbfileio.c
    139 .PATH: ${TOPDIR}/../disassembler
    140 SRCS+=	dmbuffer.c
    141 SRCS+=	dmnames.c
    142 SRCS+=	dmopcode.c
    143 SRCS+=	dmobject.c
    144 SRCS+=	dmresrc.c
    145 SRCS+=	dmresrcl.c
    146 SRCS+=	dmresrcs.c
    147 SRCS+=	dmutils.c
    148 SRCS+=	dmwalk.c
    149 .PATH: ${TOPDIR}/../tables
    150 SRCS+=	tbfadt.c
    151 SRCS+=	tbinstal.c
    152 SRCS+=	tbutils.c
    153 SRCS+=	tbxface.c
    154 .PATH: ${TOPDIR}/..
    155 SRCS+=	osunixxf.c
    156 
    157 aslcompilerparse.c: ${TOPDIR}/aslcompiler.y
    158 	${YACC} -v -d -o${.TARGET} -pAslCompiler ${.ALLSRC}
    159 	mv -f ${.PREFIX}.h aslcompiler.y.h
    160 
    161 aslcompilerlex.c: ${TOPDIR}/aslcompiler.l
    162 	${LEX} -i -PAslCompiler -o${.TARGET} ${.ALLSRC}
    163 
    164 CLEANFILES+=	aslcompilerlex.c aslcompilerparse.c aslcompiler.y.h aslcompilerparse.output
    165 
    166 .include <bsd.prog.mk>
    167