xref: /csrg-svn/lib/libm/common/Makefile (revision 32713)
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
6# provided that this notice is preserved and that due credit is given
7# to the University of California at Berkeley. The name of the University
8# may not be used to endorse or promote products derived from this
9# software without specific written prior permission. This software
10# is provided ``as is'' without express or implied warranty.
11#
12#	@(#)Makefile	5.1 (Berkeley) 11/30/87
13#
14CFLAGS=	-O
15LIBC=	/lib/libc.a
16SRCS=	atan2.c sincos.c tan.c
17OBJS=	atan2.o sincos.o tan.o
18
19.c.o:
20	${CC} -p ${CFLAGS} -c $*.c
21	-ld -X -r $*.o
22	mv a.out ../profiled/$*.o
23	${CC} ${CFLAGS} -c $*.c
24	-ld -x -r $*.o
25	mv a.out $*.o
26
27all: ../libm.a ../libm_p.a
28
29../libm.a ../libm_p.a: ${OBJS}
30	cd ../profiled; ar cru ../libm_p.a ${OBJS}
31	ar cru ../libm.a ${OBJS}
32
33depend: FRC
34	mkdep ${CFLAGS} ${SRCS}
35
36tags: FRC
37	ctags ${SRCS}
38
39clean: FRC
40	rm -f ${OBJS} a.out
41
42FRC:
43
44# DO NOT DELETE THIS LINE -- mkdep uses it.
45# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
46
47atan2.o: atan2.c
48sincos.o: sincos.c trig.h
49tan.o: tan.c trig.h
50
51# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
52