Makefile_gyp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. #
  5. # GNU Make based build file.  For details on GNU Make see:
  6. #   http://www.gnu.org/software/make/manual/make.html
  7. #
  8. __PROJECT_LIST__
  9. # Define the default target
  10. all:
  11. CONFIG=debug
  12. #
  13. # Target Macro
  14. #
  15. # Macro defines a phony target for each example, and adds it to a list of
  16. # targets.
  17. #
  18. define TARGET
  19. TARGET_LIST+=$(1)_TARGET
  20. .PHONY: $(1)_TARGET
  21. $(1)_TARGET:
  22. +$(MAKE) BUILDTYPE=glibc-$(CONFIG) -C $(1)
  23. +$(MAKE) BUILDTYPE=newlib-$(CONFIG) -C $(1)
  24. +$(MAKE) BUILDTYPE=host-$(CONFIG) -C $(1)
  25. CLEAN_LIST+=$(1)_CLEAN
  26. .PHONY: $(1)_CLEAN
  27. $(1)_CLEAN:
  28. +$(MAKE) -C $(1) clean
  29. endef
  30. # Define the various targets via the Macro
  31. $(foreach proj,$(PROJECTS),$(eval $(call TARGET,$(proj))))
  32. __DEPENDENCIES__
  33. all: $(TARGET_LIST)
  34. echo "Done building targets."
  35. clean: $(CLEAN_LIST)
  36. echo "Done cleaning targets."
  37. RUN: all
  38. echo "Staring up python webserver."
  39. python httpd.py