1# @(#)Makefile 5.13 (Berkeley) 06/08/90 2 3CFLAGS= -O -DLIBC_SCCS 4OBJS= crt0.o mcrt0.o gcrt0.o 5CLEANFILES+= gmon.o mon.o moncrt0.o core a.out 6 7all: ${OBJS} 8 9crt0.o: crt0.c 10 ${CC} -S -DCRT0 ${.ALLSRC} 11 ${CPP} crt0.s > x.s 12 ${AS} -o x.o x.s 13 ${LD} -x -r -o ${.TARGET} x.o 14 rm -f x.s x.o crt0.s 15 16moncrt0.o: crt0.c 17 ${CC} -S -DMCRT0 ${.ALLSRC} 18 ${CPP} crt0.s > x.s 19 ${AS} -o x.o x.s 20 ${LD} -x -r -o ${.TARGET} x.o 21 rm -f x.s x.o crt0.s 22 23mcrt0.o: moncrt0.o mon.o 24 ${LD} -x -r -o ${.TARGET} moncrt0.o mon.o 25 26gcrt0.o: moncrt0.o gmon.o 27 ${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o 28 29mon.o: mon.c mon.ex 30 ${CC} -S ${DEFS} ${.IMPSRC} 31 ex - mon.s < ${.CURDIR}/mon.ex 32 ${AS} -o x.o mon.s 33 ${LD} -x -r -o ${.TARGET} x.o 34 rm -f x.o mon.s 35 36gmon.o: gmon.c gmon.h gmon.ex 37 ${CC} -S ${DEFS} ${.IMPSRC} 38 ex - gmon.s < ${.CURDIR}/gmon.ex 39 ${AS} -o x.o gmon.s 40 ${LD} -x -r -o ${.TARGET} x.o 41 rm -f x.o gmon.s 42 43install: 44 install -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \ 45 ${DESTDIR}/usr/lib 46 47depend lint tags: 48 49.include <bsd.prog.mk> 50