2001-07-20 06:07:34 +00:00
|
|
|
# $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
|
2006-09-06 14:23:40 +00:00
|
|
|
.if ${CC} == "icc"
|
|
|
|
CFLAGS+= -restrict
|
|
|
|
NOSTDINC= -X
|
|
|
|
.else
|
|
|
|
NOSTDINC= -nostdinc
|
|
|
|
.endif
|
|
|
|
CFLAGS+= ${NOSTDINC} -I. -I${MAKESRCPATH}/../..
|
2001-07-20 06:07:34 +00:00
|
|
|
|
|
|
|
all: acpi_wakecode.h
|
|
|
|
|
2006-10-19 05:55:09 +00:00
|
|
|
acpi_wakecode.o: acpi_wakecode.S assym.s
|
2001-07-20 06:07:34 +00:00
|
|
|
|
|
|
|
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
|
2002-05-01 21:54:07 +00:00
|
|
|
sh ${MAKESRCPATH}/genwakecode.sh > acpi_wakecode.h
|
2001-07-20 06:07:34 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|