Makefile revision 183198
1# $FreeBSD: head/sys/boot/ofw/libofw/Makefile 183198 2008-09-19 19:49:58Z sobomax $
2
3LIB=		ofw
4INTERNALLIB=
5
6SRCS=	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
10CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/
11
12# Pick up the bootstrap header for some interface items
13CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
14
15CFLAGS+=	-ffreestanding
16.if ${MACHINE_ARCH} == "powerpc"
17CFLAGS+=	-msoft-float
18.endif
19
20.ifdef(BOOT_DISK_DEBUG)
21# Make the disk code more talkative
22CFLAGS+= -DDISK_DEBUG
23.endif
24
25machine:
26	ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
27
28CLEANFILES+=	machine
29
30.include <bsd.lib.mk>
31
32beforedepend ${OBJS}: machine
33