diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-10-25 22:41:03 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-10-25 22:41:03 +0000 |
commit | a321822b609751d779457fd6350c4ee958888357 (patch) | |
tree | e6a5a743d66610d2200bcf5c647e0ff885126c7f | |
parent | cf48ace55424a7884a2f2fd871d784ecdc0acfa5 (diff) |
Make sure to use unique target names so that make -j does not break;
feedback and ok espie@
-rw-r--r-- | lib/libc/string/Makefile.inc | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/lib/libc/string/Makefile.inc b/lib/libc/string/Makefile.inc index f003be03c23..124469cd3a8 100644 --- a/lib/libc/string/Makefile.inc +++ b/lib/libc/string/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.19 2007/09/03 14:36:40 millert Exp $ +# $OpenBSD: Makefile.inc,v 1.20 2007/10/25 22:41:02 miod Exp $ # string sources .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string ${LIBCSRCDIR}/string @@ -27,18 +27,18 @@ SRCS+= bm.c memccpy.c memrchr.c strcasecmp.c strcasestr.c strcoll.c strdup.c \ OBJS+= memmove.o memmove.o: bcopy.c ${CC} -DMEMMOVE ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET} - @${LD} -x -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} memmove.go: bcopy.c ${CC} -g -DMEMMOVE ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET} - @${LD} -x -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} memmove.po: bcopy.c ${CC} -DMEMMOVE ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET} - @${LD} -X -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} memmove.so: bcopy.c ${CC} ${PICFLAG} -DPIC -DMEMMOVE ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \ @@ -53,18 +53,18 @@ memmove.so: bcopy.c OBJS+= memcpy.o memcpy.o: bcopy.c ${CC} -DMEMCOPY ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET} - @${LD} -x -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} memcpy.go: bcopy.c ${CC} -g -DMEMCOPY ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET} - @${LD} -x -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} memcpy.po: bcopy.c ${CC} -DMEMCOPY ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET} - @${LD} -X -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} memcpy.so: bcopy.c ${CC} ${PICFLAG} -DPIC -DMEMCOPY ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \ @@ -77,18 +77,18 @@ memcpy.so: bcopy.c OBJS+= strchr.o strchr.o: index.c ${CC} -DSTRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET} - @${LD} -x -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} strchr.go: index.c ${CC} -g -DSTRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET} - @${LD} -x -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} strchr.po: index.c ${CC} -DSTRCHR ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET} - @${LD} -X -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} strchr.so: index.c ${CC} ${PICFLAG} -DPIC -DSTRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \ @@ -100,18 +100,18 @@ strchr.so: index.c OBJS+= strrchr.o strrchr.o: rindex.c ${CC} -DSTRRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET} - @${LD} -x -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} strrchr.go: rindex.c ${CC} -g -DSTRRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET} - @${LD} -x -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} strrchr.po: rindex.c ${CC} -DSTRRCHR ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET} - @${LD} -X -r ${.TARGET} - @mv a.out ${.TARGET} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} strrchr.so: rindex.c ${CC} ${PICFLAG} -DPIC -DSTRRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \ |