xref: /dragonfly/usr.sbin/acpi/iasl/Makefile (revision 25a2db75)
1# $FreeBSD: src/usr.sbin/acpi/iasl/Makefile,v 1.5 2004/01/13 20:53:56 ru Exp $
2# $DragonFly: src/usr.sbin/acpi/iasl/Makefile,v 1.2 2007/01/17 17:31:20 y0netan1 Exp $
3
4PROG=	iasl
5SRCS=	aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c \
6	aslanalyze.c aslbtypes.c aslwalks.c aslcodegen.c \
7	aslcompile.c aslerror.c aslfiles.c asllength.c \
8	asllisting.c aslload.c asllookup.c aslmain.c \
9	aslmap.c aslopcodes.c asloperands.c aslstartup.c aslresource.c \
10	aslrestype1.c aslrestype2.c asltree.c aslutils.c \
11	asltransform.c aslfold.c aslstubs.c aslopt.c \
12	aslpredef.c asluuid.c aslrestype1i.c aslrestype2d.c aslrestype2e.c \
13	aslrestype2q.c aslrestype2w.c
14
15SRCS+=	adisasm.c getopt.c osunixxf.c
16SRCS+=	dbfileio.c dmbuffer.c dmnames.c dmopcode.c dmobject.c \
17        dmresrc.c dmresrcl.c dmresrcs.c dmutils.c dmwalk.c dmextern.c \
18        dsopcode.c dsargs.c dscontrol.c dsutils.c dswexec.c dswload.c \
19	dswscope.c dswstate.c dsfield.c dsobject.c dswload2.c \
20        exconvrt.c excreate.c exdump.c exmisc.c \
21        exmutex.c exnames.c exoparg1.c exoparg2.c \
22        exoparg3.c exoparg6.c exprep.c exregion.c \
23        exresnte.c exresolv.c exresop.c exstore.c \
24        exstoren.c exstorob.c exsystem.c exutils.c \
25        nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c \
26	nsparse.c nssearch.c nsutils.c nswalk.c nsxfobj.c \
27        psargs.c psopcode.c psparse.c psscope.c \
28        pstree.c psutils.c pswalk.c \
29        tbfadt.c tbinstal.c tbutils.c tbxface.c \
30	utalloc.c utcopy.c utdebug.c utdelete.c utinit.c \
31        utglobal.c utobject.c utlock.c utmisc.c utmath.c utdecode.c \
32		utxface.c utxferror.c \
33	dttemplate.c dtcompile.c dtsubtable.c dtutils.c dtfield.c dtio.c dttable.c dtexpress.c \
34	dtparser.y.h dtparserlex.c dtparserparse.c
35
36SRCS+=	adfile.c adwalk.c dmrestag.c dmtbdump.c dmtbinfo.c dmtable.c psloop.c utcache.c utmutex.c utresrc.c utstate.c
37
38MAN=	iasl.8
39
40CFLAGS+= -DACPI_ASL_COMPILER -I.
41LFLAGS= -i -s
42YFLAGS= -d
43
44CFLAGS+= -D_USE_BERKELEY_YACC
45LDADD= -lpthread
46DPADD= ${LIBPTHREAD}
47
48CLEANFILES= aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c	\
49	aslcompilerparse.h dtparser.y.h dtparserlex.c				\
50	dtparserparse.c dtparserparse.h
51
52aslcompilerlex.c: aslcompiler.l
53	${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} ${.ALLSRC}
54
55aslcompilerparse.c: aslcompiler.y
56	${YACC} ${YFLAGS} -pAslCompiler -o${.TARGET} ${.ALLSRC}
57
58aslcompiler.y.h: aslcompilerparse.c
59	mv -f aslcompilerparse.h ${.TARGET}
60
61dtparserlex.c: dtparser.l
62	${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC}
63
64dtparserparse.c: dtparser.y
65	${YACC} ${YFLAGS} -pDtParser -o${.TARGET} ${.ALLSRC}
66
67dtparser.y.h: dtparserparse.c
68	mv -f dtparserparse.h ${.TARGET}
69
70.include <bsd.prog.mk>
71