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 \
37 easymini-v0.1 easymini-v0.1/flash-loader
42 ifneq ($(shell which sdcc),)
43 SUBDIRS += $(SDCCDIRS)
46 ifneq ($(shell which avr-gcc),)
50 ifneq ($(shell which /opt/cortex/bin/arm-none-eabi-gcc),)
54 ifneq ($(shell which /usr/bin/arm-none-eabi-gcc),)
55 SUBDIRS += $(ARMM0DIRS)
58 ALLDIRS=$(SDCCDIRS) $(AVRDIRS) $(ARMDIRS)
60 all: all-local all-recursive
62 RECURSIVE_TARGETS = all-recursive install-recursive
65 @target=`echo $@ | sed 's/-recursive//'`; \
66 for subdir in $(SUBDIRS); do \
67 echo "Making $$target in $$subdir"; \
68 (cd $$subdir && $(MAKE) $$target) || exit 1; \
71 ALL_RECURSIVE_TARGETS = clean-recursive
73 $(ALL_RECURSIVE_TARGETS):
74 @target=`echo $@ | sed 's/-recursive//'`; \
75 for subdir in $(ALLDIRS); do \
76 echo "Making $$target in $$subdir"; \
77 (cd $$subdir && $(MAKE) $$target) || exit 1; \
82 clean: clean-local clean-recursive
84 install: install-recursive
88 all-recursive: all-local
90 all-local: altitude.h altitude-pa.h ao_kalman.h ao_whiten.h
92 altitude.h: make-altitude
95 altitude-pa.h: make-altitude-pa
98 ao_kalman.h: make-kalman kalman.5c kalman_filter.5c load_csv.5c matrix.5c
101 ao_whiten.h: make-whiten
105 rm -f altitude.h ao_kalman.h