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