-
Notifications
You must be signed in to change notification settings - Fork 2
/
makeunix
63 lines (50 loc) · 1.55 KB
/
makeunix
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
56
57
58
59
60
61
62
63
#
# ======== makeunix ========
# Makefile for this tree
#
include ./imports.mak
TIRTOS_REPOS = $(TIRTOS)/packages;$(SYSBIOS)/packages
MYXDC = $(XDCROOT)/xdc XDCPATH="$(CURDIR)/src;$(TIRTOS_REPOS)"
JOBS = --jobs=4
.all-files: .imports .exports .generated_files
# ======== .debug ========
# Echo build state variables
.debug:
@echo "XDC =" $(MYXDC)
@echo "TIRTOS =" $(TIRTOS)
@echo "SYSBIOS =" $(SYSBIOS)
@echo "TIRTOS_REPOS =" "$(TIRTOS_REPOS)"
# ======== .exports ========
# Builds all packages and release archives
.exports: .local-release
# ======== .local-release ========
# Builds all packages and releases
.local-release: .local-all imports.mak
@echo making energia closures ...
make -C src/bundles/energia all msp432/closure.zip cc3200/closure.zip cc26xx/closure.zip
@echo making emt_src bundle ...
make -C src/bundles/emt_src release
# ======== .local-all ========
# Builds all packages
.local-all: .imports imports.mak
-@mkdir -p exports
@echo "Building platforms ..."
$(MYXDC) $(JOBS) release -P $(wildcard src/ti/platforms/*)
@echo "Building packages ..."
$(MYXDC) $(JOBS) release -Pr src
.local-make:
$(MYXDC) $(JOBS) .make -Pr src
# ======== .local-regress ========
# Test the packages in this tree
.regress: .local-regress
.local-regress: .imports .local-all
$(MYXDC) test -Pr ./src
# ======== .clean ========
# Clean the entire tree
.clean: .local-clean
.local-clean:
-rm -f .generated_files
-rm -rf exports/
-$(MYXDC) --jobs=4 clean -Pr ./src
-make -C src/bundles/energia clean
-make -C src/bundles/emt_src clean