Move public headers into include/ and private headers into src/.

While there, also modify the install target. We should make sure to
install all openlibm*.h headers. There is still some work to be done:
openlibm_fenv_*.h still depends on some additional bits. I'd propose
that we eventually create an include/openlibm_cdefs.h that contains all
of the macros we need.
dev
Ed Schouten 8 years ago
parent c485db579d
commit bc3f903bc2
  1. 8
      Makefile
  2. 2
      bsdsrc/mathimpl.h
  3. 4
      i387/bsd_ieeefp.h
  4. 0
      include/openlibm.h
  5. 0
      include/openlibm_complex.h
  6. 0
      include/openlibm_fenv.h
  7. 0
      include/openlibm_fenv_amd64.h
  8. 0
      include/openlibm_fenv_arm.h
  9. 0
      include/openlibm_fenv_i387.h
  10. 0
      src/amd64_fpmath.h
  11. 0
      src/cdefs-compat.h
  12. 0
      src/fpmath.h
  13. 0
      src/i386_fpmath.h
  14. 0
      src/types-compat.h

@ -58,11 +58,5 @@ install: all openlibm.pc
mkdir -p $(DESTDIR)$(includedir)/openlibm
cp -f -a libopenlibm.$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/
cp -f -a libopenlibm.a $(DESTDIR)$(libdir)/
cp -f -a src/openlibm.h $(DESTDIR)$(includedir)/
cp -f -a include/openlibm*.h $(DESTDIR)$(includedir)/
cp -f -a openlibm.pc $(DESTDIR)$(libdir)/pkgconfig/
ifneq ($(wildcard $(ARCH)/bsd_asm.h),)
cp -f -a $(ARCH)/bsd_asm.h $(DESTDIR)$(includedir)/openlibm/
endif
ifneq ($(wildcard $(ARCH)/bsd_cdefs.h),)
cp -f -a $(ARCH)/bsd_cdefs.h $(DESTDIR)$(includedir)/openlibm/
endif

@ -36,7 +36,7 @@
#include "cdefs-compat.h"
#include <openlibm.h>
#include "../src/math_private.h"
#include "math_private.h"
/*
* TRUNC() is a macro that sets the trailing 27 bits in the mantissa of an

@ -1,2 +1,2 @@
#include "include/cdefs-compat.h"
#include "amd64/bsd_ieeefp.h"
#include "cdefs-compat.h"
#include "amd64/bsd_ieeefp.h"

Loading…
Cancel
Save