diff options
Diffstat (limited to 'lib/csu/sparc64/Makefile')
-rw-r--r-- | lib/csu/sparc64/Makefile | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/lib/csu/sparc64/Makefile b/lib/csu/sparc64/Makefile index e63640416b8..e7d297e3013 100644 --- a/lib/csu/sparc64/Makefile +++ b/lib/csu/sparc64/Makefile @@ -1,8 +1,11 @@ -# $OpenBSD: Makefile,v 1.3 2004/01/08 14:59:15 drahn Exp $ +# $OpenBSD: Makefile,v 1.4 2008/06/25 02:47:59 kurt Exp $ # $NetBSD: Makefile,v 1.6 1996/10/18 05:27:38 thorpej Exp $ CFLAGS+= -DLIBC_SCCS -DELFSIZE=64 -OBJS= crt0.o gcrt0.o crtbegin.o crtend.o crtbeginS.o crtendS.o +OBJS= crt0.o pcrt0.o gcrt0.o +OBJS+= crtbegin.o crtend.o +OBJS+= crtbeginP.o crtendP.o +OBJS+= crtbeginS.o crtendS.o SRCS= crt0.c crtbegin.c crtbeginS.c crtend.c crtendS.c ELFDIR= ${.CURDIR}/../common_elf @@ -19,6 +22,12 @@ crt0.o: crt0.c @${LD} -x -r -o ${.TARGET} ${.TARGET}.o @rm -f ${.TARGET}.o +pcrt0.o: crt0.c + @echo ${COMPILE.c} ${PICFLAG} -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET} + @${COMPILE.c} ${PICFLAG} -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + gcrt0.o: crt0.c @echo ${COMPILE.c} -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET} @${COMPILE.c} -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}.o @@ -31,6 +40,12 @@ crtbegin.o: crtbegin.c @${LD} -x -r -o ${.TARGET} ${.TARGET}.o @rm -f ${.TARGET}.o +crtbeginP.o: crtbegin.c + @echo ${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtbegin.c -o ${.TARGET} + @${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtbegin.c -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + crtbeginS.o: crtbeginS.c @echo ${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtbeginS.c -o ${.TARGET} @${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtbeginS.c -o ${.TARGET}.o @@ -43,6 +58,12 @@ crtend.o: crtend.c @${LD} -x -r -o ${.TARGET} ${.TARGET}.o @rm -f ${.TARGET}.o +crtendP.o: crtend.c + @echo ${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtend.c -o ${.TARGET} + @${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtend.c -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + crtendS.o: crtendS.c @echo ${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtendS.c -o ${.TARGET} @${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtendS.c -o ${.TARGET}.o |