]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - sys/amd64/acpica/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / sys / amd64 / acpica / Makefile
1 # $FreeBSD$
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>