summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-14 02:52:28 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-14 02:52:28 +0000
commit93b85123789edb7bbbf9fb7b90dcdfaf696febe1 (patch)
treeae0fe7f07204bea1a5ff7a060c76bff8532feeb7 /test/Makefile
parent4a6677f09c03512c0e5c702dd05c471932c6ddb6 (diff)
add more test dirs, touchup output, and some other misc touchups
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile28
1 files changed, 16 insertions, 12 deletions
diff --git a/test/Makefile b/test/Makefile
index 5e1c086ae..602beaef4 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -7,25 +7,30 @@
top_builddir=../
-include $(top_builddir).config
+include Rules.mak
-.EXPORT_ALL_VARIABLES:
-
-
-ALL_SUBDIRS = \
- args assert crypt ctype pwd_grp signal silly stdlib string unistd \
- mmap #misc
+ALL_SUBDIRS := \
+ args assert crypt ctype pwd_grp signal silly stat stdlib string unistd \
+ mmap misc
DIRS := $(ALL_SUBDIRS)
ifeq ($(HAVE_SHARED)$(UCLIBC_HAS_THREADS),yy)
+ifeq ($(findstring -static,$(LDFLAGS)),)
DIRS += dlopen
endif
+endif
ifeq ($(UCLIBC_HAS_THREADS),y)
DIRS += pthread
endif
-ALL_SUBDIRS += pthread dlopen
+ifeq ($(UCLIBC_HAS_FULL_RPC),y)
+ DIRS += rpc
+endif
+ALL_SUBDIRS += dlopen pthread rpc
+ALL_SUBDIRS := $(sort $(ALL_SUBDIRS))
+DIRS := $(sort $(DIRS))
-all: subdirs
+test check all: subdirs
tags:
ctags -R
@@ -36,10 +41,9 @@ subdirs: $(patsubst %, _dir_%, $(DIRS))
subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
$(patsubst %, _dir_%, $(DIRS)) : dummy
- @echo "Making test in $(patsubst _dir_%,%,$@)"
- $(MAKE) -C $(patsubst _dir_%, %, $@)
+ $(Q)$(MAKE) -C $(patsubst _dir_%, %, $@)
$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
- $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
+ $(Q)$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
-.PHONY: dummy
+.PHONY: all check clean dummy subdirs subdirs_clean test