Makefile revision 88420
1139790Simp# $FreeBSD: head/sys/modules/acpi/Makefile 88420 2001-12-22 16:05:41Z iwasaki $
21543Srgrimes
31543Srgrimes.PATH: ${.CURDIR}/../../contrib/dev/acpica \
41543Srgrimes       ${.CURDIR}/../../pci \
51543Srgrimes       ${.CURDIR}/../../dev/acpica \
61543Srgrimes       ${.CURDIR}/../../dev/acpica/Osd \
71543Srgrimes       ${.CURDIR}/../../${MACHINE_ARCH}/acpica
81543Srgrimes
91543SrgrimesKMOD=	acpi
101543Srgrimes
111543Srgrimes# ACPI CA sources
121543SrgrimesCFLAGS+=   -I${.CURDIR}/../../contrib/dev/acpica
131543SrgrimesSRCS+=	dsfield.c dsmethod.c dsmthdat.c dsobject.c dsopcode.c dsutils.c
141543SrgrimesSRCS+=	dswexec.c dswload.c dswscope.c dswstate.c evevent.c evmisc.c evregion.c
151543SrgrimesSRCS+=	evrgnini.c evsci.c evxface.c evxfevnt.c evxfregn.c exconfig.c exconvrt.c
161543SrgrimesSRCS+=	excreate.c exdump.c exfield.c exfldio.c exmisc.c exmutex.c exnames.c
171543SrgrimesSRCS+=	exoparg1.c exoparg2.c exoparg3.c exoparg6.c exprep.c exregion.c
181543SrgrimesSRCS+=	exresnte.c exresolv.c exresop.c
191543SrgrimesSRCS+=	exstore.c exstoren.c exstorob.c exsystem.c exutils.c hwacpi.c
201543SrgrimesSRCS+=	hwgpe.c hwregs.c hwsleep.c hwtimer.c nsaccess.c nsalloc.c nsdump.c
211543SrgrimesSRCS+=	nseval.c nsinit.c nsload.c nsnames.c nsobject.c nssearch.c nsutils.c
221543SrgrimesSRCS+=	nswalk.c nsxfname.c nsxfobj.c psargs.c psfind.c psopcode.c psparse.c
231543SrgrimesSRCS+=	psscope.c pstree.c psutils.c pswalk.c psxface.c rsaddr.c rscalc.c
241543SrgrimesSRCS+=  rscreate.c rsdump.c rsio.c rsirq.c rslist.c rsmemory.c rsmisc.c
251543SrgrimesSRCS+=  rsutils.c rsxface.c tbconvrt.c tbget.c tbinstal.c tbutils.c tbxface.c
261543SrgrimesSRCS+=	tbxfroot.c utalloc.c utclib.c utcopy.c utdebug.c utdelete.c uteval.c
271543SrgrimesSRCS+=	utglobal.c utinit.c utmath.c utmisc.c utobject.c utxface.c
281543Srgrimes
291543Srgrimes# OSD layer
3050477SpeterSRCS+=	acpi.c acpi_acad.c acpi_battery.c acpi_button.c acpi_cmbat.c acpi_cpu.c
311543SrgrimesSRCS+=	acpi_ec.c acpi_lid.c acpi_pcib.c acpi_powerprofile.c
321543SrgrimesSRCS+=	acpi_powerres.c acpi_resource.c acpi_thermal.c acpi_timer.c
3313107SbdeSRCS+=	acpica_support.c
3413107SbdeSRCS+=  OsdDebug.c 
352166SpaulSRCS+=	OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c
36143063SjoergSRCS+=	OsdStream.c OsdSynch.c OsdEnvironment.c 
37143063SjoergSRCS+=	opt_acpi.h opt_ddb.h
38143063SjoergSRCS+=	device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h
39143063Sjoerg.if ACPI_NO_SEMAPHORES
4055205SpeterCFLAGS+=-DACPI_NO_SEMAPHORES
4137542Sbde.endif
4213157Sbde.if ACPI_MAX_THREADS
4322639SbdeCFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
4422639Sbde.endif
4522639Sbde
4622639Sbde# Debugging support
4722639Sbde.if ACPI_DEBUG
4822639SbdeCFLAGS+=-DACPI_DEBUG
4913157SbdeSRCS+=	dbcmds.c dbdisasm.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
5013157SbdeSRCS+=	dbinput.c dbstats.c dbutils.c dbxface.c
5113157Sbdeopt_ddb.h: Makefile
5213157Sbde	echo '#define DDB 1'  >opt_ddb.h
5313157Sbde.else
5413157Sbdeopt_ddb.h: Makefile
551543Srgrimes	echo ''  >opt_ddb.h
5617879Sbde.endif
5717879Sbde
5817879Sbde# Machine-specific code such as sleep/wakeup
5917879SbdeSRCS+=	acpi_machdep.c acpi_wakecode.h acpi_wakeup.c
60143063SjoergCLEANFILES+=	acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin
61129498Sbde
62129498Sbdeacpi_wakecode.h: acpi_wakecode.S
63129498Sbde	${MAKE} -f ${.CURDIR}/../../${MACHINE_ARCH}/acpica/Makefile \
64163729Sbde		MAKESRCPATH=${.CURDIR}/../../${MACHINE_ARCH}/acpica
65129498Sbde
66129498Sbde.include <bsd.kmod.mk>
67129498Sbde