]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - sys/boot/ofw/libofw/Makefile
MFC r362623:
[FreeBSD/stable/8.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_ARCH} == "powerpc"
19 CFLAGS+=        -msoft-float
20 .endif
21
22 .ifdef(BOOT_DISK_DEBUG)
23 # Make the disk code more talkative
24 CFLAGS+= -DDISK_DEBUG
25 .endif
26
27 machine:
28         ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
29
30 CLEANFILES+=    machine
31
32 .include <bsd.lib.mk>
33
34 beforedepend ${OBJS}: machine