]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/acpi/iasl/Makefile
Import a slightly newer libc++, with some bugs fixed that were found by running
[FreeBSD/FreeBSD.git] / usr.sbin / acpi / iasl / Makefile
1 # $FreeBSD$
2
3 PROG=   iasl
4 SRCS=   adfile.c adisasm.c adwalk.c
5
6 # common
7 SRCS+=  dmextern.c dmrestag.c dmtable.c dmtbdump.c dmtbinfo.c   \
8         getopt.c
9
10 # compiler
11 SRCS+=  aslanalyze.c aslbtypes.c aslcodegen.c aslcompile.c      \
12         aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c     \
13         aslerror.c aslfiles.c aslfold.c asllength.c             \
14         asllisting.c aslload.c asllookup.c aslmain.c aslmap.c   \
15         aslopcodes.c asloperands.c aslopt.c aslpredef.c         \
16         aslresource.c aslrestype1.c aslrestype1i.c              \
17         aslrestype2.c aslrestype2d.c aslrestype2e.c             \
18         aslrestype2q.c aslrestype2s.c aslrestype2w.c            \
19         aslstartup.c aslstubs.c asltransform.c asltree.c        \
20         aslutils.c asluuid.c aslwalks.c dtcompile.c dtexpress.c \
21         dtfield.c dtio.c dtparser.y.h dtparserlex.c             \
22         dtparserparse.c dtsubtable.c dttable.c dttemplate.c     \
23         dtutils.c
24
25 # components/debugger
26 SRCS+=  dbfileio.c
27
28 # components/disassembler
29 SRCS+=  dmbuffer.c dmnames.c dmopcode.c dmresrc.c dmresrcl.c    \
30         dmresrcl2.c dmresrcs.c dmutils.c dmwalk.c
31
32 # components/dispatcher
33 SRCS+=  dsargs.c dscontrol.c dsfield.c dsobject.c dsopcode.c    \
34         dsutils.c dswexec.c dswload.c dswload2.c dswscope.c     \
35         dswstate.c
36
37 # components/executer
38 SRCS+=  exconvrt.c excreate.c exdump.c exmisc.c exmutex.c       \
39         exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c   \
40         exprep.c exresnte.c exresolv.c exresop.c exstore.c      \
41         exstoren.c exstorob.c exsystem.c exutils.c
42
43 # components/parser
44 SRCS+=  psargs.c psloop.c psopcode.c psparse.c psscope.c        \
45         pstree.c psutils.c pswalk.c
46
47 # components/namespace
48 SRCS+=  nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c      \
49         nsparse.c nssearch.c nsutils.c nswalk.c
50
51 # components/tables
52 SRCS+=  tbfadt.c tbinstal.c tbutils.c tbxface.c
53
54 # components/utilities
55 SRCS+=  utaddress.c utalloc.c utcache.c utcopy.c utdebug.c      \
56         utdecode.c utdelete.c utglobal.c utinit.c utlock.c      \
57         utmath.c utmisc.c utmutex.c utobject.c utresrc.c        \
58         utstate.c utxface.c utxferror.c
59
60 # os_specific/service_layers
61 SRCS+=  osunixxf.c
62
63 WARNS?= 2
64
65 MAN=    iasl.8
66
67 CFLAGS+= -DACPI_ASL_COMPILER -I.
68 LFLAGS= -i -s
69 YFLAGS= -d
70
71 CLEANFILES= aslcompiler.y.h aslcompilerlex.c aslcompilerparse.c \
72         aslcompilerparse.h dtparser.y.h dtparserlex.c           \
73         dtparserparse.c dtparserparse.h
74
75 aslcompilerlex.c: aslcompiler.l
76         ${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} ${.ALLSRC}
77
78 .ORDER: aslcompilerparse.c aslcompilerparse.h
79 aslcompilerparse.c aslcompilerparse.h: aslcompiler.y
80         ${YACC} ${YFLAGS} -pAslCompiler -oaslcompilerparse.c ${.ALLSRC}
81
82 aslcompiler.y.h: aslcompilerparse.h
83         ln -f ${.ALLSRC} ${.TARGET}
84
85 dtparserlex.c: dtparser.l
86         ${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC}
87
88 .ORDER: dtparserparse.c dtparserparse.h
89 dtparserparse.c dtparserparse.h: dtparser.y
90         ${YACC} ${YFLAGS} -pDtParser -odtparserparse.c ${.ALLSRC}
91
92 dtparser.y.h: dtparserparse.h
93         ln -f ${.ALLSRC} ${.TARGET}
94
95 .include <bsd.prog.mk>