1 # $FreeBSD: src/sys/modules/acpi/acpi/Makefile,v 1.3 2004/01/08 16:38:32 njl Exp $
3 SYSDIR?
= ${.CURDIR
}/..
/..
4 .if ACPI_DEBUG_LOCKS || ACPI_DEBUG_MEMMAP || ACPI_DEBUG_CACHE
5 KCFLAGS
+= -I
${.OBJDIR
}/include
7 KCFLAGS
+= -DACPI_DEBUG_LOCKS
10 KCFLAGS
+= -DACPI_DEBUG_MEMMAP
13 KCFLAGS
+= -DACPI_DEBUG_CACHE
17 .
include "Makefile.inc"
21 ${SYSDIR}/${OSACPI_MD_DIR} \
22 ${SYSDIR}/platform
/${MACHINE_PLATFORM}/isa \
31 SRCS
+= ahids.c ahuuids.c
32 SRCS
+= dbcmds.c dbconvert.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
33 SRCS
+= dbinput.c dbmethod.c dbnames.c dbobject.c
34 SRCS
+= dbstats.c dbtest.c dbutils.c dbxface.c
35 SRCS
+= dmbuffer.c dmcstyle.c dmdeferred.c dmnames.c dmopcode.c
36 SRCS
+= dmresrc.c dmresrcl.c dmresrcl2.c dmresrcs.c dmutils.c dmwalk.c
37 SRCS
+= dsdebug.c dsfield.c dsinit.c dsmethod.c dsmthdat.c
38 SRCS
+= dsobject.c dsopcode.c dspkginit.c dsutils.c dswexec.c dswload.c
39 SRCS
+= dswscope.c dswstate.c dsargs.c dscontrol.c dswload2.c
40 SRCS
+= evevent.c evglock.c evgpe.c evgpeblk.c evgpeinit.c evgpeutil.c
41 SRCS
+= evhandler.c evmisc.c evregion.c evrgnini.c evsci.c evxface.c evxfgpe.c
42 SRCS
+= evxfevnt.c evxfregn.c
43 SRCS
+= exconcat.c exconfig.c exconvrt.c excreate.c
44 SRCS
+= exdump.c exfield.c exfldio.c exmisc.c exmutex.c
45 SRCS
+= exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c
46 SRCS
+= exprep.c exregion.c exresnte.c exresolv.c exresop.c
47 SRCS
+= exstore.c exstoren.c exstorob.c exsystem.c
48 SRCS
+= extrace.c exutils.c exdebug.c
49 SRCS
+= hwacpi.c hwesleep.c hwgpe.c hwregs.c hwsleep.c
50 SRCS
+= hwtimer.c hwvalid.c hwxface.c hwpci.c hwxfsleep.c
51 SRCS
+= nsarguments.c nsaccess.c nsalloc.c nsconvert.c nsdump.c nseval.c
52 SRCS
+= nsinit.c nsload.c nsnames.c nsobject.c nsparse.c nspredef.c nsprepkg.c
53 SRCS
+= nsrepair.c nsrepair2.c nssearch.c
54 SRCS
+= nsutils.c nswalk.c nsxfeval.c nsxfname.c nsxfobj.c
55 SRCS
+= psargs.c psloop.c psobject.c psopcode.c psopinfo.c psparse.c psscope.c
56 SRCS
+= pstree.c psutils.c pswalk.c psxface.c
57 SRCS
+= rsaddr.c rscalc.c rscreate.c rsdump.c rsdumpinfo.c rsinfo.c rsio.c
58 SRCS
+= rsirq.c rslist.c rsmemory.c rsmisc.c rsserial.c rsutils.c
59 SRCS
+= rsxface.c tbdata.c tbfadt.c tbfind.c tbinstal.c tbprint.c
60 SRCS
+= tbutils.c tbxface.c tbxfload.c tbxfroot.c
61 SRCS
+= utalloc.c utascii.c utbuffer.c utaddress.c utcopy.c
62 SRCS
+= utdebug.c utdecode.c utdelete.c uterror.c uteval.c utexcep.c
63 SRCS
+= utglobal.c uthex.c utids.c utinit.c utlock.c
64 SRCS
+= utmath.c utmisc.c utmutex.c utnonansi.c
65 SRCS
+= utobject.c utosi.c utownerid.c utpredef.c
66 SRCS
+= utresrc.c utresdecode.c utstate.c utstring.c utstrsuppt.c utstrtoul64.c
67 SRCS
+= utuuid.c utxface.c utxferror.c utxfinit.c
71 SRCS
+= acpi.c acpi_acad.c acpi_battery.c acpi_button.c acpi_cmbat.c
72 SRCS
+= acpi_cpu.c acpi_cpu_cstate.c acpi_cpu_pstate.c acpi_smbat.c
73 SRCS
+= acpi_ec.c acpi_isab.c acpi_lid.c
75 SRCS
+= acpi_pci.c acpi_pcib.c acpi_pcib_acpi.c acpi_pcib_pci.c
76 SRCS
+= acpi_pci_link.c
77 SRCS
+= acpi_powerres.c acpi_quirk.c acpi_resource.c acpi_thermal.c
78 SRCS
+= acpi_timer.c acpi_hpet.c acpi_if.c acpi_wmi_if.c
79 SRCS
+= OsdCache.c OsdDebug.c
80 SRCS
+= OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c
81 SRCS
+= OsdStream.c OsdSynch.c OsdTable.c OsdEnvironment.c
82 SRCS
+= opt_acpi.h opt_ddb.h opt_ktr.h
83 SRCS
+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h acpi_if.h
84 SRCS
+= acpi_quirks.h acpi_wmi_if.h cpu_if.h
86 .if
!defined
(BUILDING_WITH_KERNEL
)
87 .if ACPI_NO_SEMAPHORES
88 KCFLAGS
+=-DACPI_NO_SEMAPHORES
93 echo
"#define DDB 1" > ${.TARGET
}
100 # Machine-specific code for P-State
101 SRCS
+= acpi_pstate_machdep.c
102 # Machine-specific code for C-State
103 SRCS
+= acpi_cstate_machdep.c
104 # Machine-specific code for CPU
105 SRCS
+= acpi_cpu_machdep.c
106 # Machine-specific code such as sleep/wakeup
107 SRCS
+= acpi_machdep.c acpi_wakeup.c
108 .if
${MACHINE_ARCH} == "x86_64"
111 #SRCS+= acpi_wakecode.h
112 #CLEANFILES+= acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin
114 #acpi_wakecode.h: acpi_wakecode.bin
115 # file2c -sx 'static char wakecode[] = {' '};' < acpi_wakecode.bin > ${.TARGET}
116 #acpi_wakecode.bin: acpi_wakecode.o
117 # objcopy -S -O binary acpi_wakecode.o ${.TARGET}
119 #acpi_wakecode.o: acpi_wakecode.S
121 SUBDIR
= acpi_asus acpi_dock acpi_fujitsu acpi_hp acpi_panasonic acpi_pvpanic
122 SUBDIR
+=acpi_sony acpi_thinkpad acpi_toshiba acpi_video acpi_wmi aibs
124 # Empty for concurrent build
128 .
include <bsd.kmod.mk
>