summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in63
1 files changed, 63 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 1608dc7da..b593a64dc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -221,6 +221,69 @@ ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
# Remove this as it is only used internally.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/tls.h
endif
+ifneq ($(UCLIBC_HAS_GNU_ERROR),y)
+ # Remove error.h upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/error.h
+endif
+ifneq ($(UCLIBC_HAS_BSD_ERR),y)
+ # Remove err.h upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/err.h
+endif
+ifneq ($(UCLIBC_SUSV3_LEGACY),y)
+ # Remove timeb.h since the LEGACY ftime() was disabled upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/timeb.h
+endif
+ifneq ($(UCLIBC_HAS_EPOLL),y)
+ # Remove epoll.h since epoll_*() were disabled upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/epoll.h
+endif
+ifneq ($(UCLIBC_HAS_XATTR),y)
+ # Remove xattr.h since extended attributes were disabled upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/xattr.h
+endif
+ifneq ($(UCLIBC_SV4_DEPRECATED),y)
+ # Remove ustst.h since ustat was disabled upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/ustat.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/ustat.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/ustat.h
+endif
+ifneq ($(UCLIBC_HAS_PTY),y)
+ # Remove pty.h since PTY support was disabled upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/pty.h
+endif
+ifneq ($(UCLIBC_LINUX_SPECIFIC),y)
+ # Remove linux-specific headers as requested
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/inotify.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/perm.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/personality.h
+endif
+ifneq ($(UCLIBC_SV4_DEPRECATED),y)
+ # Remove ustat.h since deprecated SV4 support was disabled upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/ustat.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/ustat.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/ustat.h
+endif
+ifeq ($(UCLIBC_HAS_REALTIME)$(UCLIBC_HAS_ADVANCED_REALTIME),)
+ # Remove SUSv-realtime related message-queue headers upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/mqueue.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/mqueue.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/mqueue.h
+endif
+ifneq ($(UCLIBC_HAS_REALTIME),y)
+ # Remove SUSv-realtime related headers upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sched.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/sched.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/sched.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/semaphore.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/semaphore.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/semaphore.h
+endif
+ifneq ($(UCLIBC_HAS_SOCKET),y)
+ # Remove socket related headers upon request
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/socket.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/socket.h
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/socketvar.h
+endif
# Installs development library links.
install_dev: install_headers