forked from bhk/tooltree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (38 loc) · 1.41 KB
/
Makefile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
#--------------------------------
# Project = packages to build
#
# This is in the format of a package `deps` variable. The project itself can
# be thought of as a package named `all` that lists these dependencies.
Project = smark webdemo mdb
#--------------------------------
# Variants = variants (of the project) to build
#
# Each project variant usually builds the same variant of each dependency
# listed in $(Project), but not always:
#
# 1. The dependency in $(Project) may include an explicit query string,
# in which case it will not inherit the project's variant.
#
# 2. The dependency's Package file may specify some other `v` instead
# of using the query string.
Variants ?= $(V.default) # gcc llvm arm android
#--------------------------------
# Package properties
# The `dir` property gives the root directory for package $I
Package.dir = $(wildcard $I opensource/$I)
#--------------------------------
# Variant properties
# `.host` is the variant to use for tools
V.host = $(firstword $(filter $(V.default) gcc llvm,$(Variants)) $(V.default))
V[android].skipTests = true
V[android].c-targetOS = Linux
#--------------------------------
customRules = smoke uberclean allclean
include crank/project.mak
smoke: uberclean
make configure Project='cdep ctools mdb p4x pakman smark pages webdemo' Variants='$(V.default) gcc'
make -j12
uberclean:
git clean -xdf
allclean:
rm -rf .built */.crank/ */out/