Home | History | Annotate | Line # | Download | only in iasl
Makefile revision 1.2
      1 # $NetBSD: Makefile,v 1.2 2011/02/17 18:26:20 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 aslcompilerlex.c adfile.c \
     24 	aslanalyze.c aslbtypes.c aslcodegen.c aslcompile.c      \
     25 	aslerror.c aslfiles.c aslfold.c asllength.c             \
     26 	asllisting.c aslload.c asllookup.c aslmain.c aslmap.c   \
     27 	aslopcodes.c asloperands.c aslopt.c aslpredef.c         \
     28 	aslresource.c aslrestype1.c aslrestype1i.c              \
     29 	aslrestype2.c aslrestype2d.c aslrestype2e.c             \
     30 	aslrestype2q.c aslrestype2w.c aslstartup.c aslstubs.c   \
     31 	asltransform.c asltree.c aslutils.c asluuid.c           \
     32 	aslwalks.c dtcompile.c dtexpress.c dtfield.c dtio.c     \
     33 	dtsubtable.c dttable.c dttemplate.c dtutils.c
     34 
     35 .PATH: ${TOPDIR}/../common
     36 SRCS+=  adisasm.c adwalk.c dmextern.c dmrestag.c dmtable.c \
     37 	dmtbdump.c dmtbinfo.c getopt.c
     38 
     39 .PATH: ${TOPDIR}/../debugger
     40 SRCS+=  dbfileio.c
     41 
     42 .PATH: ${TOPDIR}/../disassembler
     43 SRCS+=  dmbuffer.c dmnames.c dmobject.c dmopcode.c dmresrc.c    \
     44 	dmresrcl.c dmresrcs.c dmutils.c dmwalk.c
     45 
     46 .PATH: ${TOPDIR}/../dispatcher
     47 SRCS+=  dsargs.c dscontrol.c dsfield.c dsobject.c dsopcode.c    \
     48 	dsutils.c dswexec.c dswload.c dswload2.c dswscope.c     \
     49 	dswstate.c
     50 
     51 .PATH: ${TOPDIR}/../executer
     52 SRCS+=  exconvrt.c excreate.c exdump.c exmisc.c exmutex.c       \
     53 	exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c   \
     54 	exprep.c exregion.c exresnte.c exresolv.c exresop.c     \
     55 	exstore.c exstoren.c exstorob.c exsystem.c exutils.c
     56 
     57 .PATH: ${TOPDIR}/../parser
     58 SRCS+=  psargs.c psloop.c psopcode.c psparse.c psscope.c        \
     59 	pstree.c psutils.c pswalk.c
     60 
     61 .PATH: ${TOPDIR}/../tables
     62 SRCS+=	tbfadt.c tbinstal.c tbutils.c tbxface.c
     63 
     64 .PATH: ${TOPDIR}/../namespace
     65 SRCS+=  nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c      \
     66 	nsparse.c nssearch.c nsutils.c nswalk.c nsxfobj.c
     67 
     68 .PATH: ${TOPDIR}/../utilities
     69 SRCS+=  utalloc.c utcache.c utcopy.c utdebug.c utdecode.c       \
     70 	utdelete.c utglobal.c utinit.c utlock.c utmath.c        \
     71 	utmisc.c utmutex.c utobject.c utosi.c utresrc.c         \
     72 	utstate.c utxface.c utxferror.c
     73 
     74 .PATH: ${TOPDIR}/..
     75 SRCS+=	osunixxf.c
     76 
     77 aslcompilerparse.c: ${TOPDIR}/aslcompiler.y
     78 	${YACC} -v -d -o${.TARGET} -pAslCompiler ${.ALLSRC}
     79 	mv -f ${.PREFIX}.h aslcompiler.y.h
     80 
     81 aslcompilerlex.c: ${TOPDIR}/aslcompiler.l
     82 	${LEX} -i -PAslCompiler -o${.TARGET} ${.ALLSRC}
     83 
     84 CLEANFILES+=	aslcompilerlex.c aslcompilerparse.c \
     85 		aslcompiler.y.h aslcompilerparse.output
     86 
     87 .include <bsd.prog.mk>
     88