1# @(#)Makefile 5.12 (Berkeley) 06/23/90 2 3LIB= F77 4SRCS= abort_.c besj0_.c besj1_.c besjn_.c besy0_.c besy1_.c besyn_.c \ 5 c_abs.c c_cos.c c_div.c c_exp.c c_log.c c_sin.c c_sqrt.c d_abs.c \ 6 d_acos.c d_asin.c d_atan.c d_atn2.c d_cnjg.c d_cos.c d_cosh.c \ 7 d_dim.c d_dprod.c d_exp.c d_imag.c d_int.c d_lg10.c d_log.c \ 8 d_mod.c d_nint.c d_prod.c d_sign.c d_sin.c d_sinh.c d_tan.c d_tanh.c \ 9 dbesj0_.c dbesj1_.c dbesjn_.c dbesy0_.c dbesy1_.c dbesyn_.c derf_.c \ 10 derfc_.c ef1asc_.c ef1cmc_.c erf_.c erfc_.c exit_.c h_abs.c \ 11 h_dim.c h_dnnt.c h_indx.c h_len.c h_mod.c h_nint.c h_sign.c hl_ge.c \ 12 hl_gt.c hl_le.c hl_lt.c i_abs.c i_dim.c i_dnnt.c i_indx.c i_len.c \ 13 i_mod.c i_nint.c i_sign.c l_ge.c l_gt.c l_le.c l_lt.c lnblnk_.c \ 14 long_.c main.c pow_ci.c pow_dd.c pow_di.c pow_hh.c pow_ii.c pow_ri.c \ 15 pow_zi.c pow_zz.c r_abs.c r_acos.c r_asin.c r_atan.c r_atn2.c \ 16 r_cnjg.c r_cos.c r_cosh.c r_dim.c r_exp.c r_imag.c r_int.c \ 17 r_lg10.c r_log.c r_mod.c r_nint.c r_sign.c r_sin.c r_sinh.c r_sqrt.c \ 18 r_tan.c r_tanh.c rand_.c random_.c range.c rindex_.c s_cat.c \ 19 s_cmp.c s_copy.c s_paus.c s_rnge.c s_stop.c short_.c signal_.c \ 20 subout.c traper_.c trapov_.c trpfpe_.c z_cos.c z_div.c z_exp.c \ 21 z_log.c z_sin.c z_sqrt.c 22 23LDADD= Version.o 24CLEANFILES+= Usef Version.o Version.c mkvers 25 26libF77.a libF77_p.a:: Version.o 27 28Version.o: Version.c 29 ${CC} -R -c Version.c 30 31Version.c: mkvers ${SRCS} 32 mkvers libF77.a ${.ALLSRC:M*.c} > ${.TARGET} 33 34mkvers: mkvers.c 35 ${CC} ${CFLAGS} ${.CURDIR}/mkvers.c -o ${.TARGET} 36 37Usef: Usef.c 38 ${CC} ${CFLAGS} ${.CURDIR}/Usef.c -o ${.TARGET} 39 40trapov_.o trapov_.po: trapov_.c 41 ${CC} -S -DUCBVAX ${.CURDIR}/trapov_.c; 42 (echo "g/.set L[0-9][0-9]*,0x0$$/s/0x0/0xf10/"; echo "x") | \ 43 ex - trapov_.s; 44 ${AS} trapov_.s -o ${.TARGET} 45 rm -f trapov_.s 46 47.include <bsd.lib.mk> 48 49# 'Usef' is part of a kuldge to get around a bug in the C compiler. 50# C (sec. 9.10 of C ref manual) should round the return value of functions of 51# type float from double to float. It doesn't, so f77 truncates it losing a 52# half bit of accuracy. See file Test_float for a test. When it is fixed, 53# get rid of Usef & the extraneous stores in pow_ri, r_dim, r_mod, r_nint. 54 55.if (${MACHINE} == "vax" || ${MACHINE} == "tahoe") 56.c.o: Usef 57 ${CC} `Usef ${.PREFIX}` ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} 58 @${LD} -x -r ${.TARGET} 59 @mv a.out ${.TARGET} 60 61.c.po: Usef 62 ${CC} -p `Usef ${.PREFIX}` ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} 63 @${LD} -X -r ${.TARGET} 64 @mv a.out ${.TARGET} 65.endif 66