blob: 1c891c3169f8b5e84b3d2d3db6f4f858b5d4bf1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright (c) 2012 The Native Client 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 fullscreen_tumbler gamepad geturl hello_world_glibc
PROJECTS+=hello_world_interactive hello_world_newlib input_events load_progress
PROJECTS+=mouselock multithreaded_input_events pi_generator pong sine_synth
PROJECTS+=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
|