OSDN Git Service

buildsys: remove surplus slashes from test dir paths
[uclinux-h8/uClibc.git] / test / Makefile
index 63d2990..e34c295 100644 (file)
@@ -26,14 +26,30 @@ endif
 ifneq ($(UCLIBC_HAS_REGEX),y)
        DIRS := $(filter-out regex,$(DIRS))
 endif
-DIRS := $(filter-out math,$(DIRS))
-
+ifneq ($(UCLIBC_HAS_THREADS_NATIVE),y)
+       DIRS := $(filter-out tls nptl,$(DIRS))
+endif
+ifneq ($(UCLIBC_HAS_WCHAR),y)
+       DIRS := $(filter-out locale-mbwc,$(DIRS))
+endif
+ifneq ($(UCLIBC_HAS_LOCALE),y)
+       DIRS := $(filter-out locale,$(DIRS))
+endif
+ifneq ($(UCLIBC_HAS_CRYPT_IMPL),y)
+       DIRS := $(filter-out crypt,$(DIRS))
+endif
+ifeq ($(HAS_NO_THREADS),y)
+       DIRS := $(filter-out pthread,$(DIRS))
+endif
 
 test check all: run
 
 run: compile subdirs_run
 
-compile:subdirs_compile
+compile: $(top_builddir)$(LOCAL_INSTALL_PATH) subdirs_compile
+
+$(top_builddir)$(LOCAL_INSTALL_PATH):
+       $(Q)$(MAKE) -C $(top_builddir) $(LOCAL_INSTALL_PATH)
 
 tags:
        ctags -R