Subject: Make rules and such
To: None <current-users@NetBSD.ORG>
From: Michael Graff <explorer@vorpal.com>
List: current-users
Date: 01/07/1995 19:57:01
While we're bickering about DESTDIR and other make things, how about
this change to libm, so that I can ``setenv LIBM_USES_I387'' before a
build rather than editing a Makefile all the time?

diffs from /usr/src/lib/libm/Makefile:

*** Makefile	Thu Dec 22 06:02:49 1994
--- Makefile.vorpal	Fri Jan  6 18:58:57 1995
***************
*** 43,53 ****
  
  .if (${MACHINE_ARCH} == "i386")
  # Uncomment the following lines if you have a i387 (or i486 or Pentium)
! #.PATH:	${.CURDIR}/arch/i387
! #ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_fmod.S e_log.S e_log10.S \
! #	    e_remainder.S e_scalb.S e_sqrt.S s_atan.S s_ceil.S s_copysign.S \
! #	    s_cos.S s_finite.S s_floor.S s_ilogb.S s_log1p.S s_logb.S \
! #	    s_rint.S s_scalbn.S s_significand.S s_sin.S s_tan.S
  .elif (${MACHINE_ARCH} == "m68k")
  .PATH:	${.CURDIR}/arch/mc68881
  ARCH_SRCS = e_acos.S e_asin.S e_atanh.S e_cosh.S e_exp.S e_log.S e_log10.S \
--- 43,55 ----
  
  .if (${MACHINE_ARCH} == "i386")
  # Uncomment the following lines if you have a i387 (or i486 or Pentium)
! .ifdef LIBM_USES_I387
! .PATH:	${.CURDIR}/arch/i387
! ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_fmod.S e_log.S e_log10.S \
! 	    e_remainder.S e_scalb.S e_sqrt.S s_atan.S s_ceil.S s_copysign.S \
!     	    s_cos.S s_finite.S s_floor.S s_ilogb.S s_log1p.S s_logb.S \
! 	    s_rint.S s_scalbn.S s_significand.S s_sin.S s_tan.S
! .endif
  .elif (${MACHINE_ARCH} == "m68k")
  .PATH:	${.CURDIR}/arch/mc68881
  ARCH_SRCS = e_acos.S e_asin.S e_atanh.S e_cosh.S e_exp.S e_log.S e_log10.S \


--Michael

--
Michael Graff <explorer@vorpal.com>       NetBSD is the way to go!
PGP key on a key-server near you!         Rayshade the world!