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
26 telescience-v0.1 telescience-pwm micropeak
29 telemega-v0.1 telemega-v0.1/flash-loader \
30 telemega-v0.3 telemega-v0.3/flash-loader \
31 megadongle-v0.1 megadongle-v0.1/flash-loader \
32 telegps-v0.1 telegps-v0.1/flash-loader \
33 stm-bringup stm-demo \
34 telelco-v0.2 telelco-v0.2/flash-loader \
35 telescience-v0.2 telescience-v0.2/flash-loader
40 ifneq ($(shell which sdcc),)
41 SUBDIRS += $(SDCCDIRS)
44 ifneq ($(shell which avr-gcc),)
48 ifneq ($(shell which /opt/cortex/bin/arm-none-eabi-gcc),)
52 ifneq ($(shell which /usr/bin/arm-none-eabi-gcc),)
53 SUBDIRS += $(ARMM0DIRS)
56 ALLDIRS=$(SDCCDIRS) $(AVRDIRS) $(ARMDIRS)
58 all: all-local all-recursive
60 RECURSIVE_TARGETS = all-recursive install-recursive
63 @target=`echo $@ | sed 's/-recursive//'`; \
64 for subdir in $(SUBDIRS); do \
65 echo "Making $$target in $$subdir"; \
66 (cd $$subdir && $(MAKE) $$target) || exit 1; \
69 ALL_RECURSIVE_TARGETS = clean-recursive
71 $(ALL_RECURSIVE_TARGETS):
72 @target=`echo $@ | sed 's/-recursive//'`; \
73 for subdir in $(ALLDIRS); do \
74 echo "Making $$target in $$subdir"; \
75 (cd $$subdir && $(MAKE) $$target) || exit 1; \
80 clean: clean-local clean-recursive
82 install: install-recursive
86 all-recursive: all-local
88 all-local: altitude.h altitude-pa.h ao_kalman.h ao_whiten.h
90 altitude.h: make-altitude
93 altitude-pa.h: make-altitude-pa
96 ao_kalman.h: make-kalman kalman.5c kalman_filter.5c load_csv.5c matrix.5c
99 ao_whiten.h: make-whiten
103 rm -f altitude.h ao_kalman.h