Merge branch 'master' of git://git.gag.com/fw/altos
[fw/altos] / src / stm / Makefile.defs
1 vpath % ../stm:../product:../drivers:../core:../util:../kalman:../aes:..
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
9
10 CC=arm-none-eabi-gcc
11 SAT=/home/keithp/sat
12 SAT_CLIB=$(SAT)/lib/pdclib.a
13 SAT_CFLAGS=-I$(SAT)/include
14
15 ifndef VERSION
16 include ../Version
17 endif
18
19 AO_CFLAGS=-I. -I../stm -I../core -I../drivers -I..
20 STM_CFLAGS=-std=gnu99 -mlittle-endian -mcpu=cortex-m3 -mthumb -ffreestanding -nostdlib $(AO_CFLAGS) $(SAT_CFLAGS)
21
22 LDFLAGS=-L../stm -Wl,-Taltos.ld
23
24 NICKLE=nickle
25
26 V=0
27 # The user has explicitly enabled quiet compilation.
28 ifeq ($(V),0)
29 quiet = @printf "  $1 $2 $@\n"; $($1)
30 endif
31 # Otherwise, print the full command line.
32 quiet ?= $($1)
33
34 .c.o:
35         $(call quiet,CC) -c $(CFLAGS) -o $@ $<