# $FreeBSD: src/sys/modules/acpi/acpi/Makefile,v 1.3 2004/01/08 16:38:32 njl Exp $ # $DragonFly: src/sys/dev/acpica5/Makefile,v 1.2 2004/06/27 08:52:39 dillon Exp $ .include "Makefile.inc" .PATH: ${.CURDIR}/../../${MACHINE_ARCH}/acpica5 \ ${.CURDIR}/../../bus/pci \ ${.CURDIR}/Osd \ ${.CURDIR} \ ${.CURDIR}/../../${SYSACPICA}/interpreter/dispatcher \ ${.CURDIR}/../../${SYSACPICA}/interpreter/executer \ ${.CURDIR}/../../${SYSACPICA}/interpreter/parser \ ${.CURDIR}/../../${SYSACPICA}/events \ ${.CURDIR}/../../${SYSACPICA}/hardware \ ${.CURDIR}/../../${SYSACPICA}/namespace \ ${.CURDIR}/../../${SYSACPICA}/resources \ ${.CURDIR}/../../${SYSACPICA}/tables \ ${.CURDIR}/../../${SYSACPICA}/utilities \ KMOD = acpi # ACPI CA sources CFLAGS+= -I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../../${SYSACPICA}/include SRCS+= dsfield.c dsinit.c dsmethod.c dsmthdat.c SRCS+= dsobject.c dsopcode.c dsutils.c dswexec.c dswload.c SRCS+= dswscope.c dswstate.c evevent.c evgpe.c evgpeblk.c SRCS+= evmisc.c evregion.c evrgnini.c evsci.c evxface.c SRCS+= evxfevnt.c evxfregn.c exconfig.c exconvrt.c excreate.c SRCS+= exdump.c exfield.c exfldio.c exmisc.c exmutex.c SRCS+= exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c SRCS+= exprep.c exregion.c exresnte.c exresolv.c exresop.c SRCS+= exstore.c exstoren.c exstorob.c exsystem.c exutils.c SRCS+= hwacpi.c hwgpe.c hwregs.c hwsleep.c hwtimer.c SRCS+= nsaccess.c nsalloc.c nsdump.c nseval.c nsinit.c SRCS+= nsload.c nsnames.c nsobject.c nsparse.c nssearch.c SRCS+= nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c SRCS+= psargs.c psopcode.c psparse.c psscope.c SRCS+= pstree.c psutils.c pswalk.c psxface.c SRCS+= rsaddr.c rscalc.c rscreate.c rsdump.c rsio.c SRCS+= rsirq.c rslist.c rsmemory.c rsmisc.c rsutils.c SRCS+= rsxface.c tbconvrt.c tbget.c tbgetall.c tbinstal.c SRCS+= tbrsdt.c tbutils.c tbxface.c tbxfroot.c utalloc.c SRCS+= utclib.c utcopy.c utdebug.c utdelete.c uteval.c SRCS+= utglobal.c utinit.c utmath.c utmisc.c utobject.c SRCS+= utxface.c # OSD layer # SRCS+= acpi.c acpi_acad.c acpi_battery.c acpi_button.c acpi_cmbat.c acpi_cpu.c SRCS+= acpi_ec.c acpi_isab.c acpi_lid.c SRCS+= acpi_package.c acpi_pci.c acpi_pcib.c acpi_pcib_acpi.c SRCS+= acpi_pcib_pci.c acpi_powerres.c acpi_resource.c acpi_thermal.c SRCS+= acpi_timer.c acpi_pci_link.c SRCS+= OsdDebug.c SRCS+= OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c SRCS+= OsdStream.c OsdSynch.c OsdTable.c OsdEnvironment.c SRCS+= opt_acpi.h opt_bus.h opt_ddb.h SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h # Debugging support DBSRC= dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c DBSRC+= dbinput.c dbstats.c dbutils.c dbxface.c DBSRC+= dmbuffer.c dmnames.c dmopcode.c dmobject.c dmresrc.c dmresrcl.c DBSRC+= dmresrcs.c dmutils.c dmwalk.c .if ACPI_MAX_THREADS CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS} .endif .if ACPI_NO_SEMAPHORES CFLAGS+=-DACPI_NO_SEMAPHORES .endif .if ACPI_DEBUG CFLAGS+=-DACPI_DEBUG SRCS+= ${DBSRC} opt_ddb.h: Makefile echo "#define DDB 1" > ${.TARGET} .else opt_ddb.h: Makefile echo -n > ${.TARGET} .endif # Machine-specific code such as sleep/wakeup SRCS+= acpi_machdep.c acpi_wakecode.h acpi_wakeup.c #.if ${MACHINE} == "i386" #SRCS+= madt.c #.endif CLEANFILES+= acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin ${DBSRC} CLEANFILES+= platform/acenv.h acpi_wakecode.h: acpi_wakecode.S ${MAKE} -f ${.CURDIR}/../../${MACHINE_ARCH}/acpica5/Makefile \ MAKESRCPATH=${.CURDIR}/../../${MACHINE_ARCH}/acpica5 # acpi.h includes "platform/acenv.h". This is the easiest way to create # a modified acenv.h # ${.OBJDIR}/acpi.h: ${.CURDIR}/../../${SYSACPICA}/include/acpi.h cp ${.ALLSRC} ${.TARGET} ${.OBJDIR}/platform/acenv.h: ${.CURDIR}/../../${SYSACPICA}/include/platform/acenv.h if [ ! -d ${.OBJDIR}/platform ]; then mkdir ${.OBJDIR}/platform; fi cat ${.ALLSRC} | \ sed -e 's/__FreeBSD__/__DragonFly__/' | \ sed -e 's/acfreebsd.h/acdragonfly.h/' > ${.TARGET}.new mv -f ${.TARGET}.new ${.TARGET} SRCS+= ${.OBJDIR}/acpi.h ${.OBJDIR}/platform/acenv.h SUBDIR= acpi_toshiba all: ${PROG} ${SUBDIR} .include .include