Initial import from FreeBSD RELENG_4:
[games.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
3 LIB=            arc
4 INTERNALLIB=    true
5
6 .PATH:          ${.CURDIR}/arch/${MACHINE_ARCH}
7 # XXX hack to pick up stand.h
8 LIBSTANDDIR=    ${.CURDIR}/../../../../lib/libstand
9 CFLAGS+=        -I${LIBSTANDDIR}
10 CFLAGS+=        -DDEBUG
11
12 # Pick up the bootstrap header for some interface items
13 CFLAGS+=        -I${.CURDIR}/../../common -mno-fp-regs \
14                 -I${.CURDIR}/../../.. -I${.CURDIR}/../include
15
16 #CFLAGS+= -DDISK_DEBUG
17 #CPPFLAGS+= -DNO_DISKLABEL
18 #CPPFLAGS+= -DSAVE_MEMORY
19
20 SRCS=   delay.c time.c abort.c setjmperr.c copy.c devicename.c module.c \
21         arcconsole.c arcdisk.c elf_freebsd.c bootinfo.c
22
23 .if ${MACHINE_ARCH} == "alpha"
24 SRCS+=  rpb.c
25 .endif
26
27 CLEANFILES+= machine
28
29 machine:
30         ln -sf ${.CURDIR}/../../../alpha/include machine
31
32 .include <bsd.lib.mk>
33
34 beforedepend ${OBJS}: machine