export header_extra_args = -n
endif
headers: include/bits/uClibc_config.h
-ifeq ($(wildcard include/headers_done),)
@$(SHELL_SET_X); \
$(top_srcdir)extra/scripts/fix_includes.sh \
-k $(KERNEL_SOURCE) -t $(TARGET_ARCH) \
mv -f include/bits/sysnum.h.new include/bits/sysnum.h; \
fi
$(MAKE) headers-y
- touch include/headers_done
-endif
# Command used to download source code
WGET:=wget --passive-ftp
fi ; \
tar -chf - include --exclude .svn $$extra_exclude \
| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
- $(RM) $(PREFIX)$(DEVEL_PREFIX)include/headers_done
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/ssp-internal.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/dl-osinfo.h
ifneq ($(UCLIBC_HAS_FLOATS),y)
@$(RM) -r lib include/bits
$(RM) lib*/*.a ldso/*/*.a libpthread/*/*.a
$(RM) libc/misc/internals/interp.c
- $(RM) include/fpu_control.h include/dl-osinfo.h include/headers_done
+ $(RM) include/fpu_control.h include/dl-osinfo.h
$(MAKE) -C extra/locale clean
$(MAKE) headers_clean-y
$(MAKE) -C test clean
pre-y: interp-y ld-uClibc-y
libc-y: pre-y $(libc) crt-y $(top_builddir)lib/$(NONSHARED_LIBNAME)
lib-so-y: libc-y $(lib-so-y)
-lib-a-y: $(top_builddir)include/headers_done crt-y $(lib-a-y)
-
-$(top_builddir)include/headers_done:
- @cd $(top_builddir); $(MAKE) headers
+lib-a-y: crt-y $(lib-a-y)
ifneq ($(findstring s,$(MAKEFLAGS)),)
DISP := sil
ld-uClibc-y := $(top_builddir)lib/$(patsubst %.$(MAJOR_VERSION),%,$(UCLIBC_LDSO))
objclean-y += ld-uClibc_clean
-$(top_builddir)lib/$(patsubst %.$(MAJOR_VERSION),%,$(UCLIBC_LDSO)): $(ld-uClibc_OUT)/ld-uClibc_so.a $(top_builddir)include/headers_done
+$(top_builddir)lib/$(patsubst %.$(MAJOR_VERSION),%,$(UCLIBC_LDSO)): $(ld-uClibc_OUT)/ld-uClibc_so.a
$(call link.so,$(ldso_FULL_NAME),$(MAJOR_VERSION))
$(ld-uClibc_OUT)/ld-uClibc_so.a: $(ld-uClibc-so-y)
MISC_INTERNALS_SRC:=$(patsubst %.c,$(MISC_INTERNALS_DIR)/%.c,$(CSRC))
MISC_INTERNALS_OBJ:=$(patsubst %.c,$(MISC_INTERNALS_OUT)/%.o,$(CSRC))
-$(MISC_INTERNALS_OUT)/interp.c: $(top_builddir)include/headers_done
+$(MISC_INTERNALS_OUT)/interp.c:
$(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
$(Q)echo "#include <features.h>" >> $@
$(Q)echo "#ifdef __HAVE_ELF__" >> $@