| 1 | # |
| 2 | # Copyright (c) 1980 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.1 (Berkeley) %G% |
| 7 | # |
| 8 | CFLAGS= -O |
| 9 | STD= ftime.o gtty.o nice.o pause.o rand.o stty.o tell.o \ |
| 10 | times.o utime.o vlimit.o vtimes.o |
| 11 | # these should just be pitched, but in the interest of compatibility... |
| 12 | TRASH= getpw.o |
| 13 | OBJS= ${STD} ${TRASH} |
| 14 | |
| 15 | .c.o: |
| 16 | ${CC} -p ${CFLAGS} -c $*.c |
| 17 | -ld -X -r $*.o |
| 18 | mv a.out profiled/$*.o |
| 19 | ${CC} ${CFLAGS} -c $*.c |
| 20 | -ld -x -r $*.o |
| 21 | mv a.out $*.o |
| 22 | |
| 23 | compat-4.1lib compat-4.1lib_p: ${OBJS} |
| 24 | @echo "building profiled compat-4.1lib" |
| 25 | @cd profiled; ar cru ../compat-4.1lib_p ${OBJS} |
| 26 | @echo "buiding normal compat-4.1lib" |
| 27 | @ar cru compat-4.1lib ${OBJS} |
| 28 | |
| 29 | clean: |
| 30 | rm -f compat-4.1lib compat-4.1lib_p ${OBJS} profiled/*.o |