]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/acpi/acpi/Makefile
This commit was generated by cvs2svn to compensate for changes in r157191,
[FreeBSD/FreeBSD.git] / sys / modules / acpi / acpi / Makefile
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
8
9 KMOD=   acpi
10 WARNS?= 2
11
12 # ACPI CA sources
13 CFLAGS+=   -I${.CURDIR}/../../../contrib/dev/acpica
14 SRCS+=  dsfield.c dsinit.c dsmethod.c dsmthdat.c
15 SRCS+=  dsobject.c dsopcode.c dsutils.c dswexec.c dswload.c
16 SRCS+=  dswscope.c dswstate.c evevent.c evgpe.c evgpeblk.c
17 SRCS+=  evmisc.c evregion.c evrgnini.c evsci.c evxface.c
18 SRCS+=  evxfevnt.c evxfregn.c exconfig.c exconvrt.c excreate.c
19 SRCS+=  exdump.c exfield.c exfldio.c exmisc.c exmutex.c
20 SRCS+=  exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c
21 SRCS+=  exprep.c exregion.c exresnte.c exresolv.c exresop.c
22 SRCS+=  exstore.c exstoren.c exstorob.c exsystem.c exutils.c
23 SRCS+=  hwacpi.c hwgpe.c hwregs.c hwsleep.c hwtimer.c
24 SRCS+=  nsaccess.c nsalloc.c nsdump.c nseval.c nsinit.c
25 SRCS+=  nsload.c nsnames.c nsobject.c nsparse.c nssearch.c
26 SRCS+=  nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c
27 SRCS+=  psargs.c psloop.c psopcode.c psparse.c psscope.c
28 SRCS+=  pstree.c psutils.c pswalk.c psxface.c
29 SRCS+=  rsaddr.c rscalc.c rscreate.c rsdump.c rsinfo.c rsio.c
30 SRCS+=  rsirq.c rslist.c rsmemory.c rsmisc.c rsutils.c
31 SRCS+=  rsxface.c tbconvrt.c tbget.c tbgetall.c tbinstal.c
32 SRCS+=  tbrsdt.c tbutils.c tbxface.c tbxfroot.c utalloc.c
33 SRCS+=  utcache.c utclib.c utcopy.c utdebug.c utdelete.c
34 SRCS+=  uteval.c utglobal.c utinit.c utmath.c utmisc.c
35 SRCS+=  utmutex.c utobject.c utstate.c utxface.c
36
37 # OSPM layer and core hardware drivers
38 SRCS+=  acpi.c acpi_button.c acpi_isab.c
39 SRCS+=  acpi_package.c acpi_pci.c acpi_pcib.c acpi_pcib_acpi.c
40 SRCS+=  acpi_pcib_pci.c acpi_powerres.c acpi_quirk.c acpi_resource.c
41 SRCS+=  acpi_timer.c acpi_pci_link.c acpi_thermal.c
42
43 # ACPI hardware drivers, mostly used for mobile systems.
44 SRCS+=  acpi_acad.c acpi_battery.c acpi_cmbat.c acpi_cpu.c
45 SRCS+=  acpi_ec.c acpi_hpet.c acpi_lid.c acpi_perf.c acpi_smbat.c
46 SRCS+=  acpi_throttle.c
47
48 # OSD layer
49 SRCS+=  OsdDebug.c 
50 SRCS+=  OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c
51 SRCS+=  OsdStream.c OsdSynch.c OsdTable.c OsdEnvironment.c 
52 SRCS+=  opt_acpi.h opt_bus.h opt_ddb.h
53 SRCS+=  acpi_if.h acpi_quirks.h bus_if.h cpufreq_if.h device_if.h
54 SRCS+=  isa_if.h pci_if.h pcib_if.h
55
56 # XXX ACPI should not depend on the following headers but this is currently
57 # needed for the build of assym.s.
58 # This obviously needs a better and more structural fix.
59 SRCS+=  opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h
60
61 # Debugging support
62 DBSRC=  dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
63 DBSRC+= dbinput.c dbstats.c dbutils.c dbxface.c
64 DBSRC+= dmbuffer.c dmnames.c dmopcode.c dmobject.c dmresrc.c dmresrcl.c
65 DBSRC+= dmresrcs.c dmutils.c dmwalk.c
66
67 CFLAGS+=-DACPI_USE_LOCAL_CACHE
68 .if !defined(KERNBUILDDIR)
69 .if ACPI_MAX_THREADS
70 CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
71 .endif
72 .if ACPI_NO_SEMAPHORES
73 CFLAGS+=-DACPI_NO_SEMAPHORES
74 .endif
75 .if ACPI_DEBUG
76 CFLAGS+=-DACPI_DEBUG
77 SRCS+=  ${DBSRC}
78 opt_ddb.h: Makefile
79         echo "#define DDB 1" > ${.TARGET}
80 .else
81 opt_ddb.h: Makefile
82         echo -n > ${.TARGET}
83 .endif
84 .endif
85
86 # Machine-specific code such as sleep/wakeup
87 SRCS+=  acpi_machdep.c acpi_wakecode.h acpi_wakeup.c
88 .if ${MACHINE} == "i386"
89 SRCS+=  madt.c assym.s
90 .endif
91 CLEANFILES+=    acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin ${DBSRC:.c=.o}
92
93 acpi_wakecode.h: acpi_wakecode.S assym.s
94         ${MAKE} -f ${.CURDIR}/../../../${MACHINE_ARCH}/acpica/Makefile \
95                 MAKESRCPATH=${.CURDIR}/../../../${MACHINE_ARCH}/acpica
96
97 .include <bsd.kmod.mk>