1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1999-07-28 20:28:47 +00:00
|
|
|
|
|
|
|
LIB= arc
|
|
|
|
INTERNALLIB= true
|
|
|
|
|
2002-05-10 09:26:35 +00:00
|
|
|
CFLAGS+= -ffreestanding
|
1999-11-14 13:54:44 +00:00
|
|
|
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
|
1999-07-28 20:28:47 +00:00
|
|
|
# XXX hack to pick up stand.h
|
|
|
|
LIBSTANDDIR= ${.CURDIR}/../../../../lib/libstand
|
2001-08-31 11:01:20 +00:00
|
|
|
CFLAGS+= -I${LIBSTANDDIR}
|
1999-07-28 20:28:47 +00:00
|
|
|
CFLAGS+= -DDEBUG
|
|
|
|
|
|
|
|
# Pick up the bootstrap header for some interface items
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../common -mno-fp-regs \
|
1999-08-02 19:16:42 +00:00
|
|
|
-I${.CURDIR}/../../.. -I${.CURDIR}/../include
|
1999-07-28 20:28:47 +00:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
1999-11-14 13:54:44 +00:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
1999-07-28 20:28:47 +00:00
|
|
|
SRCS+= rpb.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CLEANFILES+= machine
|
|
|
|
|
|
|
|
machine:
|
|
|
|
ln -sf ${.CURDIR}/../../../alpha/include machine
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
beforedepend ${OBJS}: machine
|