From db322b47296d44b4ae905d43b061d931f3b34532 Mon Sep 17 00:00:00 2001 From: Per Fogelstrom Date: Fri, 6 Aug 2004 22:21:17 +0000 Subject: csu stuff for sgi et al --- lib/csu/mips64/Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lib/csu/mips64/Makefile (limited to 'lib/csu/mips64/Makefile') diff --git a/lib/csu/mips64/Makefile b/lib/csu/mips64/Makefile new file mode 100644 index 00000000000..7883801dfb1 --- /dev/null +++ b/lib/csu/mips64/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile,v 1.1 2004/08/06 22:21:16 pefo Exp $ + +#CFLAGS+= -DLIBC_SCCS -I${.CURDIR} -mips2 +CFLAGS+= -DLIBC_SCCS -I${.CURDIR} +OBJS= crt0.o gcrt0.o scrt0.o crtbegin.o crtend.o crtbeginS.o crtendS.o + +.PATH: ${.CURDIR}/../common_elf + +all: ${OBJS} + +crt0.o: crt0.c ${DEPS} + @echo "${CC} -DCRT0 -c ${.ALLSRC} -o ${.TARGET}" + @${CC} -DCRT0 -c ${.ALLSRC} -o ${.TARGET}.o + @${LD} -x -r ${.TARGET}.o -o ${.TARGET} + @rm -f ${.TARGET}.o + +gcrt0.o: crt0.c ${DEPS} + @echo "${CC} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}" + @${CC} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}.o + @${LD} -x -r ${.TARGET}.o -o ${.TARGET} + @rm -f ${.TARGET}.o + +scrt0.o: crt0.c ${DEPS} + @echo "${CC} -DSCRT0 -c ${.ALLSRC} -o ${.TARGET}" + @${CC} -DSCRT0 -c ${.ALLSRC} -o ${.TARGET}.o + @${LD} -x -r ${.TARGET}.o -o ${.TARGET} + @rm -f ${.TARGET}.o + +realinstall: + ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \ + ${DESTDIR}/usr/lib + +depend lint tags: + +.include -- cgit v1.2.3