]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - usr.sbin/acpi/iasl/Makefile
MFC r362623:
[FreeBSD/stable/8.git] / usr.sbin / acpi / iasl / Makefile
1 # $FreeBSD$
2
3 PROG=   iasl
4 SRCS=   adfile.c adisasm.c adwalk.c
5 SRCS+=  osunixxf.c
6
7 # common
8 SRCS+=  dmextern.c dmrestag.c dmtable.c dmtbdump.c dmtbinfo.c   \
9         getopt.c
10
11 # compiler
12 SRCS+=  aslanalyze.c aslcodegen.c aslcompile.c aslcompiler.y.h  \
13         aslcompilerlex.l aslcompilerparse.y aslerror.c          \
14         aslfiles.c aslfold.c asllength.c asllisting.c           \
15         aslload.c asllookup.c aslmain.c aslmap.c aslopcodes.c   \
16         asloperands.c aslopt.c aslpredef.c aslresource.c        \
17         aslrestype1.c aslrestype1i.c aslrestype2.c              \
18         aslrestype2d.c aslrestype2e.c aslrestype2q.c            \
19         aslrestype2w.c aslstartup.c aslstubs.c asltransform.c   \
20         asltree.c aslutils.c dtcompile.c dtfield.c dtio.c       \
21         dtsubtable.c dttable.c dttemplate.c dtutils.c
22
23 # debugger
24 SRCS+=  dbfileio.c
25
26 # disassembler
27 SRCS+=  dmbuffer.c dmnames.c dmobject.c dmopcode.c dmresrc.c    \
28         dmresrcl.c dmresrcs.c dmutils.c dmwalk.c
29
30 # interpreter/dispatcher
31 SRCS+=  dsfield.c dsobject.c dsopcode.c dsutils.c dswexec.c     \
32         dswload.c dswscope.c dswstate.c
33
34 # interpreter/executer
35 SRCS+=  exconvrt.c excreate.c exdump.c exmisc.c exmutex.c       \
36         exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c   \
37         exprep.c exregion.c exresnte.c exresolv.c exresop.c     \
38         exstore.c exstoren.c exstorob.c exsystem.c exutils.c
39
40 # interpreter/parser
41 SRCS+=  psargs.c psloop.c psopcode.c psparse.c psscope.c        \
42         pstree.c psutils.c pswalk.c
43
44 # namespace
45 SRCS+=  nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c      \
46         nsparse.c nssearch.c nsutils.c nswalk.c nsxfobj.c
47
48 # tables
49 SRCS+=  tbfadt.c tbinstal.c tbutils.c tbxface.c
50
51 # utilities
52 SRCS+=  utalloc.c utcache.c utcopy.c utdebug.c utdelete.c       \
53         utglobal.c utinit.c utlock.c utmath.c utmisc.c          \
54         utmutex.c utobject.c utosi.c utresrc.c utstate.c        \
55         utxface.c utxferror.c
56
57 MAN=    iasl.8
58
59 CFLAGS+= -DACPI_ASL_COMPILER -I.
60 CFLAGS+= -D_USE_BERKELEY_YACC
61 LFLAGS= -i -PAslCompiler
62 YFLAGS= -d -pAslCompiler
63 DPADD=  ${LIBPTHREAD}
64 LDADD=  -lpthread
65
66 CLEANFILES= aslcompiler.y.h aslcompilerlex.l aslcompilerparse.y
67
68 aslcompiler.y.h: aslcompilerparse.h
69         cat ${.ALLSRC} > ${.TARGET}
70
71 aslcompilerlex.l: aslcompiler.l
72         cat ${.ALLSRC} > ${.TARGET}
73
74 aslcompilerparse.y: aslcompiler.y
75         cat ${.ALLSRC} > ${.TARGET}
76
77 .include <bsd.prog.mk>