Makefile.wakecode.inc revision 1.8
11.8Schristos# $NetBSD: Makefile.wakecode.inc,v 1.8 2011/09/15 12:32:30 christos 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.5SjoergAFLAGS.acpi_wakecode.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} -I${.CURDIR}
121.5Sjoerg
131.5Sjoerg
141.2Sjmcneillacpi_wakecode.h: ${ACPI_WAKECODE_S} ${ACPI_GENWAKECODE}
151.3Slukem	${_MKTARGET_CREATE}
161.5Sjoerg	${CC} ${AFLAGS.acpi_wakecode.S} -c ${ACPI_WAKECODE_S}
171.2Sjmcneill	${LD} -M -Map acpi_wakecode.bin.map -z defs -nostdlib \
181.2Sjmcneill	    --oformat binary -e wakeup_16 -Ttext 0 \
191.2Sjmcneill	    -o acpi_wakecode.bin acpi_wakecode.o
201.4Shans	${ACPI_GENCMD} ${ACPI_GENWAKECODE} > acpi_wakecode.h
211.2Sjmcneill	rm -f acpi_wakecode.bin acpi_wakecode.o acpi_wakecode.bin.map
221.2Sjmcneill
231.8Schristosacpi_wakeup.o acpi_wakeup.d: acpi_wakecode.h
24