Browse Source

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.
Ed Schouten 10 years ago
parent
commit
bc3f903bc2

+ 1 - 7
Makefile

@@ -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

+ 1 - 1
bsdsrc/mathimpl.h

@@ -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

+ 2 - 2
i387/bsd_ieeefp.h

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

+ 0 - 0
src/openlibm.h → include/openlibm.h


+ 0 - 0
src/openlibm_complex.h → include/openlibm_complex.h


+ 0 - 0
src/openlibm_fenv.h → include/openlibm_fenv.h


+ 0 - 0
src/openlibm_fenv_amd64.h → include/openlibm_fenv_amd64.h


+ 0 - 0
src/openlibm_fenv_arm.h → include/openlibm_fenv_arm.h


+ 0 - 0
src/openlibm_fenv_i387.h → include/openlibm_fenv_i387.h


+ 0 - 0
include/amd64_fpmath.h → src/amd64_fpmath.h


+ 0 - 0
include/cdefs-compat.h → src/cdefs-compat.h


+ 0 - 0
include/fpmath.h → src/fpmath.h


+ 0 - 0
include/i386_fpmath.h → src/i386_fpmath.h


+ 0 - 0
include/types-compat.h → src/types-compat.h