xref: /original-bsd/lib/libm/vax/Makefile (revision 241757c4)
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.2 (Berkeley) 12/14/87
13#
14OBJS=	atan2.o cabs.o cbrt.o sqrt.o sincos.o tan.o argred.o support.o \
15	infnan.o
16
17.s.o:
18####	insert additional code for profiling
19	sed -f mcount.sed $*.s | ${AS} -o $*.o
20	-ld -X -r $*.o
21	mv a.out ../profiled/$*.o
22	${AS} -o $*.o $*.s
23	-ld -x -r $*.o
24	mv a.out $*.o
25
26all: ../libm.a ../libm_p.a
27
28../libm_p.a ../libm.a: ${OBJS} FRC
29	cd ../profiled; ar cru ../libm_p.a ${OBJS}
30	ar cru ../libm.a ${OBJS}
31
32depend: FRC
33
34tags: FRC
35
36clean: FRC
37	rm -f ${OBJS} a.out
38
39FRC:
40
41