Fully synchronize sys/boot from FreeBSD-5.x, but add / to the module path
[dragonfly.git] / sys / boot / arc / lib / Makefile
1 # $FreeBSD: src/sys/boot/arc/lib/Makefile,v 1.9 2002/05/13 10:53:24 ru Exp $
2 # $DragonFly: src/sys/boot/arc/lib/Attic/Makefile,v 1.3 2003/11/10 06:08:31 dillon Exp $
3
4 LIB=            arc
5 INTERNALLIB=    true
6
7 CFLAGS+=        -ffreestanding
8 .PATH:          ${.CURDIR}/arch/${MACHINE_ARCH}
9 # XXX hack to pick up stand.h
10 LIBSTANDDIR=    ${.CURDIR}/../../../../lib/libstand
11 CFLAGS+=        -I${LIBSTANDDIR}
12 CFLAGS+=        -DDEBUG
13
14 # Pick up the bootstrap header for some interface items
15 CFLAGS+=        -I${.CURDIR}/../../common -mno-fp-regs \
16                 -I${.CURDIR}/../../.. -I${.CURDIR}/../include
17
18 #CFLAGS+= -DDISK_DEBUG
19 #CPPFLAGS+= -DNO_DISKLABEL
20 #CPPFLAGS+= -DSAVE_MEMORY
21
22 SRCS=   delay.c time.c abort.c setjmperr.c copy.c devicename.c module.c \
23         arcconsole.c arcdisk.c elf_freebsd.c bootinfo.c
24
25 .if ${MACHINE_ARCH} == "alpha"
26 SRCS+=  rpb.c
27 .endif
28
29 CLEANFILES+= machine
30
31 machine:
32         ln -sf ${.CURDIR}/../../../alpha/include machine
33
34 .include <bsd.lib.mk>
35
36 beforedepend ${OBJS}: machine