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