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# 6# GNU Make based build file. For details on GNU Make see: 7# http://www.gnu.org/software/make/manual/make.html 8# 9 10__PROJECT_LIST__ 11 12# Define the default target 13all: 14 15CONFIG=debug 16 17# 18# Target Macro 19# 20# Macro defines a phony target for each example, and adds it to a list of 21# targets. 22# 23define TARGET 24TARGET_LIST+=$(1)_TARGET 25.PHONY: $(1)_TARGET 26$(1)_TARGET: 27 +$(MAKE) BUILDTYPE=glibc-$(CONFIG) -C $(1) 28 +$(MAKE) BUILDTYPE=newlib-$(CONFIG) -C $(1) 29 +$(MAKE) BUILDTYPE=host-$(CONFIG) -C $(1) 30 31CLEAN_LIST+=$(1)_CLEAN 32.PHONY: $(1)_CLEAN 33$(1)_CLEAN: 34 +$(MAKE) -C $(1) clean 35endef 36 37 38# Define the various targets via the Macro 39$(foreach proj,$(PROJECTS),$(eval $(call TARGET,$(proj)))) 40 41__DEPENDENCIES__ 42 43all: $(TARGET_LIST) 44 echo "Done building targets." 45 46clean: $(CLEAN_LIST) 47 echo "Done cleaning targets." 48 49RUN: all 50 echo "Staring up python webserver." 51 python httpd.py 52 53