1# 2# Copyright (c) 1988 Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that the above copyright notice and this paragraph are 7# duplicated in all such forms and that any documentation, 8# advertising materials, and other materials related to such 9# distribution and use acknowledge that the software was developed 10# by the University of California, Berkeley. The name of the 11# University may not be used to endorse or promote products derived 12# from this software without specific prior written permission. 13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 5.9 (Berkeley) 08/30/88 18# 19DEFS= -DLIBC_SCCS 20FLAGS= -I.. ${DEFS} 21CFLAGS= -O ${FLAGS} 22SRCS= addd.s addf.s cmpd.s cmpf.s cvtdl.s cvtfl.s cvtld.s cvtlf.s cvtud.s \ 23 cvtuf.s divd.s divf.s fnorm.s fp_exp.s modf.s muld.s mulf.s negd.s \ 24 negf.s sfnorm.s sfp_exp.s subd.s subf.s 25OBJS= addd.o addf.o cmpd.o cmpf.o cvtdl.o cvtfl.o cvtld.o cvtlf.o cvtud.o \ 26 cvtuf.o divd.o divf.o fnorm.o fp_exp.o modf.o muld.o mulf.o negd.o \ 27 negf.o sfnorm.o sfp_exp.o subd.o subf.o 28TAGSFILE=tags 29 30.s.o: 31 @/lib/cpp -E ${FLAGS} -DPROF $*.s | ${AS} -o $*.o 32 @ld -X -o profiled/$*.o -r $*.o 33 /lib/cpp -E ${FLAGS} $*.s | ${AS} -o $*.o 34 @ld -x -r $*.o 35 @mv a.out $*.o 36 37all: ${OBJS} 38 39link: ${OBJS} 40 (cd ../../library; rm -f ${OBJS}) 41 (cd ../../profiled; rm -f ${OBJS}) 42 ln ${OBJS} ../../library 43 (cd profiled; ln ${OBJS} ../../../profiled) 44 45tags: 46 echo "no tags here" 47 48clean: 49 rm -f *.o profiled/* a.out core ${TAGSFILE} 50 51depend: 52 mkdep ${CFLAGS} ${SRCS} 53