summaryrefslogtreecommitdiffstats
path: root/sys/boot/arc/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/arc/lib/Makefile')
-rw-r--r--sys/boot/arc/lib/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/boot/arc/lib/Makefile b/sys/boot/arc/lib/Makefile
new file mode 100644
index 0000000..7944374
--- /dev/null
+++ b/sys/boot/arc/lib/Makefile
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+LIB= arc
+INTERNALLIB= true
+
+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