Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

163 lines
5.5 KiB

28 years ago
- replace dtoa w/ David's gdtoa, version 2008-03-15 - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
16 years ago
28 years ago
22 years ago
  1. # $OpenBSD: Makefile,v 1.197 2014/12/08 20:39:56 tedu Exp $
  2. # $NetBSD: Makefile,v 1.59 1996/05/15 21:36:43 jtc Exp $
  3. # @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91
  4. # The ``rm -rf''s used below are safe because rm doesn't follow symbolic
  5. # links.
  6. .include <bsd.own.mk>
  7. FILES= a.out.h ar.h asr.h assert.h bitstring.h blf.h bsd_auth.h \
  8. complex.h cpio.h ctype.h curses.h db.h dbm.h des.h dirent.h disktab.h \
  9. dlfcn.h elf_abi.h err.h errno.h fenv.h float.h fnmatch.h fstab.h fts.h \
  10. ftw.h getopt.h glob.h grp.h ifaddrs.h inttypes.h iso646.h kvm.h \
  11. langinfo.h libgen.h limits.h locale.h login_cap.h malloc.h math.h \
  12. md5.h memory.h mpool.h ndbm.h netdb.h netgroup.h nlist.h nl_types.h \
  13. paths.h poll.h pwd.h ranlib.h readpassphrase.h regex.h \
  14. resolv.h rmd160.h search.h setjmp.h sha1.h sha2.h signal.h siphash.h \
  15. sndio.h \
  16. spawn.h stdbool.h stddef.h stdio.h stdlib.h string.h strings.h struct.h \
  17. sysexits.h tar.h tgmath.h time.h ttyent.h tzfile.h unistd.h utime.h \
  18. utmp.h uuid.h vis.h wchar.h wctype.h
  19. FILES+= link.h link_elf.h
  20. .if (${MACHINE_ARCH} != "vax")
  21. FILES+= ieeefp.h
  22. .endif
  23. MFILES= frame.h
  24. LFILES= endian.h fcntl.h syslog.h termios.h stdarg.h stdint.h varargs.h
  25. DIRS= arpa protocols rpc rpcsvc
  26. LDIRS= crypto ddb dev isofs miscfs msdosfs net netinet netinet6 \
  27. netmpls net80211 nfs ntfs scsi sys ufs uvm
  28. # Places that need a prerequisite target met before includes
  29. PRDIRS=
  30. # Directories with an includes target
  31. RDIRS= ../lib/libcrypto ../lib/libcurses ../lib/libedit \
  32. ../lib/libevent ../lib/libexpat ../lib/libform \
  33. ../lib/libfuse ../lib/libkeynote ../lib/libmenu \
  34. ../lib/libocurses ../lib/libossaudio ../lib/libpanel \
  35. ../lib/libpcap ../lib/librpcsvc ../lib/librthread ../lib/libskey \
  36. ../lib/libsqlite3 ../lib/libssl ../lib/libtls \
  37. ../lib/libusbhid ../lib/libutil ../lib/libz \
  38. ../usr.bin/lex ../gnu/lib/libreadline \
  39. ../sys/arch/${MACHINE}
  40. .if ${COMPILER_VERSION:L} == "gcc3"
  41. RDIRS+= ../gnu/usr.bin/gcc ../gnu/lib/libobjc
  42. PRDIRS+= ../gnu/lib/libstdc++
  43. .else
  44. RDIRS+= ../gnu/usr.bin/cc/libobjc
  45. PRDIRS+= ../gnu/lib/libstdc++-v3
  46. RDIRS+= ../gnu/usr.bin/cc/include
  47. .endif
  48. # prereq implies includes
  49. RDIRS += ${PRDIRS}
  50. NOOBJ= noobj
  51. # Change SYS_INCLUDE in bsd.own.mk to "symlinks" if you don't want copies
  52. SYS_INCLUDE?= copies
  53. RUN_MAKE = if test -f Makefile.bsd-wrapper; then ${MAKE} -f Makefile.bsd-wrapper $@; else ${MAKE} $@; fi
  54. prereq:
  55. @for i in ${PRDIRS}; do \
  56. echo preparing in ${.CURDIR}/$$i; \
  57. cd ${.CURDIR}/$$i && ${RUN_MAKE}; \
  58. done
  59. includes:
  60. @echo installing ${FILES}
  61. @for i in ${FILES}; do \
  62. cmp -s $$i ${DESTDIR}/usr/include/$$i || \
  63. ${INSTALL} ${INSTALL_COPY} -m 444 $$i ${DESTDIR}/usr/include/$$i; \
  64. done
  65. @echo installing ${DIRS}
  66. @for i in ${DIRS}; do \
  67. ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
  68. ${DESTDIR}/usr/include/$$i; \
  69. cd ${.CURDIR}/$$i && for j in *.[ih]; do \
  70. cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
  71. ${INSTALL} ${INSTALL_COPY} -m 444 $$j ${DESTDIR}/usr/include/$$i/$$j; \
  72. done; \
  73. done
  74. @rm -rf ${DESTDIR}/usr/include/openssl ${DESTDIR}/usr/include/ssl \
  75. ${DESTDIR}/usr/libdata/perl5/site_perl/${MACHINE_CPU}-openbsd/ssl \
  76. ${DESTDIR}/usr/libdata/perl5/site_perl/${MACHINE_CPU}-openbsd/openssl
  77. @mkdir ${DESTDIR}/usr/include/openssl
  78. @ln -sf openssl ${DESTDIR}/usr/include/ssl
  79. @echo installing ${LFILES}
  80. @for i in ${LFILES}; do \
  81. rm -f ${DESTDIR}/usr/include/$$i && \
  82. ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \
  83. done
  84. @echo installing ${MFILES}
  85. @for i in ${MFILES}; do \
  86. rm -f ${DESTDIR}/usr/include/$$i && \
  87. ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \
  88. done
  89. chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include
  90. find ${DESTDIR}/usr/include -type f -print0 | \
  91. xargs -0r chmod a=r
  92. find ${DESTDIR}/usr/include -type d -print0 | \
  93. xargs -0r chmod u=rwx,go=rx
  94. @for i in ${RDIRS}; do \
  95. echo installing in ${.CURDIR}/$$i; \
  96. cd ${.CURDIR}/$$i && ${RUN_MAKE}; \
  97. done
  98. copies:
  99. @echo copies: ${LDIRS}
  100. @for i in ${LDIRS}; do \
  101. rm -rf ${DESTDIR}/usr/include/$$i && \
  102. ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
  103. ${DESTDIR}/usr/include/$$i ; \
  104. done
  105. cd ../sys; \
  106. pax -rw -pa -L \
  107. `find ${LDIRS} -follow -type f -name '*.h' '!' \
  108. '(' -path 'dev/microcode/*' -or -path 'dev/pci/drm/*/*' ')' \
  109. -print` ${DESTDIR}/usr/include
  110. cd ${DESTDIR}/usr/include && rm -rf ${MACHINE} ${MACHINE_CPU} machine
  111. ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
  112. ${DESTDIR}/usr/include/${MACHINE}
  113. pax -rw -pa -s "|\.\./sys/arch/${MACHINE}/include||" \
  114. ../sys/arch/${MACHINE}/include/*.h \
  115. ${DESTDIR}/usr/include/${MACHINE}
  116. if test ${MACHINE} != ${MACHINE_CPU} -a \
  117. -d ../sys/arch/${MACHINE_CPU}/include; then \
  118. ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
  119. ${DESTDIR}/usr/include/${MACHINE_CPU}; \
  120. pax -rw -pa -s "|\.\./sys/arch/${MACHINE_CPU}/include||" \
  121. ../sys/arch/${MACHINE_CPU}/include/*.h \
  122. ${DESTDIR}/usr/include/${MACHINE_CPU}; \
  123. fi
  124. ln -sf ${MACHINE} ${DESTDIR}/usr/include/machine; \
  125. symlinks:
  126. @echo symlinks: ${LDIRS}
  127. @for i in ${LDIRS}; do \
  128. rm -rf ${DESTDIR}/usr/include/$$i && \
  129. ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \
  130. done
  131. cd ${DESTDIR}/usr/include && rm -rf ${MACHINE} ${MACHINE_CPU} machine
  132. ln -s /sys/arch/${MACHINE}/include ${DESTDIR}/usr/include/${MACHINE}
  133. if test ${MACHINE} != ${MACHINE_CPU} -a \
  134. -d ../sys/arch/${MACHINE_CPU}/include ; then \
  135. ln -s /sys/arch/${MACHINE_CPU}/include \
  136. ${DESTDIR}/usr/include/${MACHINE_CPU} ; \
  137. fi
  138. ln -sf ${MACHINE} ${DESTDIR}/usr/include/machine
  139. includes: ${SYS_INCLUDE}
  140. .PHONY: prereq includes copies symlink
  141. .include <bsd.prog.mk>