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:
@@ -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
@@ -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
@@ -1,2 +1,2 @@
|
||||
#include "include/cdefs-compat.h"
|
||||
#include "amd64/bsd_ieeefp.h"
|
||||
#include "cdefs-compat.h"
|
||||
#include "amd64/bsd_ieeefp.h"
|
||||
|
||||
Reference in New Issue
Block a user