external/bsd/acpica/bin/iasl/Makefile
author jruoho <jruoho@NetBSD.org>
Thu, 17 Feb 2011 18:26:20 +0000
branchtrunk
changeset 198002 079fe1ae00db
parent 197959 435f6ff137c8
child 198062 796a77c797da
permissions -rw-r--r--
Fix iasl(8).

# $NetBSD: Makefile,v 1.2 2011/02/17 18:26:20 jruoho Exp $

.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
PROG=	iasl
.endif
BINDIR=	/usr/bin
MAN=	iasl.8
WARNS=	0
TOPDIR=	${NETBSDSRCDIR}/sys/external/bsd/acpica/dist/compiler

.include <bsd.own.mk>

CPPFLAGS+=	-I${TOPDIR}/../include -I${TOPDIR} -I.
CPPFLAGS+=	-D_LINUX -DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT
CPPFLAGS+=	-D_USE_BERKELEY_YACC
LDADD+=		-ll -ly -lrt -lpthread
DPADD+=		${LIBL} ${LIBY} ${LIBRT} ${LIBPTHREAD}

DPSRCS= aslcompilerparse.c
DPSRCS+=aslcompilerlex.c

.PATH:	${TOPDIR}
SRCS+=  aslcompilerparse.c aslcompilerlex.c adfile.c \
	aslanalyze.c aslbtypes.c aslcodegen.c aslcompile.c      \
	aslerror.c aslfiles.c aslfold.c asllength.c             \
	asllisting.c aslload.c asllookup.c aslmain.c aslmap.c   \
	aslopcodes.c asloperands.c aslopt.c aslpredef.c         \
	aslresource.c aslrestype1.c aslrestype1i.c              \
	aslrestype2.c aslrestype2d.c aslrestype2e.c             \
	aslrestype2q.c aslrestype2w.c aslstartup.c aslstubs.c   \
	asltransform.c asltree.c aslutils.c asluuid.c           \
	aslwalks.c dtcompile.c dtexpress.c dtfield.c dtio.c     \
	dtsubtable.c dttable.c dttemplate.c dtutils.c

.PATH: ${TOPDIR}/../common
SRCS+=  adisasm.c adwalk.c dmextern.c dmrestag.c dmtable.c \
	dmtbdump.c dmtbinfo.c getopt.c

.PATH: ${TOPDIR}/../debugger
SRCS+=  dbfileio.c

.PATH: ${TOPDIR}/../disassembler
SRCS+=  dmbuffer.c dmnames.c dmobject.c dmopcode.c dmresrc.c    \
	dmresrcl.c dmresrcs.c dmutils.c dmwalk.c

.PATH: ${TOPDIR}/../dispatcher
SRCS+=  dsargs.c dscontrol.c dsfield.c dsobject.c dsopcode.c    \
	dsutils.c dswexec.c dswload.c dswload2.c dswscope.c     \
	dswstate.c

.PATH: ${TOPDIR}/../executer
SRCS+=  exconvrt.c excreate.c exdump.c exmisc.c exmutex.c       \
	exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c   \
	exprep.c exregion.c exresnte.c exresolv.c exresop.c     \
	exstore.c exstoren.c exstorob.c exsystem.c exutils.c

.PATH: ${TOPDIR}/../parser
SRCS+=  psargs.c psloop.c psopcode.c psparse.c psscope.c        \
	pstree.c psutils.c pswalk.c

.PATH: ${TOPDIR}/../tables
SRCS+=	tbfadt.c tbinstal.c tbutils.c tbxface.c

.PATH: ${TOPDIR}/../namespace
SRCS+=  nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c      \
	nsparse.c nssearch.c nsutils.c nswalk.c nsxfobj.c

.PATH: ${TOPDIR}/../utilities
SRCS+=  utalloc.c utcache.c utcopy.c utdebug.c utdecode.c       \
	utdelete.c utglobal.c utinit.c utlock.c utmath.c        \
	utmisc.c utmutex.c utobject.c utosi.c utresrc.c         \
	utstate.c utxface.c utxferror.c

.PATH: ${TOPDIR}/..
SRCS+=	osunixxf.c

aslcompilerparse.c: ${TOPDIR}/aslcompiler.y
	${YACC} -v -d -o${.TARGET} -pAslCompiler ${.ALLSRC}
	mv -f ${.PREFIX}.h aslcompiler.y.h

aslcompilerlex.c: ${TOPDIR}/aslcompiler.l
	${LEX} -i -PAslCompiler -o${.TARGET} ${.ALLSRC}

CLEANFILES+=	aslcompilerlex.c aslcompilerparse.c \
		aslcompiler.y.h aslcompilerparse.output

.include <bsd.prog.mk>