3 # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
5 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
9 -include $(top_builddir).config
13 args assert crypt ctype mmap misc pwd_grp setjmp signal silly stat \
14 stdlib string termios unistd
15 DIRS := $(ALL_SUBDIRS)
17 ifeq ($(HAVE_SHARED)$(UCLIBC_HAS_THREADS),yy)
18 ifeq ($(findstring -static,$(LDFLAGS)),)
22 ifeq ($(UCLIBC_HAS_THREADS),y)
25 ifeq ($(UCLIBC_HAS_FULL_RPC),y)
28 ALL_SUBDIRS += dlopen pthread rpc
29 ALL_SUBDIRS := $(sort $(ALL_SUBDIRS))
30 DIRS := $(sort $(DIRS))
33 test check all: subdirs
40 subdirs: $(patsubst %, _dir_%, $(DIRS))
41 subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
43 $(patsubst %, _dir_%, $(DIRS)) : dummy
44 $(Q)$(MAKE) -C $(patsubst _dir_%, %, $@)
46 $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
47 $(Q)$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
49 .PHONY: all check clean dummy subdirs subdirs_clean test