mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-21 08:24:10 +01:00
242c1bb631
Submitted by: ru
25 lines
533 B
Makefile
25 lines
533 B
Makefile
# $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
|
|
CFLAGS+= -I. -I@
|
|
|
|
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
|
|
sh ${MAKESRCPATH}/genwakecode.sh > acpi_wakecode.h
|
|
|
|
.include <bsd.prog.mk>
|