various clean-ups; added Makefile and mcount.sed.
[unix-history] / usr / src / lib / libmp / Makefile
CommitLineData
3da82940 1#
909b40b5
KB
2# Copyright (c) 1987 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 4.3 (Berkeley) %G%
7#
8CFLAGS= -O
9LIBC= /lib/libc.a
10SRCS= pow.c gcd.c msqrt.c mdiv.c mout.c mult.c madd.c util.c
11OBJS= pow.o gcd.o msqrt.o mdiv.o mout.o mult.o madd.o util.o
12
13all: libmp.a
14
15libmp.a: ${OBJS}
16 ar cr $@ ${OBJS}
17
18clean: FRC
19 rm -f ${OBJS} core libmp.a
3da82940 20
909b40b5
KB
21depend: FRC
22 mkdep ${CFLAGS} ${SRCS}
3da82940 23
909b40b5
KB
24install: FRC
25 install -o bin -g bin -m 644 libmp.a ${DESTDIR}/usr/lib/libmp.a
3da82940
SL
26 ranlib ${DESTDIR}/usr/lib/libmp.a
27
909b40b5
KB
28lint: FRC
29 lint ${CFLAGS} ${SRCS}
30
31tags: FRC
32 ctags ${SRCS}
33
34FRC:
35
36# DO NOT DELETE THIS LINE -- mkdep uses it.
37# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
38
39pow.o: pow.c /usr/include/mp.h
40gcd.o: gcd.c /usr/include/mp.h
41msqrt.o: msqrt.c /usr/include/mp.h
42mdiv.o: mdiv.c /usr/include/mp.h
43mout.o: mout.c /usr/include/stdio.h /usr/include/mp.h
44mult.o: mult.c /usr/include/mp.h
45madd.o: madd.c /usr/include/mp.h
46util.o: util.c /usr/include/stdio.h /usr/include/mp.h
9c050230 47
909b40b5 48# IF YOU PUT ANYTHING HERE IT WILL GO AWAY