summaryrefslogtreecommitdiffstats
path: root/lib/csu/mips/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csu/mips/Makefile')
-rw-r--r--lib/csu/mips/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/csu/mips/Makefile b/lib/csu/mips/Makefile
new file mode 100644
index 0000000..23954e8
--- /dev/null
+++ b/lib/csu/mips/Makefile
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../common
+
+SRCS= crt1.c crti.S crtn.S
+OBJS= ${SRCS:N*.h:R:S/$/.o/g}
+OBJS+= gcrt1.o
+CFLAGS+= -Wall -Wno-unused \
+ -I${.CURDIR}/../common \
+ -I${.CURDIR}/../../libc/include
+
+all: ${OBJS}
+
+CLEANFILES= ${OBJS}
+
+gcrt1.o: crt1.c
+ ${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC}
+
+realinstall:
+ ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
+ ${OBJS} ${DESTDIR}${LIBDIR}
+
+.include <bsd.lib.mk>
OpenPOWER on IntegriCloud