Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Makefile for uClibc-ng-test
  2. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  3. top_srcdir=../
  4. top_builddir=../
  5. include Rules.mak
  6. ALL_SUBDIRS := $(patsubst %/Makefile,%,$(wildcard */Makefile))
  7. DIRS := $(ALL_SUBDIRS)
  8. ifeq ($(NO_LOCALE),1)
  9. DIRS := $(filter-out locale,$(DIRS))
  10. endif
  11. test check all: run
  12. run: subdirs_run
  13. gen:
  14. -rm -f $(top_builddir)/test/uclibcng-testrunner.in
  15. $(MAKE) run UCLIBCNG_GENERATE_TESTRUNNER=1
  16. compile: subdirs_compile
  17. clean: subdirs_clean
  18. subdirs: $(patsubst %, _dir_%, $(DIRS))
  19. subdirs_compile: $(patsubst %, _dircompile_%, $(DIRS))
  20. subdirs_run: $(patsubst %, _dirrun_%, $(DIRS))
  21. subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
  22. $(patsubst %, _dir_%, $(DIRS)) : dummy
  23. $(Q)$(MAKE) -C $(patsubst _dir_%, %, $@) \
  24. KCONFIG_CONFIG=$(KCONFIG_CONFIG)
  25. $(patsubst %, _dirrun_%, $(DIRS)) : dummy
  26. $(Q)$(MAKE) -C $(patsubst _dirrun_%, %, $@) run \
  27. UCLIBCNG_TEST_SUBDIR=$(strip $(patsubst _dirrun_%, %, $@))
  28. $(patsubst %, _dircompile_%, $(DIRS)) : dummy
  29. $(Q)$(MAKE) -C $(patsubst _dircompile_%, %, $@) compile
  30. $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
  31. $(Q)$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
  32. .PHONY: all check clean dummy subdirs_compile subdirs_run subdirs subdirs_clean test run compile