1 # $NetBSD: Makefile.wakecode.inc,v 1.3 2007/12/11 13:56:50 lukem Exp $
2 # FreeBSD: src/sys/i386/acpica/Makefile,v 1.3 2002/05/01 21:54:07 peter Exp
4 ACPI_WAKECODE_S= ${S}/arch/${MACHINE}/acpi/acpi_wakecode.S
5 ACPI_GENWAKECODE= ${S}/arch/x86/acpi/genwakecode.sh
6 ACPI_GENCMD= AWK=${TOOL_AWK:Q} \
7 HEXDUMP=${TOOL_HEXDUMP:Q} \
11 acpi_wakecode.h: ${ACPI_WAKECODE_S} ${ACPI_GENWAKECODE}
13 ${CC} -I${.CURDIR} -c ${ACPI_WAKECODE_S}
14 ${LD} -M -Map acpi_wakecode.bin.map -z defs -nostdlib \
15 --oformat binary -e wakeup_16 -Ttext 0 \
16 -o acpi_wakecode.bin acpi_wakecode.o
17 ${ACPI_GENCMD} ${ACPI_GENWAKECODE} > acpi_wakecode.h
18 rm -f acpi_wakecode.bin acpi_wakecode.o acpi_wakecode.bin.map
20 acpi_wakeup.o acpi_wakeup.d: acpi_wakecode.h