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 1.3 (Berkeley) 06/19/87 7# 8CFLAGS= -O 9LIBC= /lib/libc.a 10SRCS= atan2.c cbrt.c trig.c cabs.c support.c 11OBJS= atan2.o cbrt.o trig.o cabs.o support.o 12 13.c.o: 14 ${CC} -p ${CFLAGS} -c $*.c 15 -ld -X -r $*.o 16 mv a.out ../profiled/$*.o 17 ${CC} ${CFLAGS} -c $*.c 18 -ld -x -r $*.o 19 mv a.out $*.o 20 21all: ../libm.a ../libm_p.a 22 23../libm.a ../libm_p.a: ${OBJS} 24 cd ../profiled; ar cru ../libm_p.a ${OBJS} 25 ar cru ../libm.a ${OBJS} 26 27depend: FRC 28 mkdep ${CFLAGS} ${SRCS} 29 30tags: FRC 31 ctags ${SRCS} 32 33FRC: 34 35# DO NOT DELETE THIS LINE -- mkdep uses it. 36# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 37 38atan2.o: atan2.c 39cbrt.o: cbrt.c 40trig.o: trig.c 41cabs.o: cabs.c 42support.o: support.c 43 44# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 45