summaryrefslogtreecommitdiffstats
path: root/sys/boot/arc/lib/Makefile
blob: 26336c4f81bf37eb5a9dd35fdab6f07591295904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $FreeBSD$

LIB=		arc
INTERNALLIB=

CFLAGS+=	-ffreestanding
.PATH:		${.CURDIR}/arch/${MACHINE_ARCH}
# XXX hack to pick up stand.h
LIBSTANDDIR=	${.CURDIR}/../../../../lib/libstand
CFLAGS+=	-I${LIBSTANDDIR}
CFLAGS+=	-DDEBUG

# Pick up the bootstrap header for some interface items
CFLAGS+=	-I${.CURDIR}/../../common -mno-fp-regs \
		-I${.CURDIR}/../../.. -I${.CURDIR}/../include

#CFLAGS+= -DDISK_DEBUG
#CPPFLAGS+= -DNO_DISKLABEL
#CPPFLAGS+= -DSAVE_MEMORY

SRCS=	delay.c time.c abort.c setjmperr.c copy.c devicename.c module.c \
	arcconsole.c arcdisk.c elf_freebsd.c bootinfo.c

.if ${MACHINE_ARCH} == "alpha"
SRCS+=	rpb.c
.endif

CLEANFILES+= machine

machine:
	ln -sf ${.CURDIR}/../../../alpha/include machine

.include <bsd.lib.mk>

beforedepend ${OBJS}: machine
OpenPOWER on IntegriCloud