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.5 (Berkeley) 08/30/88 18# 19 20DEFS= -DLIBC_SCCS 21CFLAGS= -O ${DEFS} 22SRCS= ecvt.c gcvt.c sibuf.c sobuf.c strout.c 23OBJS= ecvt.o gcvt.o sibuf.o sobuf.o strout.o 24TAGSFILE=tags 25 26.c.o: 27 @${CC} -p ${CFLAGS} -c $*.c 28 @-ld -X -o profiled/$*.o -r $*.o 29 ${CC} ${CFLAGS} -c $*.c 30 @-ld -x -r $*.o 31 @mv a.out $*.o 32 33all: ${OBJS} 34 35link: ${OBJS} 36 (cd ../library; rm -f ${OBJS}) 37 (cd ../profiled; rm -f ${OBJS}) 38 ln ${OBJS} ../library 39 (cd profiled; ln ${OBJS} ../../profiled) 40 41tags: 42 cwd=`pwd`; \ 43 for i in ${SRCS}; do \ 44 ctags -a -f ${TAGSFILE} $$cwd/$$i; \ 45 done 46 47clean: 48 rm -f *.o profiled/* a.out core ${TAGSFILE} 49 50depend: 51 mkdep ${CFLAGS} ${SRCS} 52