From: Donn Seeley Date: Fri, 3 May 1991 15:30:06 +0000 (-0800) Subject: Use gcc features to avoid editing or postprocessing output files. X-Git-Tag: BSD-4_4-Snapshot-Development~11101 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/7f8286ee238bebeda023f95c4be16888b18cc2cb Use gcc features to avoid editing or postprocessing output files. SCCS-vsn: lib/csu/vax/Makefile 5.14 --- diff --git a/usr/src/lib/csu/vax/Makefile b/usr/src/lib/csu/vax/Makefile index 5d7dfa2662..a891434150 100644 --- a/usr/src/lib/csu/vax/Makefile +++ b/usr/src/lib/csu/vax/Makefile @@ -1,4 +1,4 @@ -# @(#)Makefile 5.13 (Berkeley) %G% +# @(#)Makefile 5.14 (Berkeley) %G% CFLAGS= -O -DLIBC_SCCS OBJS= crt0.o mcrt0.o gcrt0.o @@ -7,18 +7,14 @@ CLEANFILES+= gmon.o mon.o moncrt0.o core a.out all: ${OBJS} crt0.o: crt0.c - ${CC} -S -DCRT0 ${.ALLSRC} - ${CPP} crt0.s > x.s - ${AS} -o x.o x.s - ${LD} -x -r -o ${.TARGET} x.o - rm -f x.s x.o crt0.s + ${CC} -c -DCRT0 ${.ALLSRC} + ${LD} -x -r ${.TARGET} + mv a.out ${.TARGET} moncrt0.o: crt0.c - ${CC} -S -DMCRT0 ${.ALLSRC} - ${CPP} crt0.s > x.s - ${AS} -o x.o x.s - ${LD} -x -r -o ${.TARGET} x.o - rm -f x.s x.o crt0.s + ${CC} -c -DMCRT0 ${.ALLSRC} -o ${.TARGET} + ${LD} -x -r ${.TARGET} + mv a.out ${.TARGET} mcrt0.o: moncrt0.o mon.o ${LD} -x -r -o ${.TARGET} moncrt0.o mon.o @@ -26,19 +22,15 @@ mcrt0.o: moncrt0.o mon.o gcrt0.o: moncrt0.o gmon.o ${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o -mon.o: mon.c mon.ex - ${CC} -S ${DEFS} ${.IMPSRC} - ex - mon.s < ${.CURDIR}/mon.ex - ${AS} -o x.o mon.s - ${LD} -x -r -o ${.TARGET} x.o - rm -f x.o mon.s - -gmon.o: gmon.c gmon.h gmon.ex - ${CC} -S ${DEFS} ${.IMPSRC} - ex - gmon.s < ${.CURDIR}/gmon.ex - ${AS} -o x.o gmon.s - ${LD} -x -r -o ${.TARGET} x.o - rm -f x.o gmon.s +mon.o: mon.c + ${CC} -c ${DEFS} ${.IMPSRC} + ${LD} -x -r ${.TARGET} + mv a.out ${.TARGET} + +gmon.o: gmon.c gmon.h + ${CC} -c ${DEFS} ${.IMPSRC} + ${LD} -x -r ${.TARGET} + mv a.out ${.TARGET} install: install -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \