Makefile (b75d244710ac3acdc0d91b7d7d3ceee2c5fa2a5f) Makefile (d571e11b4fcfcdf3a11ee4631f3fe0f59cfad5b5)
1# $FreeBSD$
2
1# $FreeBSD$
2
3.PATH: ${.CURDIR}/../../contrib/dev/acpica \
4 ${.CURDIR}/../../pci \
5 ${.CURDIR}/../../dev/acpica \
6 ${.CURDIR}/../../dev/acpica/Osd \
7 ${.CURDIR}/../../${MACHINE_ARCH}/acpica
3SUBDIR= acpi
8
4
9KMOD= acpi
10
11# ACPI CA sources
12CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica
13SRCS+= dsfield.c dsinit.c dsmethod.c dsmthdat.c
14SRCS+= dsobject.c dsopcode.c dsutils.c dswexec.c dswload.c
15SRCS+= dswscope.c dswstate.c evevent.c evgpe.c evgpeblk.c
16SRCS+= evmisc.c evregion.c evrgnini.c evsci.c evxface.c
17SRCS+= evxfevnt.c evxfregn.c exconfig.c exconvrt.c excreate.c
18SRCS+= exdump.c exfield.c exfldio.c exmisc.c exmutex.c
19SRCS+= exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c
20SRCS+= exprep.c exregion.c exresnte.c exresolv.c exresop.c
21SRCS+= exstore.c exstoren.c exstorob.c exsystem.c exutils.c
22SRCS+= hwacpi.c hwgpe.c hwregs.c hwsleep.c hwtimer.c
23SRCS+= nsaccess.c nsalloc.c nsdump.c nseval.c nsinit.c
24SRCS+= nsload.c nsnames.c nsobject.c nsparse.c nssearch.c
25SRCS+= nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c
26SRCS+= psargs.c psopcode.c psparse.c psscope.c
27SRCS+= pstree.c psutils.c pswalk.c psxface.c
28SRCS+= rsaddr.c rscalc.c rscreate.c rsdump.c rsio.c
29SRCS+= rsirq.c rslist.c rsmemory.c rsmisc.c rsutils.c
30SRCS+= rsxface.c tbconvrt.c tbget.c tbgetall.c tbinstal.c
31SRCS+= tbrsdt.c tbutils.c tbxface.c tbxfroot.c utalloc.c
32SRCS+= utclib.c utcopy.c utdebug.c utdelete.c uteval.c
33SRCS+= utglobal.c utinit.c utmath.c utmisc.c utobject.c
34SRCS+= utxface.c
35
36# OSD layer
37SRCS+= acpi.c acpi_acad.c acpi_battery.c acpi_button.c acpi_cmbat.c acpi_cpu.c
38SRCS+= acpi_ec.c acpi_isab.c acpi_lid.c
39SRCS+= acpi_package.c acpi_pci.c acpi_pcib.c acpi_pcib_acpi.c
40SRCS+= acpi_pcib_pci.c acpi_powerres.c acpi_resource.c acpi_thermal.c
41SRCS+= acpi_timer.c acpi_pci_link.c
42SRCS+= OsdDebug.c
43SRCS+= OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c
44SRCS+= OsdStream.c OsdSynch.c OsdTable.c OsdEnvironment.c
45SRCS+= opt_acpi.h opt_bus.h opt_ddb.h
46SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h
47.if ACPI_MAX_THREADS
48CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
49.endif
50.if ACPI_NO_SEMAPHORES
51CFLAGS+=-DACPI_NO_SEMAPHORES
52.endif
53
54# Debugging support
55.if ACPI_DEBUG
56CFLAGS+=-DACPI_DEBUG
57SRCS+= dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
58SRCS+= dbinput.c dbstats.c dbutils.c dbxface.c
59SRCS+= dmbuffer.c dmnames.c dmopcode.c dmobject.c dmresrc.c dmresrcl.c
60SRCS+= dmresrcs.c dmutils.c dmwalk.c
61opt_ddb.h: Makefile
62 echo '#define DDB 1' > ${.TARGET}
63.else
64opt_ddb.h: Makefile
65 echo -n > ${.TARGET}
66.endif
67
68# Machine-specific code such as sleep/wakeup
69SRCS+= acpi_machdep.c acpi_wakecode.h acpi_wakeup.c
70.if ${MACHINE} == "i386"
71SRCS+= madt.c
72.endif
73CLEANFILES+= acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin
74
75acpi_wakecode.h: acpi_wakecode.S
76 ${MAKE} -f ${.CURDIR}/../../${MACHINE_ARCH}/acpica/Makefile \
77 MAKESRCPATH=${.CURDIR}/../../${MACHINE_ARCH}/acpica
78
79.include <bsd.kmod.mk>
5.include <bsd.subdir.mk>