date and time created 85/05/08 12:21:59 by dist
authorDistribution Folks <dist@ucbvax.Berkeley.EDU>
Thu, 9 May 1985 03:21:59 +0000 (19:21 -0800)
committerDistribution Folks <dist@ucbvax.Berkeley.EDU>
Thu, 9 May 1985 03:21:59 +0000 (19:21 -0800)
SCCS-vsn: old/libm/liboldnm/Makefile 1.1

usr/src/old/libm/liboldnm/Makefile [new file with mode: 0644]

diff --git a/usr/src/old/libm/liboldnm/Makefile b/usr/src/old/libm/liboldnm/Makefile
new file mode 100644 (file)
index 0000000..6194a1e
--- /dev/null
@@ -0,0 +1,39 @@
+#      @(#)Makefile    1.1     %G%
+#
+SCCSID = "@(#)Makefile 1.1 %G%"
+
+CFLAGS=-O
+
+INSTALL= install
+
+FILES= acos.o asin.o atan.o cbrt.o pow.o exp.o log.o sin.o \
+       sinh.o sqrt.o tan.o tanh.o
+
+.c.o:
+       ${CC} -p ${CFLAGS} -c $*.c
+       -ld -X -r $*.o
+       mv a.out profiled/$*.o
+       ${CC} ${CFLAGS} -c $*.c
+       -ld -x -r $*.o
+       mv a.out $*.o
+
+.s.o:
+       sed -f mcount.sed $*.s | ${AS} -o $*.o
+       -ld -X -r $*.o
+       mv a.out profiled/$*.o
+       ${AS} -o $*.o $*.s
+       -ld -x -r $*.o
+       mv a.out $*.o
+
+libnm.a libnm_p.a : $(FILES)
+       cd profiled; ar cru ../libnm_p.a $(FILES)
+       ar cru libnm.a $(FILES)
+
+install: libnm.a libnm_p.a
+       ${INSTALL} libnm.a ${DESTDIR}/usr/lib/libnm.a
+       ranlib ${DESTDIR}/usr/lib/libnm.a
+       ${INSTALL} libnm_p.a ${DESTDIR}/usr/lib/libnm_p.a
+       ranlib ${DESTDIR}/usr/lib/libnm_p.a
+
+clean:
+       rm -f *.o profiled/*.o libnm.a libnm_p.a