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
|
2001-09-04 15:46:32 +00:00
|
|
|
CFLAGS+= -I.
|
2001-07-20 06:07:34 +00:00
|
|
|
|
|
|
|
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>
|
|
|
|
|