5 vpath make-altitude util
6 vpath make-altitude-pa util
10 vpath kalman_filter.5c kalman
11 vpath kalman_micro.5c kalman
12 vpath load_csv.5c kalman
13 vpath matrix.5c kalman
18 telemetrum-v1.2 telemetrum-v1.1 telemetrum-v1.0 \
22 teleterra-v0.2 teleshield-v0.1 \
23 telefire-v0.1 telefire-v0.2 \
27 telescience-v0.1 telescience-pwm micropeak nanopeak-v0.1
30 telemega-v0.1 telemega-v0.1/flash-loader \
31 telemega-v0.3 telemega-v0.3/flash-loader \
32 megadongle-v0.1 megadongle-v0.1/flash-loader \
33 telegps-v0.3 telegps-v0.3/flash-loader \
34 stm-bringup stm-demo \
35 telelco-v0.2 telelco-v0.2/flash-loader \
36 telescience-v0.2 telescience-v0.2/flash-loader
39 easymini-v1.0 easymini-v1.0/flash-loader
41 ifneq ($(shell which sdcc),)
42 SUBDIRS += $(SDCCDIRS)
45 ifneq ($(shell which avr-gcc),)
49 ifneq ($(shell which /opt/cortex/bin/arm-none-eabi-gcc),)
53 ifneq ($(shell which /usr/bin/arm-none-eabi-gcc),)
54 SUBDIRS += $(ARMM0DIRS)
57 ALLDIRS=$(SDCCDIRS) $(AVRDIRS) $(ARMDIRS)
59 all: all-local all-recursive
61 RECURSIVE_TARGETS = all-recursive install-recursive
64 @target=`echo $@ | sed 's/-recursive//'`; \
65 for subdir in $(SUBDIRS); do \
66 echo "Making $$target in $$subdir"; \
67 (cd $$subdir && $(MAKE) $$target) || exit 1; \
70 ALL_RECURSIVE_TARGETS = clean-recursive
72 $(ALL_RECURSIVE_TARGETS):
73 @target=`echo $@ | sed 's/-recursive//'`; \
74 for subdir in $(ALLDIRS); do \
75 echo "Making $$target in $$subdir"; \
76 (cd $$subdir && $(MAKE) $$target) || exit 1; \
81 clean: clean-local clean-recursive
83 install: install-recursive
87 all-recursive: all-local
89 all-local: altitude.h altitude-pa.h ao_kalman.h ao_whiten.h
91 altitude.h: make-altitude
94 altitude-pa.h: make-altitude-pa
97 ao_kalman.h: make-kalman kalman.5c kalman_filter.5c load_csv.5c matrix.5c
100 ao_whiten.h: make-whiten
104 rm -f altitude.h ao_kalman.h