]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/boot/ofw/libofw/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / boot / ofw / libofw / Makefile
1 # $FreeBSD$
2
3 LIB=            ofw
4 INTERNALLIB=
5
6 SRCS=   devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_disk.c \
7         ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \
8         ofw_time.c openfirm.c
9 .PATH:  ${.CURDIR}/../../zfs
10 SRCS+=  devicename_stubs.c
11
12 CFLAGS+=        -I${.CURDIR}/../../../../lib/libstand/
13
14 # Pick up the bootstrap header for some interface items
15 CFLAGS+=        -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
16
17 CFLAGS+=        -ffreestanding
18 .if ${MACHINE_CPUARCH} == "powerpc"
19 CFLAGS+=        -msoft-float
20 SRCS+=          ppc64_elf_freebsd.c
21 .endif
22
23 .ifdef(BOOT_DISK_DEBUG)
24 # Make the disk code more talkative
25 CFLAGS+= -DDISK_DEBUG
26 .endif
27
28 machine:
29         ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine
30
31 CLEANFILES+=    machine
32
33 .include <bsd.lib.mk>
34
35 beforedepend ${OBJS}: machine