diff options
Diffstat (limited to 'sys/i386/acpica/Makefile')
-rw-r--r-- | sys/i386/acpica/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/i386/acpica/Makefile b/sys/i386/acpica/Makefile new file mode 100644 index 0000000..28752928 --- /dev/null +++ b/sys/i386/acpica/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +# Correct path for kernel builds +# Don't rely on the kernel's .depend file +.ifdef MAKESRCPATH +.PATH: ${MAKESRCPATH} +DEPENDFILE= +.else +MAKESRCPATH= ${.CURDIR} +CLEANFILES= acpi_wakecode.h acpi_wakecode.bin acpi_wakecode.o +.endif + +all: acpi_wakecode.h + +acpi_wakecode.o: acpi_wakecode.S + +acpi_wakecode.bin: acpi_wakecode.o + objcopy -S -O binary acpi_wakecode.o acpi_wakecode.bin + +acpi_wakecode.h: acpi_wakecode.bin acpi_wakecode.o + perl ${MAKESRCPATH}/genwakecode.pl > acpi_wakecode.h + +.include <bsd.prog.mk> + |