-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
232 lines (221 loc) · 9.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# PROG= acpiexec
# SRCS= aeexec.c aemain.c \
PROG= bin/aapits
SRCS= atexec.c atmain.c \
atinit.c \
atmemory.c \
athardware.c \
attable.c \
atnamespace.c \
atresource.c \
atfixedevent.c \
atgpe.c \
athandlers.c \
atosxfctrl.c \
atosxfwrap.c \
osunixxf.c \
../../source/common/ahids.c \
../../source/common/ahuuids.c \
../../source/common/cmfsize.c \
../../source/common/getopt.c \
../../source/components/hardware/hwtimer.c \
../../source/components/hardware/hwvalid.c \
../../source/components/hardware/hwxface.c \
../../source/components/debugger/dbcmds.c \
../../source/components/debugger/dbconvert.c \
../../source/components/debugger/dbdisply.c \
../../source/components/debugger/dbexec.c \
../../source/components/debugger/dbfileio.c \
../../source/components/debugger/dbhistry.c \
../../source/components/debugger/dbinput.c \
../../source/components/debugger/dbmethod.c \
../../source/components/debugger/dbnames.c \
../../source/components/debugger/dbstats.c \
../../source/components/debugger/dbtest.c \
../../source/components/debugger/dbutils.c \
../../source/components/debugger/dbxface.c \
../../source/components/disassembler/dmbuffer.c \
../../source/components/disassembler/dmcstyle.c \
../../source/components/disassembler/dmdeferred.c \
../../source/components/disassembler/dmnames.c \
../../source/components/disassembler/dmobject.c \
../../source/components/disassembler/dmopcode.c \
../../source/components/disassembler/dmresrc.c \
../../source/components/disassembler/dmresrcl.c \
../../source/components/disassembler/dmresrcl2.c \
../../source/components/disassembler/dmresrcs.c \
../../source/components/disassembler/dmutils.c \
../../source/components/disassembler/dmwalk.c \
../../source/components/events/evevent.c \
../../source/components/events/evgpe.c \
../../source/components/events/evgpeblk.c \
../../source/components/events/evgpeinit.c \
../../source/components/events/evgpeutil.c \
../../source/components/events/evglock.c \
../../source/components/events/evhandler.c \
../../source/components/events/evmisc.c \
../../source/components/events/evregion.c \
../../source/components/events/evrgnini.c \
../../source/components/events/evsci.c \
../../source/components/events/evxface.c \
../../source/components/events/evxfevnt.c \
../../source/components/events/evxfgpe.c \
../../source/components/events/evxfregn.c \
../../source/components/hardware/hwacpi.c \
../../source/components/hardware/hwesleep.c \
../../source/components/hardware/hwgpe.c \
../../source/components/hardware/hwpci.c \
../../source/components/hardware/hwregs.c \
../../source/components/hardware/hwsleep.c \
../../source/components/hardware/hwxfsleep.c \
../../source/components/dispatcher/dsargs.c \
../../source/components/dispatcher/dscontrol.c \
../../source/components/dispatcher/dsfield.c \
../../source/components/dispatcher/dsinit.c \
../../source/components/dispatcher/dsmethod.c \
../../source/components/dispatcher/dsmthdat.c \
../../source/components/dispatcher/dsobject.c \
../../source/components/dispatcher/dsopcode.c \
../../source/components/dispatcher/dsutils.c \
../../source/components/dispatcher/dswexec.c \
../../source/components/dispatcher/dswload.c \
../../source/components/dispatcher/dswload2.c \
../../source/components/dispatcher/dswscope.c \
../../source/components/dispatcher/dswstate.c \
../../source/components/executer/exconfig.c \
../../source/components/executer/exconvrt.c \
../../source/components/executer/excreate.c \
../../source/components/executer/exdump.c \
../../source/components/executer/exfield.c \
../../source/components/executer/exfldio.c \
../../source/components/executer/exdebug.c \
../../source/components/executer/exmisc.c \
../../source/components/executer/exmutex.c \
../../source/components/executer/exnames.c \
../../source/components/executer/exoparg1.c \
../../source/components/executer/exoparg2.c \
../../source/components/executer/exoparg3.c \
../../source/components/executer/exoparg6.c \
../../source/components/executer/exprep.c \
../../source/components/executer/exregion.c \
../../source/components/executer/exresnte.c \
../../source/components/executer/exresolv.c \
../../source/components/executer/exresop.c \
../../source/components/executer/exstore.c \
../../source/components/executer/exstoren.c \
../../source/components/executer/exstorob.c \
../../source/components/executer/exsystem.c \
../../source/components/executer/exutils.c \
../../source/components/parser/psargs.c \
../../source/components/parser/psloop.c \
../../source/components/parser/psobject.c \
../../source/components/parser/psopcode.c \
../../source/components/parser/psopinfo.c \
../../source/components/parser/psparse.c \
../../source/components/parser/psscope.c \
../../source/components/parser/pstree.c \
../../source/components/parser/psutils.c \
../../source/components/parser/pswalk.c \
../../source/components/parser/psxface.c \
../../source/components/namespace/nsaccess.c \
../../source/components/namespace/nsalloc.c \
../../source/components/namespace/nsarguments.c \
../../source/components/namespace/nsconvert.c \
../../source/components/namespace/nsdump.c \
../../source/components/namespace/nsdumpdv.c \
../../source/components/namespace/nseval.c \
../../source/components/namespace/nsinit.c \
../../source/components/namespace/nsload.c \
../../source/components/namespace/nsnames.c \
../../source/components/namespace/nsobject.c \
../../source/components/namespace/nsparse.c \
../../source/components/namespace/nspredef.c \
../../source/components/namespace/nsprepkg.c \
../../source/components/namespace/nsrepair.c \
../../source/components/namespace/nsrepair2.c \
../../source/components/namespace/nssearch.c \
../../source/components/namespace/nsutils.c \
../../source/components/namespace/nswalk.c \
../../source/components/namespace/nsxfeval.c \
../../source/components/namespace/nsxfname.c \
../../source/components/namespace/nsxfobj.c \
../../source/components/resources/rsaddr.c \
../../source/components/resources/rscalc.c \
../../source/components/resources/rscreate.c \
../../source/components/resources/rsdump.c \
../../source/components/resources/rsdumpinfo.c \
../../source/components/resources/rsio.c \
../../source/components/resources/rsirq.c \
../../source/components/resources/rslist.c \
../../source/components/resources/rsmemory.c \
../../source/components/resources/rsmisc.c \
../../source/components/resources/rsserial.c \
../../source/components/resources/rsutils.c \
../../source/components/resources/rsxface.c \
../../source/components/resources/rsinfo.c \
../../source/components/tables/tbdata.c \
../../source/components/tables/tbfadt.c \
../../source/components/tables/tbfind.c \
../../source/components/tables/tbinstal.c \
../../source/components/tables/tbprint.c \
../../source/components/tables/tbutils.c \
../../source/components/tables/tbxface.c \
../../source/components/tables/tbxfload.c \
../../source/components/tables/tbxfroot.c \
../../source/components/utilities/utaddress.c \
../../source/components/utilities/utalloc.c \
../../source/components/utilities/utbuffer.c \
../../source/components/utilities/utcache.c \
../../source/components/utilities/utcopy.c \
../../source/components/utilities/utdebug.c \
../../source/components/utilities/utdecode.c \
../../source/components/utilities/utdelete.c \
../../source/components/utilities/uterror.c \
../../source/components/utilities/uteval.c \
../../source/components/utilities/utexcep.c \
../../source/components/utilities/utfileio.c \
../../source/components/utilities/utglobal.c \
../../source/components/utilities/uthex.c \
../../source/components/utilities/utids.c \
../../source/components/utilities/utinit.c \
../../source/components/utilities/utlock.c \
../../source/components/utilities/utmath.c \
../../source/components/utilities/utmisc.c \
../../source/components/utilities/utmutex.c \
../../source/components/utilities/utobject.c \
../../source/components/utilities/utosi.c \
../../source/components/utilities/utownerid.c \
../../source/components/utilities/utpredef.c \
../../source/components/utilities/utprint.c \
../../source/components/utilities/utresrc.c \
../../source/components/utilities/utstate.c \
../../source/components/utilities/utstring.c \
../../source/components/utilities/uttrack.c \
../../source/components/utilities/utuuid.c \
../../source/components/utilities/utxface.c \
../../source/components/utilities/utxferror.c \
../../source/components/utilities/utxfinit.c \
../../source/os_specific/service_layers/oslibcfs.c
# ../../source/os_specific/service_layers/osunixxf.c
UNAME_S := $(shell uname -s)
#
# Host detection and configuration
#
ifeq ($(UNAME_S), Darwin) # Mac OS X
HOST = _APPLE
endif
ifeq ($(UNAME_S), FreeBSD)
HOST = _FreeBSD
endif
ifeq ($(UNAME_S), Linux)
HOST = _Linux
endif
ifeq ($(UNAME_S), NetBSD)
HOST = _NetBSD
endif
CFLAGS+= -Wall -g -D$(HOST) -DNDEBUG -D_CONSOLE -DACPI_APITS -DACPI_EXEC_APP -D_MULTI_THREADED -Wstrict-prototypes -I../../source/include
$(PROG) : $(patsubst %.c,%.o, $(SRCS))
$(CC) $(CFLAGS) $(LDFLAGS) $(patsubst %.c,%.o, $(SRCS)) -o $(PROG)
CLEANFILES= $(PROG)
clean :
rm -f $(CLEANFILES) $(patsubst %.c,%.o, $(SRCS))