3 # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
5 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8 #--------------------------------------------------------------
9 # You shouldn't need to mess with anything beyond this point...
10 #--------------------------------------------------------------
11 clean_targets := clean realclean distclean \
12 objclean-y headers_clean-y CLEAN_utils
13 noconfig_targets := menuconfig config oldconfig silentoldconfig randconfig \
14 defconfig allyesconfig allnoconfig \
15 release dist tags help
17 include $(top_srcdir)Rules.mak
18 sub_headers := headers
20 KCONFIG_CONFIG := $(top_builddir).config
24 ifeq ($(HAVE_DOT_CONFIG),y)
29 # In this section, we need .config
30 -include $(top_builddir).config.cmd
32 else # ifeq ($(HAVE_DOT_CONFIG),y)
37 @echo "Need to make a config file first, run: make menuconfig"
40 endif # ifeq ($(HAVE_DOT_CONFIG),y)
42 include $(top_srcdir)ldso/Makefile.in
43 include $(top_srcdir)libcrypt/Makefile.in
44 include $(top_srcdir)libintl/Makefile.in
45 include $(top_srcdir)libm/Makefile.in
46 include $(top_srcdir)libnsl/Makefile.in
47 include $(top_srcdir)libresolv/Makefile.in
48 include $(top_srcdir)libutil/Makefile.in
49 include $(top_srcdir)libpthread/Makefile.in
50 include $(top_srcdir)librt/Makefile.in
51 include $(top_srcdir)extra/locale/Makefile.in
53 # last included to catch all the objects added by others (locales/threads)
54 include $(top_srcdir)libc/Makefile.in
56 ifeq ($(HAVE_DOT_CONFIG),y)
57 # If the .config changes then we have to make sure that our includes are
58 # updated properly. This would normally work by saying that the headers
59 # have uClibc_config.h as prerequisite but since we _symlink_ the headers
60 # and do not (?) want to rely on 'make -L' we better update them right here,
61 # on spot to save us from alot of hazzle.
62 $(top_builddir)include/bits/uClibc_config.h: $(top_builddir)extra/config/conf $(KCONFIG_CONFIG) $(top_srcdir)extra/scripts/conf-header.sh | $(top_builddir)include/bits $(top_builddir)include/config
64 $(Q)@$< -s $(top_srcdir)extra/Configs/Config.in
65 $(Q)$(top_srcdir)extra/scripts/conf-header.sh $(KCONFIG_CONFIG) > $@
68 # The above doesn't work for threads, though. Just using check-symlinks for now.
69 # XXX: FIXME: this is ugly
72 $(top_builddir)include/config/linuxthreads/old.h $(top_builddir)include/config/linuxthreads/new.h:
75 # For the moment, we have to keep re-running this target
76 # because the fix includes scripts rely on pre-processers
77 # in order to generate the headers correctly :(. That
78 # means we can't use the $(HOSTCC) in order to get the
80 ifeq ($(ARCH_USE_MMU),y)
81 export header_extra_args =
83 export header_extra_args = -n
85 HEADERS_BITS_COMMON := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/common/bits/*.h))
86 HEADERS_BITS_ARCH := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/*.h))
87 HEADERS_BITS_SUBARCH :=
88 ifneq ($(TARGET_SUBARCH),)
89 HEADERS_BITS_SUBARCH := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(TARGET_SUBARCH)/*.h))
91 HEADERS_BITS_COMMON := $(filter-out $(HEADERS_BITS_ARCH) $(HEADERS_BITS_SUBARCH) $(HEADERS_BITS_PTHREAD),$(HEADERS_BITS_COMMON))
93 HEADERS_SYS_COMMON := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/common/sys/*.h))
94 HEADERS_SYS_ARCH := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/sys/*.h))
95 HEADERS_SYS_COMMON := $(filter-out $(HEADERS_SYS_ARCH),$(HEADERS_SYS_COMMON))
97 ALL_HEADERS_COMMON := $(top_builddir)include/fpu_control.h \
98 $(top_builddir)include/dl-osinfo.h \
99 $(top_builddir)include/hp-timing.h
100 ALL_HEADERS_BITS_COMMON := $(addprefix $(top_builddir)include/bits/,$(HEADERS_BITS_COMMON))
101 ALL_HEADERS_BITS_ARCH := $(addprefix $(top_builddir)include/bits/,$(HEADERS_BITS_ARCH))
102 ifneq ($(TARGET_SUBARCH),)
103 ALL_HEADERS_BITS_SUBARCH := $(addprefix $(top_builddir)include/bits/,$(HEADERS_BITS_SUBARCH))
105 ALL_HEADERS_BITS_SUBARCH :=
107 ALL_HEADERS_SYS_COMMON := $(addprefix $(top_builddir)include/sys/,$(HEADERS_SYS_COMMON))
108 ALL_HEADERS_SYS_ARCH := $(addprefix $(top_builddir)include/sys/,$(HEADERS_SYS_ARCH))
110 target-headers-sysdep := \
111 $(ALL_HEADERS_COMMON) \
112 $(ALL_HEADERS_BITS_COMMON) \
113 $(ALL_HEADERS_BITS_ARCH) \
114 $(ALL_HEADERS_BITS_SUBARCH) \
115 $(ALL_HEADERS_SYS_COMMON) \
116 $(ALL_HEADERS_SYS_ARCH) \
117 $(ALL_HEADERS_BITS_PTHREAD)
119 $(top_builddir)include/fpu_control.h:
121 $(Q)[ -r $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/$(@F) ] && \
122 $(LN) -fs $(call rel_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/$(@F) $@ || \
123 $(LN) -fs $(call rel_srcdir)libc/sysdeps/linux/common/$(@F) $@
125 $(top_builddir)include/dl-osinfo.h $(top_builddir)include/hp-timing.h:
126 $(do_ln) $(call rel_srcdir)libc/sysdeps/linux/common/$(@F) $@
128 $(ALL_HEADERS_BITS_COMMON):
129 $(do_ln) $(call rel_srcdir)libc/sysdeps/linux/common/bits/$(@F) $@
131 $(ALL_HEADERS_BITS_ARCH):
132 $(do_ln) $(call rel_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(@F) $@
134 ifneq ($(TARGET_SUBARCH),)
135 $(ALL_HEADERS_BITS_SUBARCH):
136 $(do_ln) $(call rel_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(TARGET_SUBARCH)/$(@F) $@
139 ifneq ($(strip $(ALL_HEADERS_SYS_COMMON)),)
140 $(ALL_HEADERS_SYS_COMMON):
141 $(do_ln) $(call rel_srcdir)libc/sysdeps/linux/common/sys/$(@F) $@
144 ifneq ($(strip $(ALL_HEADERS_SYS_ARCH)),)
145 $(ALL_HEADERS_SYS_ARCH):
146 $(do_ln) $(call rel_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/sys/$(@F) $@
149 $(target-headers-sysdep): | $(top_builddir)include/bits $(top_builddir)include/sys
152 $(do_rm) $(ALL_HEADERS_COMMON)
153 headers_clean-y += HEADERCLEAN_common
155 # The headers. Arch specific headers are specified via ARCH_HEADERS in
156 # libc/sysdeps/linux/$(TARGET_ARCH)/Makefile.arch which appends those via
157 # libc/sysdeps/linux/Makefile.commonarch to headers-y
158 headers-y += $(target-headers-sysdep)
160 headers: $(top_builddir)include/bits/uClibc_config.h $(top_builddir)include/bits/sysnum.h
161 subdirs: $(addprefix $(top_builddir),$(subdirs))
162 pregen-headers: headers $(pregen-headers-y)
163 pregen: pregen-headers subdirs
164 $(Q)$(if $(UCLIBC_HAS_LOCALE),$(MAKE) -C extra/locale locale_headers)
165 $(top_builddir)include/bits/sysnum.h: $(top_srcdir)extra/scripts/gen_bits_syscall_h.sh
166 $(Q)$(INSTALL) -d $(@D)
169 tmp=`mktemp $(top_builddir)include/bits/sysnum.h.XXXXXX 2>/dev/null || true`; \
170 [ -z "$$tmp" ] && tmp='$(top_builddir)include/bits/sysnum.h.new'; \
171 KERNEL_HEADERS="${KERNEL_HEADERS}" top_builddir="$(top_builddir)" CC="$(CC) $(CPU_CFLAGS)" $(SHELL) $< > $$tmp; \
172 if cmp $(top_builddir)include/bits/sysnum.h $$tmp >/dev/null 2>&1; then \
175 mv -f $$tmp $(top_builddir)include/bits/sysnum.h; \
177 @# Ugly linux specific hack..
178 $(Q)if grep -q __NR_ $@; then true; else \
180 echo "ERROR: Could not generate syscalls."; \
181 echo "Make sure that you have proper kernel headers."; \
182 echo "Your .config in KERNEL_HEADERS=\"\" was set to:"; \
183 echo "${KERNEL_HEADERS}"; \
187 $(LOCAL_INSTALL_PATH):
188 $(Q)$(MAKE) PREFIX=$(shell pwd)/$(LOCAL_INSTALL_PATH) RUNTIME_PREFIX=/ \
193 install: install_runtime install_dev
196 RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB=$(shell $(top_srcdir)extra/scripts/relative_path.sh $(DEVEL_PREFIX)$(MULTILIB_DIR) $(RUNTIME_PREFIX)$(MULTILIB_DIR))
198 $(top_builddir)extra/scripts/unifdef: |$(top_builddir)extra/scripts
199 $(top_builddir)extra/scripts/unifdef: $(top_srcdir)extra/scripts/unifdef.c
202 # Installs header files.
203 # a "y" here means the feature is enabled and so we should *not* rm it.
204 # if the option expands to nothing though, we can punt the headers.
208 bits/uClibc_arch_features.h \
209 bits/kernel_sigaction.h \
211 bits/kernel_types.h \
213 bits/syscalls-common.h \
215 bits/uClibc_errno.h \
216 bits/uClibc_uintmaxtostr.h \
219 bits/sigcontextinfo.h \
226 HEADERS_RM-$(UCLIBC_HAS_FLOATS) += \
232 bits/uClibc_fpmax.h \
234 HEADERS_RM-$(UCLIBC_HAS_GNU_GETOPT)$(UCLIBC_HAS_GETOPT_LONG) += getopt.h
235 HEADERS_RM-$(UCLIBC_HAS_REALTIME) += \
241 HEADERS_RM-$(UCLIBC_HAS_THREADS) += \
246 HEADERS_RM-$(UCLIBC_LINUX_SPECIFIC) += \
261 HEADERS_RM-$(HAVE_SHARED) += dlfcn.h bits/dlfcn.h
262 HEADERS_RM-$(PTHREADS_DEBUG_SUPPORT) += thread_db.h
263 HEADERS_RM-$(UCLIBC_HAS_BSD_ERR) += err.h
264 HEADERS_RM-$(UCLIBC_HAS_CRYPT) += crypt.h
265 HEADERS_RM-$(UCLIBC_HAS_EPOLL) += sys/epoll.h
266 HEADERS_RM-$(UCLIBC_HAS_FENV) += fenv.h bits/fenv.h bits/fenvinline.h
267 HEADERS_RM-$(findstring y,$(UCLIBC_HAS_FTW)$(UCLIBC_HAS_NFTW)) += ftw.h
268 HEADERS_RM-$(UCLIBC_HAS_GETTEXT_AWARENESS) += libintl.h
269 HEADERS_RM-$(UCLIBC_HAS_GLIBC_CUSTOM_PRINTF) += printf.h
270 HEADERS_RM-$(UCLIBC_HAS_GLOB) += glob.h
271 HEADERS_RM-$(UCLIBC_HAS_GNU_ERROR) += error.h
272 HEADERS_RM-$(UCLIBC_HAS_IPV6) += netinet/ip6.h netinet/icmp6.h
273 HEADERS_RM-$(UCLIBC_HAS_LOCALE) += iconv.h
274 HEADERS_RM-$(UCLIBC_HAS_PTY) += pty.h
275 HEADERS_RM-$(UCLIBC_HAS_REGEX) += regex.h regexp.h
276 HEADERS_RM-$(UCLIBC_HAS_RPC) += rpc
277 HEADERS_RM-$(UCLIBC_HAS_SHADOW) += shadow.h
278 HEADERS_RM-$(UCLIBC_HAS_SOCKET) += sys/socket.h bits/socket.h sys/socketvar.h
279 HEADERS_RM-$(UCLIBC_HAS_SYSLOG) += syslog.h sys/syslog.h bits/syslog*.h
280 HEADERS_RM-$(UCLIBC_HAS_WCHAR) += wchar.h wctype.h
281 HEADERS_RM-$(UCLIBC_HAS_WORDEXP) += wordexp.h
282 HEADERS_RM-$(UCLIBC_HAS_XATTR) += sys/xattr.h
283 HEADERS_RM-$(UCLIBC_HAS_XLOCALE) += xlocale.h
284 HEADERS_RM-$(UCLIBC_SUPPORT_AI_ADDRCONFIG) += ifaddrs.h
285 HEADERS_RM-$(UCLIBC_SV4_DEPRECATED) += ustat.h sys/ustat.h bits/ustat.h
286 HEADERS_RM-$(UCLIBC_SUSV3_LEGACY) += sys/timeb.h regexp.h
287 HEADERS_RM-$(UCLIBC_SUSV4_LEGACY) += utime.h
288 # BREAKAGE: include/signal.h uses it, this rm broke bbox compile:
291 ifneq ($(findstring install,$(MAKECMDGOALS)),)
292 $(PREFIX)$(RUNTIME_PREFIX)$(MULTILIB_DIR) $(addprefix $(PREFIX)$(DEVEL_PREFIX),include lib):
296 install_headers: headers $(top_builddir)extra/scripts/unifdef | $(PREFIX)$(DEVEL_PREFIX)include
297 top_builddir=$(top_builddir) \
298 $(top_srcdir)extra/scripts/install_headers.sh include $(PREFIX)$(DEVEL_PREFIX)include
299 cd $(PREFIX)$(DEVEL_PREFIX)include && $(RM) -r $(HEADERS_RM-)
300 ifeq ($(UCLIBC_HAS_WCHAR),)
301 cd $(PREFIX)$(DEVEL_PREFIX)include && mv -f wchar-stub.h wchar.h
303 cd $(PREFIX)$(DEVEL_PREFIX)include && $(RM) -f wchar-stub.h
306 # Installs development library links.
307 install_dev: install_headers install_runtime | $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)
308 -$(INSTALL) -m 644 $(top_builddir)lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/
309 ifeq ($(HAVE_SHARED),y)
310 for i in `cd $(top_builddir) && find lib/ -type l -name 'lib[a-zA-Z]*.so' | \
311 $(SED) -e 's/lib\///'` ; do \
312 $(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)$$i.$(ABI_VERSION) \
313 $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/$$i; \
315 ifeq ($(HARDWIRED_ABSPATH),y)
316 if [ -f $(top_builddir)lib/libc.so -a -f $(PREFIX)$(RUNTIME_PREFIX)$(MULTILIB_DIR)/$(SHARED_LIBNAME) ] ; then \
317 $(RM) $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/libc.so; \
318 $(SED) -e 's:$(NONSHARED_LIBNAME):$(DEVEL_PREFIX)$(MULTILIB_DIR)/$(NONSHARED_LIBNAME):' \
319 -e 's:$(SHARED_LIBNAME):$(RUNTIME_PREFIX)$(MULTILIB_DIR)/$(SHARED_LIBNAME):' \
320 -e 's:$(UCLIBC_LDSO):$(RUNTIME_PREFIX)$(MULTILIB_DIR)/$(UCLIBC_LDSO):' \
321 $(top_builddir)lib/libc.so > $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/libc.so; \
324 -$(INSTALL) -m 755 $(top_builddir)lib/libc.so $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/
326 ifeq ($(UCLIBC_HAS_THREADS),y)
327 ifneq ($(LINUXTHREADS_OLD),y)
328 ifeq ($(HARDWIRED_ABSPATH),y)
329 if [ -f $(top_builddir)lib/libpthread.so -a -f $(PREFIX)$(RUNTIME_PREFIX)$(MULTILIB_DIR)/libpthread.so.$(ABI_VERSION) ] ; then \
330 $(RM) $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/libpthread.so; \
331 cp $(top_srcdir)extra/scripts/format.lds $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/libpthread.so; \
332 echo "GROUP ( $(RUNTIME_PREFIX)$(MULTILIB_DIR)/libpthread.so.$(ABI_VERSION) $(DEVEL_PREFIX)$(MULTILIB_DIR)/libpthread_nonshared.a )" \
333 >> $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/libpthread.so; \
336 -$(INSTALL) -m 755 $(top_builddir)lib/libpthread.so $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/
340 ifeq ($(PTHREADS_DEBUG_SUPPORT),y)
341 $(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)libthread_db.so.1 \
342 $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/libthread_db.so
345 # # If we build shared libraries then the static libs are PIC...
346 # # Make _pic.a symlinks to make mklibs.py and similar tools happy.
347 if [ -d $(top_builddir)lib ] ; then \
348 for i in `cd $(top_builddir) && find lib/ -type f -name 'lib*.a' | $(SED) -e 's/lib\///'` ; do \
349 $(LN) -sf $$i $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/`echo $$i \
350 | $(SED) -e 's/\.a$$/_pic.a/'`; \
355 ifeq ($(UCLIBC_FORMAT_SHARED_FLAT),y)
356 for file in $(top_builddir)lib/lib*.gdb; do \
357 if test -f $$file; then \
358 $(INSTALL) -m 755 $$file $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR); \
359 $(INSTALL) -m 755 `echo $$file | $(SED) 's/\.gdb$$//'` \
360 $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR); \
365 # Installs run-time libraries
366 install_runtime: all | $(PREFIX)$(RUNTIME_PREFIX)$(MULTILIB_DIR)
367 ifeq ($(HAVE_SHARED),y)
368 $(INSTALL) -m 755 $(top_builddir)lib/lib*-$(VERSION).so \
369 $(PREFIX)$(RUNTIME_PREFIX)$(MULTILIB_DIR)
370 (cd $(top_builddir)lib && $(TAR) -cf - *.so.*) | $(TAR) -xf - -C $(PREFIX)$(RUNTIME_PREFIX)$(MULTILIB_DIR)
371 @if [ -x $(top_builddir)lib/$(UCLIBC_LDSO_NAME)-$(VERSION).so ] ; then \
374 $(INSTALL) -m 755 $(top_builddir)lib/$(UCLIBC_LDSO_NAME)-$(VERSION).so \
375 $(PREFIX)$(RUNTIME_PREFIX)$(MULTILIB_DIR); \
380 $(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" -C utils $@
382 # Installs helper applications, such as 'ldd' and 'ldconfig'
384 $(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" -C utils utils_install
386 endif # ifeq ($(HAVE_DOT_CONFIG),y)
389 $(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" HOSTCC="$(HOSTCC)" DOTHOST=.host -C utils $@
391 install_hostutils: hostutils
392 $(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" HOSTCC="$(HOSTCC)" DOTHOST=.host -C utils utils_install
394 $(addprefix $(top_builddir),include/bits include/sys include/config extra/config/lxdialog extra/locale extra/scripts $(subdirs)):
398 # ---------------------------------------------------------------------------
399 $(top_builddir)extra/config/conf $(top_builddir)extra/config/mconf: | $(top_builddir)include/config $(top_builddir)extra/config/lxdialog
400 $(Q)$(MAKE) -C extra/config $(@F)
402 menuconfig: $(top_builddir)extra/config/mconf
403 $(Q)$(top_builddir)extra/config/mconf extra/Configs/Config.in
405 config: $(top_builddir)extra/config/conf
406 $(Q)$(top_builddir)extra/config/conf extra/Configs/Config.in
408 oldconfig: $(top_builddir)extra/config/conf
409 $(Q)$(top_builddir)extra/config/conf -o extra/Configs/Config.in
411 silentoldconfig: $(top_builddir)extra/config/conf
412 $(Q)$(top_builddir)extra/config/conf -s extra/Configs/Config.in
414 randconfig: $(top_builddir)extra/config/conf
415 $(Q)$(top_builddir)extra/config/conf -r extra/Configs/Config.in
417 allyesconfig: $(top_builddir)extra/config/conf
418 $(Q)$(top_builddir)extra/config/conf -y extra/Configs/Config.in
419 $(SED) -i -e "s/^DODEBUG=.*/# DODEBUG is not set/" \
420 -e "s/^DOASSERTS=.*/# DOASSERTS is not set/" \
421 -e "s/^SUPPORT_LD_DEBUG_EARLY=.*/# SUPPORT_LD_DEBUG_EARLY is not set/" \
422 -e "s/^SUPPORT_LD_DEBUG=.*/# SUPPORT_LD_DEBUG is not set/" \
423 -e "s/^UCLIBC_MJN3_ONLY=.*/# UCLIBC_MJN3_ONLY is not set/" \
425 $(Q)$(top_builddir)extra/config/conf -o extra/Configs/Config.in
427 allnoconfig: $(top_builddir)extra/config/conf
428 $(Q)$(top_builddir)extra/config/conf -n extra/Configs/Config.in
430 defconfig: $(top_builddir)extra/config/conf
431 $(Q)$(top_builddir)extra/config/conf -d extra/Configs/Config.in \
432 -D extra/Configs/defconfigs/$(ARCH)
435 $(Q)$(MAKE) -C extra/config CLEAN_extra/config
438 $(Q)$(RM) $(top_builddir)include/fpu_control.h $(top_builddir)include/dl-osinfo.h $(top_builddir)include/hp-timing.h
440 for i in `(cd libc/sysdeps/linux/common/sys; ls *.h)` ; do \
441 $(RM) $(top_builddir)include/sys/$$i; \
443 if [ -d libc/sysdeps/linux/$(TARGET_ARCH)/sys ] ; then \
444 for i in `(cd libc/sysdeps/linux/$(TARGET_ARCH)/sys; ls *.h)` ; do \
445 $(RM) $(top_builddir)include/sys/$$i; \
450 $(Q)$(RM) -r $(top_builddir)lib $(top_builddir)include/bits
451 @$(MAKE) -C utils CLEAN_utils
452 +$(MAKE) -s -C test clean
453 @$(RM) $(top_builddir)include/linux $(top_builddir)include/asm*
454 $(Q)$(RM) $(top_builddir)extra/scripts/unifdef
455 $(Q)$(RM) -r $(LOCAL_INSTALL_PATH)
458 -find . \( -name core -o -name \*.orig -o -name \*~ -o -name .\*.dep \) -exec $(RM) {} \;
459 $(RM) $(top_builddir).config $(top_builddir).config.old $(top_builddir).config.cmd
460 $(RM) $(top_builddir)extra/locale/*.tgz
461 $(MAKE) -C extra/config distclean
464 $(RM) ../uClibc-$(VERSION).tar
465 git archive HEAD --format=tar --prefix=uClibc-$(VERSION)/ \
466 > ../uClibc-$(VERSION).tar
467 cat ../uClibc-$(VERSION).tar | bzip2 -c9 > ../uClibc-$(VERSION).tar.bz2
468 cat ../uClibc-$(VERSION).tar | xz -e -c8 > ../uClibc-$(VERSION).tar.xz
469 du -b ../uClibc-$(VERSION).tar.{bz2,xz}
471 test check: test_compile
474 test_compile: $(LOCAL_INSTALL_PATH)
475 $(Q)$(MAKE) -C test compile