Bring in the FreeBSD-5 ACPICA code as a module. Note: not hooked up yet,
[dragonfly.git] / sys / platform / pc32 / acpica5 / Makefile
1 # $FreeBSD: src/sys/i386/acpica/Makefile,v 1.3.6.1 2003/08/22 20:49:21 jhb Exp $
2 # $DragonFly: src/sys/platform/pc32/acpica5/Makefile,v 1.1 2004/02/21 06:48:05 dillon Exp $
3 #
4
5 # Correct path for kernel builds
6 # Don't rely on the kernel's .depend file
7 .ifdef MAKESRCPATH
8 .PATH: ${MAKESRCPATH}
9 DEPENDFILE=
10 .else
11 MAKESRCPATH= ${.CURDIR}
12 CLEANFILES= acpi_wakecode.h acpi_wakecode.bin acpi_wakecode.o
13 .endif
14 CFLAGS+=        -I.
15
16 all: acpi_wakecode.h
17
18 acpi_wakecode.o: acpi_wakecode.S
19
20 acpi_wakecode.bin: acpi_wakecode.o
21         objcopy -S -O binary acpi_wakecode.o acpi_wakecode.bin
22
23 acpi_wakecode.h: acpi_wakecode.bin acpi_wakecode.o
24         sh ${MAKESRCPATH}/genwakecode.sh > acpi_wakecode.h
25
26 .include <bsd.prog.mk>
27