Makefile revision 96513
1# $FreeBSD: head/sys/boot/ofw/libofw/Makefile 96513 2002-05-13 11:09:07Z ru $
2
3LIB=		ofw
4INTERNALLIB=	true
5
6SRCS=	devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_devsearch.c \
7	ofw_disk.c 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