-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
41 lines (35 loc) · 860 Bytes
/
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
SFP_DEMOS=balls conway fractals sdcard wav_player wolf rpi2-mmc
FULL_DEMOS=2048 $(SFP_DEMOS)
BUILD=Debug
GPRBUILD=gprbuild -XBUILD=$(BUILD)
all: sfp full
sfp:
for f in $(SFP_DEMOS); do \
for p in $$f/*.gpr; do \
echo $$p | grep common > /dev/null; \
if [ $$? = 1 ]; then \
echo $$p; \
$(GPRBUILD) -XRTS=ravenscar-sfp -P $$p -p -q -j0; \
fi; \
done; \
done
full:
for f in $(FULL_DEMOS); do \
for p in $$f/*.gpr; do \
echo $$p; \
$(GPRBUILD) -XRTS=ravenscar-full -P $$p -p -q -j0; \
done; \
done
clean:
for f in $(FULL_DEMOS); do \
for p in $$f/*.gpr; do \
echo $$p; \
gprclean -XRTS=ravenscar-full -P $$p -q -r; \
done; \
done
for f in $(SFP_DEMOS); do \
for p in $$f/*.gpr; do \
echo $$p; \
gprclean -XRTS=ravenscar-sfp -P $$p -q -r; \
done; \
done