5 vpath % ..:../core:../product:../drivers:../avr
8 vpath kalman.5c ../kalman
9 vpath kalman_filter.5c ../kalman
10 vpath load_csv.5c ../kalman
11 vpath matrix.5c ../kalman
12 vpath ao-make-product.5c ../util
16 #PROGRAMMER=stk500v2 -P usb
19 LOADARG=-p $(DUDECPUTYPE) -c $(PROGRAMMER) -e -U flash:w:
34 # Common AltOS sources
53 PRODUCT_DEF=-DAVR_DEMO
55 CFLAGS = $(PRODUCT_DEF) -I. -I../avr -I../core -I..
56 CFLAGS += -g -mmcu=$(MCU) -Wall -Wstrict-prototypes -Os -mcall-prologues
62 SRC=$(ALTOS_SRC) ao_demo.c ao_debug_avr.c
66 # The user has explicitly enabled quiet compilation.
68 quiet = @printf " $1 $2 $@\n"; $($1)
70 # Otherwise, print the full command line.
75 $(PROG): Makefile $(OBJ)
76 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ)
80 $(OBJCOPY) -R .eeprom -O ihex $(PROG) $@
84 $(LOADCMD) $(LOADARG)$(PROG).hex
86 ../altitude.h: make-altitude
89 ao_product.h: ao-make-product.5c ../Version
90 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
92 ao_product.rel: ao_product.c ao_product.h
93 $(call quiet,CC) -c $(CFLAGS) -D PRODUCT_DEFS='\"ao_product.h\"' -o$@ $<
105 $(OBJ): ao.h ao_product.h