1# 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. 5# 6 7# 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. 14# 15include ../Makefile.config 16FINAL_PROG = ../$(BINDIR)/acpiexec 17PROG = $(OBJDIR)/acpiexec 18 19# 20# Search paths for source files 21# 22vpath %.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) 37 38HEADERS = \ 39 $(wildcard $(ACPIEXEC)/*.h) 40 41OBJECTS = \ 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)/utcksum.o\ 214 $(OBJDIR)/utcopy.o\ 215 $(OBJDIR)/utdebug.o\ 216 $(OBJDIR)/utdecode.o\ 217 $(OBJDIR)/utdelete.o\ 218 $(OBJDIR)/uterror.o\ 219 $(OBJDIR)/uteval.o\ 220 $(OBJDIR)/utexcep.o\ 221 $(OBJDIR)/utglobal.o\ 222 $(OBJDIR)/uthex.o\ 223 $(OBJDIR)/utids.o\ 224 $(OBJDIR)/utinit.o\ 225 $(OBJDIR)/utlock.o\ 226 $(OBJDIR)/utmath.o\ 227 $(OBJDIR)/utmisc.o\ 228 $(OBJDIR)/utmutex.o\ 229 $(OBJDIR)/utobject.o\ 230 $(OBJDIR)/utosi.o\ 231 $(OBJDIR)/utownerid.o\ 232 $(OBJDIR)/utnonansi.o\ 233 $(OBJDIR)/utpredef.o\ 234 $(OBJDIR)/utresdecode.o\ 235 $(OBJDIR)/utresrc.o\ 236 $(OBJDIR)/utstate.o\ 237 $(OBJDIR)/utstring.o\ 238 $(OBJDIR)/utstrsuppt.o\ 239 $(OBJDIR)/utstrtoul64.o\ 240 $(OBJDIR)/uttrack.o\ 241 $(OBJDIR)/utuuid.o\ 242 $(OBJDIR)/utxface.o\ 243 $(OBJDIR)/utxferror.o\ 244 $(OBJDIR)/utxfinit.o\ 245 $(OBJDIR)/utxfmutex.o 246 247# 248# Flags specific to acpiexec utility 249# 250CFLAGS += \ 251 -DACPI_EXEC_APP\ 252 -I$(ACPIEXEC) 253 254ifeq ($(ASLTS),TRUE) 255CFLAGS += \ 256 -DACPI_CHECKSUM_ABORT=TRUE 257endif 258 259ifneq ($(ACPI_HOST),_QNX) 260LDFLAGS += -lpthread 261endif 262 263ifneq ($(ACPI_HOST),_APPLE) 264ifneq ($(ACPI_HOST),_QNX) 265LDFLAGS += -lrt 266endif 267endif 268 269# 270# Common Rules 271# 272include ../Makefile.rules 273