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.
This commit is contained in:
Ed Schouten 2015-01-11 16:35:32 +01:00
parent c485db579d
commit bc3f903bc2
14 changed files with 4 additions and 10 deletions

View File

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

View File

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

View File

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