1 vpath % ../stm:../product:../drivers:../kernel:../util:../kalman:../aes:../math:../draw:../scheme:..
2 vpath make-altitude ../util
3 vpath make-kalman ../util
4 vpath kalman.5c ../kalman
5 vpath kalman_filter.5c ../kalman
6 vpath load_csv.5c ../kalman
7 vpath matrix.5c ../kalman
8 vpath ao-make-product.5c ../util
13 $(ELFTOHEX) --output=$@ $*.elf
20 include $(TOPDIR)/Version
22 include $(TOPDIR)/Makedefs
25 LIBS=$(PDCLIB_LIBS_M3) -lgcc
27 WARN_FLAGS=-Wall -Wextra -Werror
29 AO_CFLAGS=-I. -I../stm -I../kernel -I../drivers -I../math -I../draw -I../lisp -I.. $(PDCLIB_INCLUDES)
30 STM_CFLAGS=-std=gnu99 -mlittle-endian -mcpu=cortex-m3 -mthumb -Wcast-align \
31 -ffreestanding -nostdlib $(AO_CFLAGS) $(WARN_FLAGS)
33 LDFLAGS=-L../stm -Wl,-Taltos.ld
36 ELFTOHEX=$(TOPDIR)/../ao-tools/ao-elftohex/ao-elftohex
39 # The user has explicitly enabled quiet compilation.
41 quiet = @printf " $1 $2 $@\n"; $($1)
43 # Otherwise, print the full command line.
47 $(call quiet,CC) -c $(CFLAGS) -o $@ $<