Skip to content

Commit bc3f903

Browse files
committed
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.
1 parent c485db5 commit bc3f903

14 files changed

Lines changed: 4 additions & 10 deletions

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,5 @@ install: all openlibm.pc
5858
mkdir -p $(DESTDIR)$(includedir)/openlibm
5959
cp -f -a libopenlibm.$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/
6060
cp -f -a libopenlibm.a $(DESTDIR)$(libdir)/
61-
cp -f -a src/openlibm.h $(DESTDIR)$(includedir)/
61+
cp -f -a include/openlibm*.h $(DESTDIR)$(includedir)/
6262
cp -f -a openlibm.pc $(DESTDIR)$(libdir)/pkgconfig/
63-
ifneq ($(wildcard $(ARCH)/bsd_asm.h),)
64-
cp -f -a $(ARCH)/bsd_asm.h $(DESTDIR)$(includedir)/openlibm/
65-
endif
66-
ifneq ($(wildcard $(ARCH)/bsd_cdefs.h),)
67-
cp -f -a $(ARCH)/bsd_cdefs.h $(DESTDIR)$(includedir)/openlibm/
68-
endif

bsdsrc/mathimpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include "cdefs-compat.h"
3737
#include <openlibm.h>
3838

39-
#include "../src/math_private.h"
39+
#include "math_private.h"
4040

4141
/*
4242
* TRUNC() is a macro that sets the trailing 27 bits in the mantissa of an

i387/bsd_ieeefp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#include "include/cdefs-compat.h"
2-
#include "amd64/bsd_ieeefp.h"
1+
#include "cdefs-compat.h"
2+
#include "amd64/bsd_ieeefp.h"
File renamed without changes.

0 commit comments

Comments
 (0)