From 24b3f737bcf067a92e098e98b0684491400e4181 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sat, 6 Sep 2003 03:28:11 +0000 Subject: 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. --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3