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