can't reset it if not set up
[unix-history] / usr / src / old / libm / liboldnm / Makefile
CommitLineData
d10dd68c 1#
8daa8d7c
DF
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#
8SCCSID = "%W (Berkeley) %G%"
d10dd68c
DF
9
10CFLAGS=-O
11
12INSTALL= install
13
14FILES= acos.o asin.o atan.o cbrt.o pow.o exp.o log.o sin.o \
15 sinh.o sqrt.o tan.o tanh.o
16
17.c.o:
18 ${CC} -p ${CFLAGS} -c $*.c
19 -ld -X -r $*.o
20 mv a.out profiled/$*.o
21 ${CC} ${CFLAGS} -c $*.c
22 -ld -x -r $*.o
23 mv a.out $*.o
24
25.s.o:
26 sed -f mcount.sed $*.s | ${AS} -o $*.o
27 -ld -X -r $*.o
28 mv a.out profiled/$*.o
29 ${AS} -o $*.o $*.s
30 -ld -x -r $*.o
31 mv a.out $*.o
32
33libnm.a libnm_p.a : $(FILES)
34 cd profiled; ar cru ../libnm_p.a $(FILES)
35 ar cru libnm.a $(FILES)
36
37install: libnm.a libnm_p.a
38 ${INSTALL} libnm.a ${DESTDIR}/usr/lib/libnm.a
39 ranlib ${DESTDIR}/usr/lib/libnm.a
40 ${INSTALL} libnm_p.a ${DESTDIR}/usr/lib/libnm_p.a
41 ranlib ${DESTDIR}/usr/lib/libnm_p.a
42
43clean:
44 rm -f *.o profiled/*.o libnm.a libnm_p.a