9 vpath kalman.5c ../kalman
10 vpath kalman_filter.5c ../kalman
11 vpath load_csv.5c ../kalman
12 vpath matrix.5c ../kalman
13 vpath ao-make-product.5c ..
17 #PROGRAMMER=stk500v2 -P usb
20 LOADARG=-p $(DUDECPUTYPE) -c $(PROGRAMMER) -e -U flash:w:
36 # Common AltOS sources
38 TELESCIENCE_STORAGE= \
55 ao_log_telescience.c \
56 $(TELESCIENCE_STORAGE)
58 PRODUCT=TeleScience-v0.1
60 PRODUCT_DEF=-DTELESCIENCE
62 CFLAGS += -g -mmcu=$(MCU) -Wall -Wstrict-prototypes -O3 -mcall-prologues $(PRODUCT_DEF) -I. -DAVR
68 SRC=$(ALTOS_SRC) ao_telescience.c
72 # The user has explicitly enabled quiet compilation.
74 quiet = @printf " $1 $2 $@\n"; $($1)
76 # Otherwise, print the full command line.
81 CHECK=sh ../check-avr-mem
83 $(PROG): Makefile $(OBJ)
84 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ)
85 $(call quiet,CHECK) $(PROG) || ($(RM) -f $(PROG); exit 1)
89 $(OBJCOPY) -R .eeprom -O ihex $(PROG) $@
93 $(LOADCMD) $(LOADARG)$(PROG).hex
95 ../altitude.h: make-altitude
98 ao_product.h: ao-make-product.5c ../Version
99 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
101 ao_product.rel: ao_product.c ao_product.h
102 $(call quiet,CC) -c $(CFLAGS) -D PRODUCT_DEFS='\"ao_product.h\"' -o$@ $<
114 $(OBJ): ao.h ao_product.h ao_usb.h