4 SRCS
= aslcompilerparse.c aslcompilerlex.c aslanalyze.c aslcodegen.c \
5 aslcompile.c aslerror.c aslfiles.c asllength.c \
6 asllisting.c aslload.c asllookup.c aslmain.c aslmap.c aslopcodes.c \
7 asloperands.c aslresource.c aslrestype1.c aslrestype2.c aslstartup.c \
8 asltree.c aslutils.c asltransform.c aslfold.c aslstubs.c aslopt.c \
10 ..
/utilities
/utalloc.c \
11 ..
/utilities
/utcache.c \
12 ..
/utilities
/utcopy.c \
13 ..
/utilities
/utdebug.c \
14 ..
/utilities
/utdelete.c \
15 ..
/utilities
/utglobal.c \
16 ..
/utilities
/utinit.c \
17 ..
/utilities
/utlock.c \
18 ..
/utilities
/utobject.c \
19 ..
/utilities
/utmisc.c \
20 ..
/utilities
/utmath.c \
21 ..
/utilities
/utmutex.c \
22 ..
/utilities
/utresrc.c \
23 ..
/utilities
/utstate.c \
24 ..
/utilities
/utxface.c \
25 ..
/namespace
/nsaccess.c \
26 ..
/namespace
/nsalloc.c \
27 ..
/namespace
/nsdump.c \
28 ..
/namespace
/nsnames.c \
29 ..
/namespace
/nsobject.c \
30 ..
/namespace
/nsparse.c \
31 ..
/namespace
/nssearch.c \
32 ..
/namespace
/nsutils.c \
33 ..
/namespace
/nswalk.c \
34 ..
/namespace
/nsxfobj.c \
37 ..
/parser
/psopcode.c \
43 ..
/dispatcher
/dswscope.c \
44 ..
/dispatcher
/dswstate.c \
45 ..
/dispatcher
/dsfield.c \
46 ..
/dispatcher
/dsobject.c \
47 ..
/dispatcher
/dsopcode.c \
48 ..
/dispatcher
/dsutils.c \
49 ..
/dispatcher
/dswexec.c \
50 ..
/dispatcher
/dswload.c \
51 ..
/executer
/exconvrt.c \
52 ..
/executer
/excreate.c \
53 ..
/executer
/exdump.c \
54 ..
/executer
/exmisc.c \
55 ..
/executer
/exmutex.c \
56 ..
/executer
/exnames.c \
57 ..
/executer
/exoparg1.c \
58 ..
/executer
/exoparg2.c \
59 ..
/executer
/exoparg3.c \
60 ..
/executer
/exoparg6.c \
61 ..
/executer
/exprep.c \
62 ..
/executer
/exregion.c \
63 ..
/executer
/exresnte.c \
64 ..
/executer
/exresolv.c \
65 ..
/executer
/exresop.c \
66 ..
/executer
/exstore.c \
67 ..
/executer
/exstoren.c \
68 ..
/executer
/exstorob.c \
69 ..
/executer
/exsystem.c \
70 ..
/executer
/exutils.c \
74 ..
/common
/dmrestag.c \
76 ..
/common
/dmtbinfo.c \
77 ..
/common
/dmtbdump.c \
78 ..
/debugger
/dbfileio.c \
79 ..
/disassembler
/dmbuffer.c \
80 ..
/disassembler
/dmnames.c \
81 ..
/disassembler
/dmopcode.c \
82 ..
/disassembler
/dmobject.c \
83 ..
/disassembler
/dmresrc.c \
84 ..
/disassembler
/dmresrcl.c \
85 ..
/disassembler
/dmresrcs.c \
86 ..
/disassembler
/dmutils.c \
87 ..
/disassembler
/dmwalk.c \
89 ..
/tables
/tbinstal.c \
95 CFLAGS
+= -Wall
-O2
-Wstrict-prototypes
-D_LINUX
-DACPI_ASL_COMPILER
-I..
/include
103 #.if $(YACC) == "bison"
104 YFLAGS
+= -y
-pAslCompiler
106 #CFLAGS+= -D_USE_BERKELEY_YACC
109 LDLIBS
= -lpthread
-lrt
111 aslmain
: $(patsubst %.c
,%.o
, $(SRCS
))
112 $(CC
) $(LDFLAGS
) $(patsubst %.c
,%.o
, $(SRCS
)) \
113 $(LOADLIBES
) $(LDLIBS
) -o iasl
115 CLEANFILES
= y.output y.tab.c y.tab.h aslcompiler.y.h \
116 aslcompilerparse.c aslcompilerlex.c iasl
118 aslcompilerparse.c
: aslcompiler.y
119 ${YACC} ${YFLAGS} aslcompiler.y
120 cp y.tab.c aslcompilerparse.c
121 cp y.tab.h aslcompiler.y.h
123 aslcompilerlex.c
: aslcompiler.l
124 ${LEX} ${LFLAGS} -PAslCompiler
-oaslcompilerlex.c aslcompiler.l
127 rm -f
$(CLEANFILES
) $(patsubst %.c
,%.o
, $(SRCS
))