initial commit
[freebsd-arm:freebsd-arm.git] / 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
10 CFLAGS+=        -I${.CURDIR}/../../../../lib/libstand/
11
12 # Pick up the bootstrap header for some interface items
13 CFLAGS+=        -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
14
15 CFLAGS+=        -ffreestanding
16 .if ${MACHINE_ARCH} == "powerpc"
17 CFLAGS+=        -msoft-float
18 .endif
19
20 .ifdef(BOOT_DISK_DEBUG)
21 # Make the disk code more talkative
22 CFLAGS+= -DDISK_DEBUG
23 .endif
24
25 machine:
26         ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
27
28 CLEANFILES+=    machine
29
30 .include <bsd.lib.mk>
31
32 beforedepend ${OBJS}: machine