Makefile.wakecode.inc revision 1.4
11.4Shans# $NetBSD: Makefile.wakecode.inc,v 1.4 2009/01/18 13:55:31 hans Exp $
21.2Sjmcneill# FreeBSD: src/sys/i386/acpica/Makefile,v 1.3 2002/05/01 21:54:07 peter Exp
31.2Sjmcneill
41.2SjmcneillACPI_WAKECODE_S=	${S}/arch/${MACHINE}/acpi/acpi_wakecode.S
51.2SjmcneillACPI_GENWAKECODE=	${S}/arch/x86/acpi/genwakecode.sh
61.4ShansACPI_GENCMD=		AWK=${TOOL_AWK:Q} \
71.4Shans			HEXDUMP=${TOOL_HEXDUMP:Q} \
81.4Shans			SED=${TOOL_SED:Q} \
91.4Shans			${HOST_SH}
101.2Sjmcneill
111.2Sjmcneillacpi_wakecode.h: ${ACPI_WAKECODE_S} ${ACPI_GENWAKECODE}
121.3Slukem	${_MKTARGET_CREATE}
131.2Sjmcneill	${CC} -I${.CURDIR} -c ${ACPI_WAKECODE_S}
141.2Sjmcneill	${LD} -M -Map acpi_wakecode.bin.map -z defs -nostdlib \
151.2Sjmcneill	    --oformat binary -e wakeup_16 -Ttext 0 \
161.2Sjmcneill	    -o acpi_wakecode.bin acpi_wakecode.o
171.4Shans	${ACPI_GENCMD} ${ACPI_GENWAKECODE} > acpi_wakecode.h
181.2Sjmcneill	rm -f acpi_wakecode.bin acpi_wakecode.o acpi_wakecode.bin.map
191.2Sjmcneill
201.2Sjmcneillacpi_wakeup.o acpi_wakeup.d: acpi_wakecode.h
21