1SubDir HAIKU_TOP src add-ons kernel bus_managers acpi ; 2 3SetSubDirSupportedPlatformsBeOSCompatible ; 4 5UsePrivateKernelHeaders ; 6SubDirHdrs [ FDirName $(SUBDIR) include ] ; 7SubDirHdrs [ FDirName $(SUBDIR) include platform ] ; 8SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) pci ] ; 9SubDirCcFlags -fno-pic -D_KERNEL_MODE ; 10 11if $(TARGET_PLATFORM) != haiku { 12 # Needed for <ACPI.h>. Unfortunately we also get the other headers there, 13 # that we don't really want. 14 UsePublicHeaders drivers ; 15} 16 17local events_src = 18 evevent.c 19 evgpe.c 20 evgpeblk.c 21 evmisc.c 22 evregion.c 23 evrgnini.c 24 evsci.c 25 evxface.c 26 evxfevnt.c 27 evxfregn.c 28 ; 29 30local hardware_src = 31 hwacpi.c 32 hwgpe.c 33 hwregs.c 34 hwsleep.c 35 hwtimer.c 36; 37 38local debugger_src = 39 dbdisply.c 40 dbxface.c 41; 42 43local disassembler_src = 44 dmobject.c 45; 46 47local dispatcher_src = 48 dsfield.c 49 dsinit.c 50 dsmethod.c 51 dsmthdat.c 52 dsobject.c 53 dsopcode.c 54 dsutils.c 55 dswexec.c 56 dswload.c 57 dswscope.c 58 dswstate.c 59 ; 60 61local executer_src = 62 exconfig.c 63 exconvrt.c 64 excreate.c 65 exdump.c 66 exfield.c 67 exfldio.c 68 exmisc.c 69 exmutex.c 70 exnames.c 71 exoparg1.c 72 exoparg2.c 73 exoparg3.c 74 exoparg6.c 75 exprep.c 76 exregion.c 77 exresnte.c 78 exresolv.c 79 exresop.c 80 exstore.c 81 exstoren.c 82 exstorob.c 83 exsystem.c 84 exutils.c 85 ; 86 87local parser_src = 88 psargs.c 89 psloop.c 90 psopcode.c 91 psparse.c 92 psscope.c 93 pstree.c 94 psutils.c 95 pswalk.c 96 psxface.c 97 ; 98 99local namespace_src = 100 nsaccess.c 101 nsalloc.c 102 nsdump.c 103 nsdumpdv.c 104 nseval.c 105 nsinit.c 106 nsload.c 107 nsnames.c 108 nsobject.c 109 nsparse.c 110 nssearch.c 111 nsutils.c 112 nswalk.c 113 nsxfeval.c 114 nsxfname.c 115 nsxfobj.c 116 ; 117 118local resources_src = 119 rsaddr.c 120 rscalc.c 121 rscreate.c 122 rsdump.c 123 rsinfo.c 124 rsio.c 125 rsirq.c 126 rslist.c 127 rsmemory.c 128 rsmisc.c 129 rsutils.c 130 rsxface.c 131 ; 132 133local tables_src = 134 tbfadt.c 135 tbfind.c 136 tbinstal.c 137 #tbutils.c 138 tbxface.c 139 tbxfroot.c 140 ; 141 142local utilities_src = 143 utalloc.c 144 utcache.c 145 utclib.c 146 utcopy.c 147 utdebug.c 148 utdelete.c 149 uteval.c 150 utglobal.c 151 utinit.c 152 utmath.c 153 utmisc.c 154 utmutex.c 155 utobject.c 156 utresrc.c 157 utstate.c 158 uttrack.c 159 utxface.c 160 ; 161 162StaticLibrary libacpi_ca.a : 163 $(events_src) 164 $(hardware_src) 165 $(dispatcher_src) 166 $(executer_src) 167 $(parser_src) 168 $(namespace_src) 169 $(resources_src) 170 $(tables_src) 171 $(utilities_src) 172 ; 173 174 175# this is a workaround for an optimization bug in our GCC4 with -O1 and -O2, this should be dropped when we upgrade 176oldOPTIM = $(OPTIM) ; 177OPTIM = -O3 ; 178StaticLibrary libacpi_ca.a : 179 tbutils.c 180; 181 182OPTIM = $(oldOPTIM) ; 183 184SEARCH on [ FGristFiles $(events_src) ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi events ] ; 185SEARCH on [ FGristFiles $(hardware_src) ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi hardware ] ; 186SEARCH on [ FGristFiles $(namespace_src) ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi namespace ] ; 187SEARCH on [ FGristFiles $(resources_src) ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi resources ] ; 188SEARCH on [ FGristFiles $(tables_src) tbutils.c ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi tables ] ; 189SEARCH on [ FGristFiles $(utilities_src) ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi utilities ] ; 190SEARCH on [ FGristFiles $(dispatcher_src) ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi dispatcher ] ; 191SEARCH on [ FGristFiles $(executer_src) ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi executer ] ; 192SEARCH on [ FGristFiles $(parser_src) ] = [ FDirName $(HAIKU_TOP) src add-ons kernel bus_managers acpi parser ] ; 193 194KernelAddon acpi : 195 oshaiku.c 196 acpi_busman.c 197 acpi_module.c 198 acpi_device.c 199 acpi_ns_dump.c 200 : 201 libacpi_ca.a 202 ; 203