Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. top_builddir=../
  8. include Rules.mak
  9. ALL_SUBDIRS := $(patsubst %/Makefile,%,$(wildcard */Makefile))
  10. DIRS := $(ALL_SUBDIRS)
  11. ifneq ($(HAVE_SHARED)$(UCLIBC_HAS_THREADS),yy)
  12. DIRS := $(filter-out dlopen,$(DIRS))
  13. endif
  14. ifneq ($(findstring -static,$(LDFLAGS)),)
  15. DIRS := $(filter-out dlopen,$(DIRS))
  16. endif
  17. ifneq ($(UCLIBC_HAS_THREADS),y)
  18. DIRS := $(filter-out pthread,$(DIRS))
  19. endif
  20. ifneq ($(UCLIBC_HAS_FULL_RPC),y)
  21. DIRS := $(filter-out rpc,$(DIRS))
  22. endif
  23. ifneq ($(UCLIBC_HAS_REGEX),y)
  24. DIRS := $(filter-out regex,$(DIRS))
  25. endif
  26. DIRS := $(filter-out math,$(DIRS))
  27. test check all: subdirs
  28. tags:
  29. ctags -R
  30. clean: subdirs_clean
  31. subdirs: $(patsubst %, _dir_%, $(DIRS))
  32. subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
  33. $(patsubst %, _dir_%, $(DIRS)) : dummy
  34. $(Q)$(MAKE) -C $(patsubst _dir_%, %, $@)
  35. $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
  36. $(Q)$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
  37. .PHONY: all check clean dummy subdirs subdirs_clean test