1# 2# Copyright (c) 1987 Regents of the University of California. 3# All rights reserved. The Berkeley software License Agreement 4# specifies the terms and conditions for redistribution. 5# 6# @(#)Makefile 5.2 (Berkeley) 07/27/87 7# 8DESTDIR= 9CFLAGS= -O 10OBJS= crt0.o mcrt0.o gcrt0.o 11 12.s.o: 13 ${AS} -o $*.o $*.s 14 ld -x -r $*.o 15 mv a.out $*.o 16 17all: ${OBJS} 18 19mcrt0.o: moncrt0.o mon.o 20 ld -x -r -o mcrt0.o moncrt0.o mon.o 21 22gcrt0.o: moncrt0.o gmon.o 23 ld -x -r -o gcrt0.o moncrt0.o gmon.o 24 25moncrt0.o: mcrt0.s 26 $(AS) -o moncrt0.o mcrt0.s 27 28mon.o: mon.c 29 ${CC} -S ${CFLAGS} mon.c 30 ex - mon.s < mon.ex 31 $(AS) -o mon.o mon.s 32 33gmon.o: gmon.c 34 ${CC} -S ${CFLAGS} gmon.c 35 ex - gmon.s < mon.ex 36 ${AS} -o gmon.o gmon.s 37 38install: all 39 install -o bin -g bin -m 444 crt0.o ${DESTDIR}/lib/crt0.o 40 install -o bin -g bin -m 444 mcrt0.o ${DESTDIR}/lib/mcrt0.o 41 install -o bin -g bin -m 444 gcrt0.o ${DESTDIR}/usr/lib/gcrt0.o 42 43clean: 44 rm -f ${OBJS} *mon.s moncrt0.o mon.o gmon.o a.out errs core 45 46depend: 47