Makefile 908 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 $(top_builddir).config
  9. .EXPORT_ALL_VARIABLES:
  10. ALL_SUBDIRS = \
  11. args assert crypt ctype pwd_grp signal silly stdlib string unistd \
  12. mmap #misc
  13. DIRS := $(ALL_SUBDIRS)
  14. ifeq ($(HAVE_SHARED)$(UCLIBC_HAS_THREADS),yy)
  15. DIRS += dlopen
  16. endif
  17. ifeq ($(UCLIBC_HAS_THREADS),y)
  18. DIRS += pthread
  19. endif
  20. ALL_SUBDIRS += pthread dlopen
  21. all: subdirs
  22. tags:
  23. ctags -R
  24. clean: subdirs_clean
  25. subdirs: $(patsubst %, _dir_%, $(DIRS))
  26. subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
  27. $(patsubst %, _dir_%, $(DIRS)) : dummy
  28. @echo "Making test in $(patsubst _dir_%,%,$@)"
  29. $(MAKE) -C $(patsubst _dir_%, %, $@)
  30. $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
  31. $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
  32. .PHONY: dummy