altos: Software implemenation of CC1111 radio encoding
[fw/altos] / src / Makefile
1 #
2 # AltOS build
3 #
4 #
5
6 vpath make-altitude util
7 vpath make-altitude-pa util
8 vpath make-kalman util
9 vpath make-whiten util
10 vpath kalman.5c kalman
11 vpath kalman_filter.5c kalman
12 vpath load_csv.5c kalman
13 vpath matrix.5c kalman
14
15 include Version
16
17 SUBDIRS=\
18         megametrum-v0.1 \
19         stm-bringup stm-demo \
20         telemetrum-v1.2 telemetrum-v1.1 telemetrum-v1.0 \
21         teledongle-v0.2 teledongle-v0.1 \
22         telemini-v1.0 telenano-v0.1 \
23         telebt-v0.0 telebt-v0.1 \
24         telemetrum-v0.1-sky telemetrum-v0.1-sirf \
25         telelaunch-v0.1 \
26         tidongle test telescience-v0.1 telepyro-v0.1 \
27         teleterra-v0.2 teleshield-v0.1
28
29 all: all-local all-recursive
30
31 RECURSIVE_TARGETS = all-recursive clean-recursive install-recursive
32
33 $(RECURSIVE_TARGETS):
34         @target=`echo $@ | sed 's/-recursive//'`; \
35         for subdir in $(SUBDIRS); do \
36                 echo "Making $$target in $$subdir"; \
37                 (cd $$subdir && $(MAKE) $$target) || exit 1; \
38         done
39
40 distclean:      clean
41
42 clean: clean-local clean-recursive
43
44 install: install-recursive
45
46 uninstall:
47
48 all-recursive: all-local
49
50 all-local: altitude.h altitude-pa.h ao_kalman.h ao_whiten.h
51
52 altitude.h: make-altitude
53         nickle $< > $@
54
55 altitude-pa.h: make-altitude-pa
56         nickle $< > $@
57
58 ao_kalman.h: make-kalman kalman.5c kalman_filter.5c load_csv.5c matrix.5c
59         bash $< kalman > $@
60
61 ao_whiten.h: make-whiten
62         nickle $< > $@
63
64 clean-local:
65         rm -f altitude.h ao_kalman.h