Merge from vendor branch GDB:
[dragonfly.git] / sys / i386 / acpica5 / Makefile
1 # $FreeBSD: src/sys/i386/acpica/Makefile,v 1.6 2004/04/13 13:43:11 des Exp $
2 # $DragonFly: src/sys/i386/acpica5/Attic/Makefile,v 1.2 2004/06/27 08:52:45 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. -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