5 include $(TOPDIR)/Makedefs
7 vpath % $(TOPDIR)/stmf0:$(TOPDIR)/product:$(TOPDIR)/drivers:$(TOPDIR)/kernel:$(TOPDIR)/util:$(TOPDIR)/kalman:$(TOPDIR/aes):$(TOPDIR):$(TOPDIR)/math
8 vpath make-altitude $(TOPDIR)/util
9 vpath make-kalman $(TOPDIR)/util
10 vpath kalman.5c $(TOPDIR)/kalman
11 vpath kalman_filter.5c $(TOPDIR)/kalman
12 vpath load_csv.5c $(TOPDIR)/kalman
13 vpath matrix.5c $(TOPDIR)/kalman
14 vpath ao-make-product.5c $(TOPDIR)/util
19 $(ELFTOHEX) --output=$@ $*.elf
22 include $(TOPDIR)/Version
25 ELFTOHEX=$(TOPDIR)/../ao-tools/ao-elftohex/ao-elftohex
28 WARN_FLAGS=-Wall -Wextra -Werror
30 AO_CFLAGS=-I. -I$(TOPDIR)/stmf0 -I$(TOPDIR)/kernel -I$(TOPDIR)/drivers -I$(TOPDIR)/product -I$(TOPDIR) -I$(TOPDIR)/math $(PDCLIB_INCLUDES)
31 STMF0_CFLAGS=-std=gnu99 -mlittle-endian -mcpu=cortex-m0 -mthumb\
32 -ffreestanding -nostdlib $(AO_CFLAGS) $(WARN_FLAGS)
36 LIBS=$(PDCLIB_LIBS_M0) -lgcc
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 $@ $<