3 # Correct path for kernel builds
4 # Don't rely on the kernel's .depend file
9 MAKESRCPATH= ${.CURDIR}
10 CLEANFILES= acpi_wakecode.h acpi_wakedata.h acpi_wakecode.bin acpi_wakecode.o
18 CFLAGS+= ${NOSTDINC} -include opt_global.h -I. -I${MAKESRCPATH}/../..
20 all: acpi_wakecode.h acpi_wakedata.h
22 acpi_wakecode.o: acpi_wakecode.S assym.s
24 acpi_wakecode.bin: acpi_wakecode.o
25 objcopy -S -O binary acpi_wakecode.o acpi_wakecode.bin
27 acpi_wakecode.h: acpi_wakecode.bin
28 sh ${MAKESRCPATH}/genwakecode.sh > acpi_wakecode.h
30 acpi_wakedata.h: acpi_wakecode.bin
31 sh ${MAKESRCPATH}/genwakedata.sh > acpi_wakedata.h
33 .include <bsd.prog.mk>