113768Ssam# 234376Sbostic# Copyright (c) 1988 Regents of the University of California. 334376Sbostic# All rights reserved. 421325Sdist# 534376Sbostic# Redistribution and use in source and binary forms are permitted 635013Sbostic# provided that the above copyright notice and this paragraph are 735013Sbostic# duplicated in all such forms and that any documentation, 835013Sbostic# advertising materials, and other materials related to such 935013Sbostic# distribution and use acknowledge that the software was developed 1035013Sbostic# by the University of California, Berkeley. The name of the 1135013Sbostic# University may not be used to endorse or promote products derived 1235013Sbostic# from this software without specific prior written permission. 1335013Sbostic# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 1435013Sbostic# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15*40565Sbostic# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1621325Sdist# 17*40565Sbostic# @(#)Makefile 5.13 (Berkeley) 03/22/90 1834376Sbostic# 1934630Sbostic 20*40565SbosticOBJS= ftime.o getpw.o gtty.o rand.o reset.o stty.o tell.o times.o \ 2134690Sbostic utime.o vlimit.o vtimes.o 22*40565SbosticSRCS= ftime.c getpw.c gtty.c rand.c stty.c tell.c times.c utime.c \ 23*40565Sbostic vlimit.c vtimes.c 24*40565SbosticASRCS= reset.s 25*40565SbosticMAN= ftime.0 getpw.0 rand.0 stty.0 times.0 utime.0 vlimit.0 vtimes.0 2634630Sbostic 27*40565Sbostic# Tahoe specific sources 28*40565SbosticTSRC= ${SRCS} 29*40565SbosticTASRC= ${ASRCS} 30*40565Sbostic 31*40565Sbostic# Vax specific sources 32*40565Sbostic#VSRC= ${SRCS} 33*40565Sbostic#VASRC= ${ASRCS} 34*40565Sbostic 35*40565SbosticVPATH= ${MACHINE} 36*40565SbosticFLAGS= -I${MACHINE} -I../../libc/${MACHINE} 37*40565SbosticDEFS= -DLIBC_SCCS 38*40565SbosticCFLAGS= -O ${DEFS} 3921524SsamTAGSFILE=tags 40*40565SbosticMDIR= /usr/man/cat3 4113768Ssam 42*40565Sbostic.SUFFIXES: 43*40565Sbostic.SUFFIXES: .o .s .c .3 .0 44*40565Sbostic 45*40565Sbostic.s.o: 46*40565Sbostic @${CPP} -E ${FLAGS} -DPROF $*.s | ${AS} -o $*.o 47*40565Sbostic @ld -X -o profiled/$*.o -r $*.o 48*40565Sbostic ${CPP} -E ${FLAGS} $*.s | ${AS} -o $*.o 49*40565Sbostic @ld -x -r $*.o 50*40565Sbostic @mv a.out $*.o 51*40565Sbostic 5213768Ssam.c.o: 5334376Sbostic @${CC} -p ${CFLAGS} -c $*.c 5434376Sbostic @-ld -X -o profiled/$*.o -r $*.o 5513768Ssam ${CC} ${CFLAGS} -c $*.c 5634376Sbostic @-ld -x -r $*.o 5734376Sbostic @mv a.out $*.o 5813768Ssam 5934376Sbosticall: ${OBJS} 6013768Ssam 61*40565Sbosticclean: 62*40565Sbostic rm -f *.o profiled/* a.out core 6334376Sbostic 64*40565Sbosticcleandir: clean 65*40565Sbostic rm -f ${MAN} tags .depend 66*40565Sbostic 67*40565Sbosticdepend: depend.${MACHINE} 68*40565Sbostic 69*40565Sbosticdepend.tahoe: ${TSRC} 70*40565Sbostic mkdep ${CFLAGS} ${TSRC} 71*40565Sbostic 72*40565Sbosticdepend.vax: ${VSRC} 73*40565Sbostic mkdep ${CFLAGS} ${VSRC} 74*40565Sbostic 75*40565Sbostictags: tags.${MACHINE} 76*40565Sbostic 77*40565Sbostictags.tahoe: ${TSRC} ${TASRC} 78*40565Sbostic rm -f ${TAGSFILE} 7921524Ssam cwd=`pwd`; \ 80*40565Sbostic for i in ${TSRC}; do \ 8121524Ssam ctags -a -f ${TAGSFILE} $$cwd/$$i; \ 8221524Ssam done 83*40565Sbostic (P=`pwd`; \ 84*40565Sbostic egrep "^ENTRY(.*)|^SYSCALL(.*)" ${TASRC} | sed \ 85*40565Sbostic"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 $$P/\1 /^\2(\3\4$$/;" \ 86*40565Sbostic >> ${TAGSFILE}) 8721524Ssam 88*40565Sbostictags.vax: ${VSRC} ${VASRC} 89*40565Sbostic rm -f ${TAGSFILE} 90*40565Sbostic cwd=`pwd`; \ 91*40565Sbostic for i in ${VSRC}; do \ 92*40565Sbostic ctags -a -f ${TAGSFILE} $$cwd/$$i; \ 93*40565Sbostic done 94*40565Sbostic (P=`pwd`; \ 95*40565Sbostic egrep "^ENTRY(.*)|^SYSCALL(.*)" ${VASRC} | sed \ 96*40565Sbostic"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 $$P/\1 /^\2(\3\4$$/;" \ 97*40565Sbostic >> ${TAGSFILE}) 9824542Sbloom 99*40565Sbosticinstall: ${MAN} 100*40565Sbostic cd ../library; rm -f ${OBJS} 101*40565Sbostic ln ${OBJS} ../library 102*40565Sbostic cd ../profiled; rm -f ${OBJS} 103*40565Sbostic cd profiled; ln ${OBJS} ../../profiled 104*40565Sbostic install -c -o bin -g bin -m 444 ${MAN} ${MDIR} 105*40565Sbostic rm -f ${MDIR}/srand.0; ln ${MDIR}/rand.0 ${MDIR}/srand.0 106*40565Sbostic rm -f ${MDIR}/gtty.0; ln ${MDIR}/stty.0 ${MDIR}/gtty.0 107