1 # $FreeBSD: releng/8.0/sys/amd64/acpica/Makefile 189903 2009-03-17 00:48:11Z jkim $
2
3 # Correct path for kernel builds
4 # Don't rely on the kernel's .depend file
5 .ifdef MAKESRCPATH
6 .PATH: ${MAKESRCPATH}
7 DEPENDFILE=
8 .else
9 MAKESRCPATH= ${.CURDIR}
10 CLEANFILES= acpi_wakecode.h acpi_wakedata.h acpi_wakecode.bin acpi_wakecode.o
11 .endif
12 .if ${CC} == "icc"
13 CFLAGS+= -restrict
14 NOSTDINC= -X
15 .else
16 NOSTDINC= -nostdinc
17 .endif
18 CFLAGS+= ${NOSTDINC} -include opt_global.h -I. -I${MAKESRCPATH}/../..
19
20 all: acpi_wakecode.h acpi_wakedata.h
21
22 acpi_wakecode.o: acpi_wakecode.S assym.s
23
24 acpi_wakecode.bin: acpi_wakecode.o
25 objcopy -S -O binary acpi_wakecode.o acpi_wakecode.bin
26
27 acpi_wakecode.h: acpi_wakecode.bin
28 sh ${MAKESRCPATH}/genwakecode.sh > acpi_wakecode.h
29
30 acpi_wakedata.h: acpi_wakecode.bin
31 sh ${MAKESRCPATH}/genwakedata.sh > acpi_wakedata.h
32
33 .include <bsd.prog.mk>
Cache object: 3344223a58296dda72ccd8bd0ea7901e
|