summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-09-06 03:28:11 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-09-06 03:28:11 +0000
commit24b3f737bcf067a92e098e98b0684491400e4181 (patch)
treeeec0bceebcd4f7485826953f7a106fbade56a01c /Makefile
parent1bb56f359252561d0f56d7fdbae7c697069797c0 (diff)
Don't install floating point related headers, and wrap some previously
unwrapped prototypes, when float support is disabled. Also don't install printf.h if glibc custom printf specifier support is disabled.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bb4d91b57..72d33c006 100644
--- a/Makefile
+++ b/Makefile
@@ -182,6 +182,14 @@ install_dev:
install -d $(PREFIX)$(DEVEL_PREFIX)/include
-install -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)/lib/
tar -chf - include | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX);
+ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
+ # Remove floating point related headers since float support is disabled.
+ rm $(PREFIX)$(DEVEL_PREFIX)/include/complex.h
+ rm $(PREFIX)$(DEVEL_PREFIX)/include/fpu_control.h
+ rm $(PREFIX)$(DEVEL_PREFIX)/include/ieee754.h
+ rm $(PREFIX)$(DEVEL_PREFIX)/include/math.h
+ rm $(PREFIX)$(DEVEL_PREFIX)/include/tgmath.h
+endif
ifneq ($(strip $(UCLIBC_HAS_WCHAR)),y)
# Remove wide char headers since wide char support is disabled.
rm $(PREFIX)$(DEVEL_PREFIX)/include/wctype.h
@@ -191,6 +199,10 @@ ifneq ($(strip $(UCLIBC_HAS_LOCALE)),y)
# Remove iconv header since locale support is disabled.
rm $(PREFIX)$(DEVEL_PREFIX)/include/iconv.h
endif
+ifneq ($(strip $(UCLIBC_HAS_GLIBC_CUSTOM_PRINTF)),y)
+ # Remove printf header since custom print specifier support is disabled.
+ rm $(PREFIX)$(DEVEL_PREFIX)/include/printf.h
+endif
ifneq ($(strip $(UCLIBC_HAS_XLOCALE)),y)
# Remove xlocale header since extended locale support is disabled.
rm $(PREFIX)$(DEVEL_PREFIX)/include/xlocale.h