5 include $(TOPDIR)/Makedefs
7 vpath % $(TOPDIR)/lpc:$(TOPDIR)/product:$(TOPDIR)/drivers:$(TOPDIR)/core:$(TOPDIR)/util:$(TOPDIR)/kalman:$(TOPDIR/aes):$(TOPDIR)
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
23 include $(TOPDIR)/Version
26 ELFTOHEX=$(TOPDIR)/../ao-tools/ao-elftohex/ao-elftohex
29 AO_CFLAGS=-I. -I$(TOPDIR)/lpc -I$(TOPDIR)/core -I$(TOPDIR)/drivers -I$(TOPDIR)/product -I$(TOPDIR)
30 LPC_CFLAGS=-std=gnu99 -mlittle-endian -mcpu=cortex-m0 -mthumb -ffreestanding -nostdlib $(AO_CFLAGS)
34 LIBS=-lpdclib-cortex-m0 -lgcc
37 # The user has explicitly enabled quiet compilation.
39 quiet = @printf " $1 $2 $@\n"; $($1)
41 # Otherwise, print the full command line.
45 $(call quiet,CC) -c $(CFLAGS) -o $@ $<