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