Makefile revision 102483
155682Smarkm# $FreeBSD: head/sys/modules/acpi/Makefile 102483 2002-08-27 13:39:31Z bde $ 2233294Sstas 3233294Sstas.PATH: ${.CURDIR}/../../contrib/dev/acpica \ 4233294Sstas ${.CURDIR}/../../pci \ 555682Smarkm ${.CURDIR}/../../dev/acpica \ 6233294Sstas ${.CURDIR}/../../dev/acpica/Osd \ 7233294Sstas ${.CURDIR}/../../${MACHINE_ARCH}/acpica 8233294Sstas 955682SmarkmKMOD= acpi 10233294Sstas 11233294Sstas# ACPI CA sources 1255682SmarkmCFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica 13233294SstasSRCS+= dsfield.c dsmethod.c dsmthdat.c dsobject.c dsopcode.c 14233294SstasSRCS+= dsutils.c dswexec.c dswload.c dswscope.c dswstate.c 15233294SstasSRCS+= evevent.c evmisc.c evregion.c evrgnini.c evsci.c 1655682SmarkmSRCS+= evxface.c evxfevnt.c evxfregn.c 17233294SstasSRCS+= exconfig.c exconvrt.c excreate.c exdump.c exfield.c 18233294SstasSRCS+= exfldio.c exmisc.c exmutex.c exnames.c exoparg1.c 19233294SstasSRCS+= exoparg2.c exoparg3.c exoparg6.c exprep.c exregion.c 2055682SmarkmSRCS+= exresnte.c exresolv.c exresop.c exstore.c exstoren.c 21233294SstasSRCS+= exstorob.c exsystem.c exutils.c 22233294SstasSRCS+= hwacpi.c hwgpe.c hwregs.c hwsleep.c hwtimer.c 23233294SstasSRCS+= nsaccess.c nsalloc.c nsdump.c nseval.c nsinit.c 24233294SstasSRCS+= nsload.c nsnames.c nsobject.c nssearch.c nsutils.c 25233294SstasSRCS+= nswalk.c nsxfeval.c nsxfname.c nsxfobj.c 26233294SstasSRCS+= psargs.c psfind.c psopcode.c psparse.c psscope.c 27233294SstasSRCS+= pstree.c psutils.c pswalk.c psxface.c 28233294SstasSRCS+= rsaddr.c rscalc.c rscreate.c rsdump.c rsio.c 29233294SstasSRCS+= rsirq.c rslist.c rsmemory.c rsmisc.c rsutils.c 30233294SstasSRCS+= rsxface.c 31233294SstasSRCS+= tbconvrt.c tbget.c tbgetall.c tbinstal.c tbrsdt.c 3255682SmarkmSRCS+= tbutils.c tbxface.c tbxfroot.c 3355682SmarkmSRCS+= utalloc.c utclib.c utcopy.c utdebug.c utdelete.c 3455682SmarkmSRCS+= uteval.c utglobal.c utinit.c utmath.c utmisc.c 35120945SnectarSRCS+= utobject.c utxface.c 36120945Snectar 37233294Sstas# OSD layer 3855682SmarkmSRCS+= acpi.c acpi_acad.c acpi_battery.c acpi_button.c acpi_cmbat.c acpi_cpu.c 39178825SdfrSRCS+= acpi_ec.c acpi_lid.c acpi_pci.c acpi_pcib.c acpi_pcib_acpi.c 40178825SdfrSRCS+= acpi_pcib_pci.c acpi_powerres.c acpi_resource.c acpi_thermal.c 41178825SdfrSRCS+= acpi_timer.c acpica_support.c 4255682SmarkmSRCS+= OsdDebug.c 4355682SmarkmSRCS+= OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c 44178825SdfrSRCS+= OsdStream.c OsdSynch.c OsdTable.c OsdEnvironment.c 45178825SdfrSRCS+= opt_acpi.h opt_bus.h opt_ddb.h 46178825SdfrSRCS+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h 47178825Sdfr.if ACPI_NO_SEMAPHORES 48178825SdfrCFLAGS+=-DACPI_NO_SEMAPHORES 49178825Sdfr.endif 50178825Sdfr.if ACPI_MAX_THREADS 51178825SdfrCFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS} 52178825Sdfr.endif 5355682Smarkm 5455682Smarkm# Debugging support 55233294Sstas.if ACPI_DEBUG 56233294SstasCFLAGS+=-DACPI_DEBUG 5755682SmarkmSRCS+= dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c 5855682SmarkmSRCS+= dbinput.c dbstats.c dbutils.c dbxface.c 59233294SstasSRCS+= dmbuffer.c dmnames.c dmopcode.c dmresrc.c dmresrcl.c 6055682SmarkmSRCS+= dmresrcs.c dmutils.c dmwalk.c 61233294Sstasopt_ddb.h: Makefile 62233294Sstas echo '#define DDB 1' > ${.TARGET} 63233294Sstas.else 64233294Sstasopt_ddb.h: Makefile 6555682Smarkm echo -n > ${.TARGET} 6690926Snectar.endif 67178825Sdfr 68178825Sdfr# Machine-specific code such as sleep/wakeup 69178825SdfrSRCS+= acpi_machdep.c acpi_wakecode.h acpi_wakeup.c 70178825SdfrCLEANFILES+= acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin 71178825Sdfr 72178825Sdfracpi_wakecode.h: acpi_wakecode.S 73178825Sdfr ${MAKE} -f ${.CURDIR}/../../${MACHINE_ARCH}/acpica/Makefile \ 74178825Sdfr MAKESRCPATH=${.CURDIR}/../../${MACHINE_ARCH}/acpica 75178825Sdfr 76178825Sdfr.include <bsd.kmod.mk> 77178825Sdfr