GNUmakefile 579 B

12345678910111213141516171819202122232425262728
  1. ## @file
  2. # GNUmakefile for building C utilities.
  3. #
  4. # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
  5. # SPDX-License-Identifier: BSD-2-Clause-Patent
  6. #
  7. ##
  8. MAKEROOT = $(EDK_TOOLS_PATH)/Source/C
  9. APPLICATIONS = \
  10. FitGen \
  11. SUBDIRS := $(APPLICATIONS)
  12. $(APPLICATIONS): $(MAKEROOT)/bin
  13. .PHONY: subdirs $(SUBDIRS)
  14. subdirs: $(SUBDIRS)
  15. $(SUBDIRS):
  16. $(MAKE) -C $@
  17. .PHONY: $(patsubst %,%-clean,$(sort $(SUBDIRS)))
  18. $(patsubst %,%-clean,$(sort $(SUBDIRS))):
  19. -$(MAKE) -C $(@:-clean=) clean
  20. clean: $(patsubst %,%-clean,$(sort $(SUBDIRS)))