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