]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/boot/arc/lib/Makefile
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / sys / boot / arc / lib / Makefile
1 # $FreeBSD$
2
3 LIB=            arc
4 INTERNALLIB=
5
6 CFLAGS+=        -ffreestanding
7 .PATH:          ${.CURDIR}/arch/${MACHINE_ARCH}
8 # XXX hack to pick up stand.h
9 LIBSTANDDIR=    ${.CURDIR}/../../../../lib/libstand
10 CFLAGS+=        -I${LIBSTANDDIR}
11 CFLAGS+=        -DDEBUG
12
13 # Pick up the bootstrap header for some interface items
14 CFLAGS+=        -I${.CURDIR}/../../common -mno-fp-regs \
15                 -I${.CURDIR}/../../.. -I${.CURDIR}/../include
16
17 #CFLAGS+= -DDISK_DEBUG
18 #CPPFLAGS+= -DNO_DISKLABEL
19 #CPPFLAGS+= -DSAVE_MEMORY
20
21 SRCS=   delay.c time.c abort.c setjmperr.c copy.c devicename.c module.c \
22         arcconsole.c arcdisk.c elf_freebsd.c bootinfo.c
23
24 .if ${MACHINE_ARCH} == "alpha"
25 SRCS+=  rpb.c
26 .endif
27
28 CLEANFILES+= machine
29
30 machine:
31         ln -sf ${.CURDIR}/../../../alpha/include machine
32
33 .include <bsd.lib.mk>
34
35 beforedepend ${OBJS}: machine