Sync ACPICA with Intel's version 20180927:
[dragonfly.git] / sys / contrib / dev / acpica / generate / unix / acpiexec / Makefile
blob9faf312147c80e335e59f4e7d6e1e4b1c4d6ef35
2 # acpiexec: ACPI execution simulator. Runs ACPICA code in user
3 # space. Loads ACPI tables, displays the namespace, and allows
4 # execution of control methods.
8 # Note: This makefile is intended to be used from within the native
9 # ACPICA directory structure, from under generate/unix. It specifically
10 # places all object files in a generate/unix subdirectory, not within
11 # the various ACPICA source directories. This prevents collisions
12 # between different compilations of the same source file with different
13 # compile options, and prevents pollution of the source code.
15 include ../Makefile.config
16 FINAL_PROG = ../$(BINDIR)/acpiexec
17 PROG = $(OBJDIR)/acpiexec
20 # Search paths for source files
22 vpath %.c \
23 $(ACPIEXEC)\
24 $(ACPICA_DEBUGGER)\
25 $(ACPICA_DISASSEMBLER)\
26 $(ACPICA_DISPATCHER)\
27 $(ACPICA_EVENTS)\
28 $(ACPICA_EXECUTER)\
29 $(ACPICA_HARDWARE)\
30 $(ACPICA_NAMESPACE)\
31 $(ACPICA_PARSER)\
32 $(ACPICA_RESOURCES)\
33 $(ACPICA_TABLES)\
34 $(ACPICA_UTILITIES)\
35 $(ACPICA_COMMON)\
36 $(ACPICA_OSL)
38 HEADERS = \
39 $(wildcard $(ACPIEXEC)/*.h)
41 OBJECTS = \
42 $(OBJDIR)/acgetline.o\
43 $(OBJDIR)/acfileio.o\
44 $(OBJDIR)/aeexec.o\
45 $(OBJDIR)/aeexception.o\
46 $(OBJDIR)/aehandlers.o\
47 $(OBJDIR)/aeinitfile.o\
48 $(OBJDIR)/aeinstall.o\
49 $(OBJDIR)/aemain.o\
50 $(OBJDIR)/aeregion.o\
51 $(OBJDIR)/aetables.o\
52 $(OBJDIR)/aetests.o\
53 $(OBJDIR)/ahids.o\
54 $(OBJDIR)/ahuuids.o\
55 $(OBJDIR)/cmfsize.o\
56 $(OBJDIR)/dbcmds.o\
57 $(OBJDIR)/dbconvert.o\
58 $(OBJDIR)/dbdisply.o\
59 $(OBJDIR)/dbexec.o\
60 $(OBJDIR)/dbfileio.o\
61 $(OBJDIR)/dbhistry.o\
62 $(OBJDIR)/dbinput.o\
63 $(OBJDIR)/dbmethod.o\
64 $(OBJDIR)/dbnames.o\
65 $(OBJDIR)/dbobject.o\
66 $(OBJDIR)/dbstats.o\
67 $(OBJDIR)/dbtest.o\
68 $(OBJDIR)/dbutils.o\
69 $(OBJDIR)/dbxface.o\
70 $(OBJDIR)/dmbuffer.o\
71 $(OBJDIR)/dmcstyle.o\
72 $(OBJDIR)/dmdeferred.o\
73 $(OBJDIR)/dmnames.o\
74 $(OBJDIR)/dmopcode.o\
75 $(OBJDIR)/dmresrc.o\
76 $(OBJDIR)/dmresrcl.o\
77 $(OBJDIR)/dmresrcl2.o\
78 $(OBJDIR)/dmresrcs.o\
79 $(OBJDIR)/dmutils.o\
80 $(OBJDIR)/dmwalk.o\
81 $(OBJDIR)/dsargs.o\
82 $(OBJDIR)/dscontrol.o\
83 $(OBJDIR)/dsdebug.o\
84 $(OBJDIR)/dsfield.o\
85 $(OBJDIR)/dsinit.o\
86 $(OBJDIR)/dsmethod.o\
87 $(OBJDIR)/dsmthdat.o\
88 $(OBJDIR)/dsobject.o\
89 $(OBJDIR)/dsopcode.o\
90 $(OBJDIR)/dspkginit.o\
91 $(OBJDIR)/dsutils.o\
92 $(OBJDIR)/dswexec.o\
93 $(OBJDIR)/dswload.o\
94 $(OBJDIR)/dswload2.o\
95 $(OBJDIR)/dswscope.o\
96 $(OBJDIR)/dswstate.o\
97 $(OBJDIR)/evevent.o\
98 $(OBJDIR)/evglock.o\
99 $(OBJDIR)/evgpe.o\
100 $(OBJDIR)/evgpeblk.o\
101 $(OBJDIR)/evgpeinit.o\
102 $(OBJDIR)/evgpeutil.o\
103 $(OBJDIR)/evhandler.o\
104 $(OBJDIR)/evmisc.o\
105 $(OBJDIR)/evregion.o\
106 $(OBJDIR)/evrgnini.o\
107 $(OBJDIR)/evsci.o\
108 $(OBJDIR)/evxface.o\
109 $(OBJDIR)/evxfevnt.o\
110 $(OBJDIR)/evxfgpe.o\
111 $(OBJDIR)/evxfregn.o\
112 $(OBJDIR)/exconfig.o\
113 $(OBJDIR)/exconcat.o\
114 $(OBJDIR)/exconvrt.o\
115 $(OBJDIR)/excreate.o\
116 $(OBJDIR)/exdebug.o\
117 $(OBJDIR)/exdump.o\
118 $(OBJDIR)/exfield.o\
119 $(OBJDIR)/exfldio.o\
120 $(OBJDIR)/exmisc.o\
121 $(OBJDIR)/exmutex.o\
122 $(OBJDIR)/exnames.o\
123 $(OBJDIR)/exoparg1.o\
124 $(OBJDIR)/exoparg2.o\
125 $(OBJDIR)/exoparg3.o\
126 $(OBJDIR)/exoparg6.o\
127 $(OBJDIR)/exprep.o\
128 $(OBJDIR)/exregion.o\
129 $(OBJDIR)/exresnte.o\
130 $(OBJDIR)/exresolv.o\
131 $(OBJDIR)/exresop.o\
132 $(OBJDIR)/exserial.o\
133 $(OBJDIR)/exstore.o\
134 $(OBJDIR)/exstoren.o\
135 $(OBJDIR)/exstorob.o\
136 $(OBJDIR)/exsystem.o\
137 $(OBJDIR)/extrace.o\
138 $(OBJDIR)/exutils.o\
139 $(OBJDIR)/getopt.o\
140 $(OBJDIR)/hwacpi.o\
141 $(OBJDIR)/hwesleep.o\
142 $(OBJDIR)/hwgpe.o\
143 $(OBJDIR)/hwpci.o\
144 $(OBJDIR)/hwregs.o\
145 $(OBJDIR)/hwsleep.o\
146 $(OBJDIR)/hwtimer.o\
147 $(OBJDIR)/hwvalid.o\
148 $(OBJDIR)/hwxface.o\
149 $(OBJDIR)/hwxfsleep.o\
150 $(OBJDIR)/nsaccess.o\
151 $(OBJDIR)/nsalloc.o\
152 $(OBJDIR)/nsarguments.o\
153 $(OBJDIR)/nsconvert.o\
154 $(OBJDIR)/nsdump.o\
155 $(OBJDIR)/nsdumpdv.o\
156 $(OBJDIR)/nseval.o\
157 $(OBJDIR)/nsinit.o\
158 $(OBJDIR)/nsload.o\
159 $(OBJDIR)/nsnames.o\
160 $(OBJDIR)/nsobject.o\
161 $(OBJDIR)/nsparse.o\
162 $(OBJDIR)/nspredef.o\
163 $(OBJDIR)/nsprepkg.o\
164 $(OBJDIR)/nsrepair.o\
165 $(OBJDIR)/nsrepair2.o\
166 $(OBJDIR)/nssearch.o\
167 $(OBJDIR)/nsutils.o\
168 $(OBJDIR)/nswalk.o\
169 $(OBJDIR)/nsxfeval.o\
170 $(OBJDIR)/nsxfname.o\
171 $(OBJDIR)/nsxfobj.o\
172 $(OBJDIR)/osgendbg.o\
173 $(OBJDIR)/osunixxf.o\
174 $(OBJDIR)/psargs.o\
175 $(OBJDIR)/psloop.o\
176 $(OBJDIR)/psobject.o\
177 $(OBJDIR)/psopcode.o\
178 $(OBJDIR)/psopinfo.o\
179 $(OBJDIR)/psparse.o\
180 $(OBJDIR)/psscope.o\
181 $(OBJDIR)/pstree.o\
182 $(OBJDIR)/psutils.o\
183 $(OBJDIR)/pswalk.o\
184 $(OBJDIR)/psxface.o\
185 $(OBJDIR)/rsaddr.o\
186 $(OBJDIR)/rscalc.o\
187 $(OBJDIR)/rscreate.o\
188 $(OBJDIR)/rsdump.o\
189 $(OBJDIR)/rsdumpinfo.o\
190 $(OBJDIR)/rsinfo.o\
191 $(OBJDIR)/rsio.o\
192 $(OBJDIR)/rsirq.o\
193 $(OBJDIR)/rslist.o\
194 $(OBJDIR)/rsmemory.o\
195 $(OBJDIR)/rsmisc.o\
196 $(OBJDIR)/rsserial.o\
197 $(OBJDIR)/rsutils.o\
198 $(OBJDIR)/rsxface.o\
199 $(OBJDIR)/tbdata.o\
200 $(OBJDIR)/tbfadt.o\
201 $(OBJDIR)/tbfind.o\
202 $(OBJDIR)/tbinstal.o\
203 $(OBJDIR)/tbprint.o\
204 $(OBJDIR)/tbutils.o\
205 $(OBJDIR)/tbxface.o\
206 $(OBJDIR)/tbxfload.o\
207 $(OBJDIR)/tbxfroot.o\
208 $(OBJDIR)/utaddress.o\
209 $(OBJDIR)/utalloc.o\
210 $(OBJDIR)/utascii.o\
211 $(OBJDIR)/utbuffer.o\
212 $(OBJDIR)/utcache.o\
213 $(OBJDIR)/utcopy.o\
214 $(OBJDIR)/utdebug.o\
215 $(OBJDIR)/utdecode.o\
216 $(OBJDIR)/utdelete.o\
217 $(OBJDIR)/uterror.o\
218 $(OBJDIR)/uteval.o\
219 $(OBJDIR)/utexcep.o\
220 $(OBJDIR)/utglobal.o\
221 $(OBJDIR)/uthex.o\
222 $(OBJDIR)/utids.o\
223 $(OBJDIR)/utinit.o\
224 $(OBJDIR)/utlock.o\
225 $(OBJDIR)/utmath.o\
226 $(OBJDIR)/utmisc.o\
227 $(OBJDIR)/utmutex.o\
228 $(OBJDIR)/utobject.o\
229 $(OBJDIR)/utosi.o\
230 $(OBJDIR)/utownerid.o\
231 $(OBJDIR)/utnonansi.o\
232 $(OBJDIR)/utpredef.o\
233 $(OBJDIR)/utresdecode.o\
234 $(OBJDIR)/utresrc.o\
235 $(OBJDIR)/utstate.o\
236 $(OBJDIR)/utstring.o\
237 $(OBJDIR)/utstrsuppt.o\
238 $(OBJDIR)/utstrtoul64.o\
239 $(OBJDIR)/uttrack.o\
240 $(OBJDIR)/utuuid.o\
241 $(OBJDIR)/utxface.o\
242 $(OBJDIR)/utxferror.o\
243 $(OBJDIR)/utxfinit.o\
244 $(OBJDIR)/utxfmutex.o
247 # Flags specific to acpiexec utility
249 CFLAGS += \
250 -DACPI_EXEC_APP\
251 -I$(ACPIEXEC)
253 ifeq ($(ASLTS),TRUE)
254 CFLAGS += \
255 -DACPI_CHECKSUM_ABORT=TRUE
256 endif
258 ifneq ($(HOST),_QNX)
259 LDFLAGS += -lpthread
260 endif
262 ifneq ($(HOST),_APPLE)
263 ifneq ($(HOST),_QNX)
264 LDFLAGS += -lrt
265 endif
266 endif
269 # Common Rules
271 include ../Makefile.rules