blob: 16e3547c57dfdd3f9fb76c2dd6ae63d178d4b487 [file] [log] [blame]
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# GNU Make based build file.  For details on GNU Make see:
#   http://www.gnu.org/software/make/manual/make.html
#
PROJECTS:=dlopen file_histogram fullscreen_tumbler gamepad geturl
PROJECTS:=hello_world_glibc hello_world_interactive hello_world_newlib
PROJECTS:=input_events load_progress mouselock multithreaded_input_events
PROJECTS:=pi_generator pong sine_synth tumbler websocket
# Define the default target
all:
#
# Target Macro
#
# Macro defines a phony target for each example, and adds it to a list of
# targets.
#
define TARGET
TARGET_LIST+=$(1)_TARGET
.PHONY: $(1)_TARGET
$(1)_TARGET:
+$(MAKE) -C $(1)
endef
# Define the various targets via the Macro
$(foreach proj,$(PROJECTS),$(eval $(call TARGET,$(proj))))
all: $(TARGET_LIST)
echo "Done building targets."
RUN: all
echo "Staring up python webserver."
python httpd.py