kernel: Move sys/dev/acpica5 to sys/dev/acpica.
[dragonfly.git] / sys / platform / pc64 / acpica / Makefile
1 # $FreeBSD: src/sys/i386/acpica/Makefile,v 1.6 2004/04/13 13:43:11 des Exp $
2 #
3
4 # Correct path for kernel builds
5 # Don't rely on the kernel's .depend file
6 .ifdef MAKESRCPATH
7 .PATH: ${MAKESRCPATH}
8 DEPENDFILE=
9 .else
10 MAKESRCPATH= ${.CURDIR}
11 CLEANFILES= acpi_wakecode.h acpi_wakecode.bin acpi_wakecode.o
12 .endif
13 CFLAGS+=        -I. -I@
14
15 all: acpi_wakecode.h
16
17 acpi_wakecode.o: acpi_wakecode.S
18
19 acpi_wakecode.bin: acpi_wakecode.o
20         objcopy -S -O binary acpi_wakecode.o acpi_wakecode.bin
21
22 acpi_wakecode.h: acpi_wakecode.bin acpi_wakecode.o
23         sh ${MAKESRCPATH}/genwakecode.sh > acpi_wakecode.h
24
25 .include <bsd.prog.mk>