summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-27 23:10:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-27 23:10:00 +0000
commit8602e0ef80ecb67816746b26cd0fecfe2acf25bc (patch)
tree1336bcda5f42ba007c56a8f1364a025dd2c1cdba /Makefile.in
parent9eceda7e58d5afa87ff22c108cb938000ad02ba4 (diff)
build system: improve install_headers.
Now it uses dedicated script instead of inline makefile commands, which helps readability. It also installs asm[-generic] and linux subdirs from kernel headers (previously it had to be done separately). Lastly, it passes each uclibc header thru unifdef, which strips #ifdef UCLIBC_INTERNAL conditional from headers. Currently it's a no-op (no such #ifders in tree). The plan is to have libc_hidden_proto(foo) migrated to headers and guard them by these #ifdefs.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in15
1 files changed, 6 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in
index ab79a197c..adaab6014 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -115,13 +115,14 @@ install: install_runtime install_dev
RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB=$(shell $(top_srcdir)extra/scripts/relative_path.sh $(DEVEL_PREFIX)lib $(RUNTIME_PREFIX)lib)
+$(top_builddir)extra/scripts/unifdef: $(top_srcdir)extra/scripts/unifdef.c
+ $(hcompile.u)
+
# Installs header files.
-install_headers: headers
+install_headers: headers $(top_builddir)extra/scripts/unifdef
$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
- printf ".svn\n.cvsignore\nCVS\n" > tar_exclude ; \
- $(TAR) -chf - -X tar_exclude include \
- | $(TAR) -xf - -C $(PREFIX)$(DEVEL_PREFIX)
- rm -f tar_exclude
+ top_builddir=$(top_builddir) \
+ $(top_srcdir)extra/scripts/install_headers.sh include $(PREFIX)$(DEVEL_PREFIX)include
printf '#ifndef _LIBC_INTERNAL_H\n#define _LIBC_INTERNAL_H 1\n#endif\n' > \
$(PREFIX)$(DEVEL_PREFIX)include/libc-internal.h
echo '/* Dont use _syscall#() macros; use the syscall() function */' > \
@@ -212,10 +213,6 @@ ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
# Remove this as it is only used internally.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/tls.h
endif
- -@for i in `find $(PREFIX)$(DEVEL_PREFIX)include -type d` ; do \
- chmod 755 $$i; chmod 644 $$i/*.h > /dev/null 2>&1; \
- done
- -chown -R `id | sed 's/^uid=\([0-9]*\).*gid=\([0-9]*\).*$$/\1:\2/'` $(PREFIX)$(DEVEL_PREFIX)include
# Installs development library links.
install_dev: install_headers