529d1771c2a559b6e5767486357cb99fe00c9bf2
[dragonfly.git] / sys / boot / arc / lib / Makefile
1 # $FreeBSD: src/sys/boot/arc/lib/Makefile,v 1.4.2.1 2002/07/19 18:46:28 ru Exp $
2 # $DragonFly: src/sys/boot/arc/lib/Attic/Makefile,v 1.2 2003/06/17 04:28:16 dillon Exp $
3
4 LIB=            arc
5 INTERNALLIB=    true
6
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