altos/test: Adjust CRC error rate after FEC fix
[fw/altos] / src / telegps-v0.1 / Makefile
1 #
2 # AltOS build
3 #
4 #
5
6 include ../stm/Makefile.defs
7
8 INC = \
9         ao.h \
10         ao_arch.h \
11         ao_arch_funcs.h \
12         ao_boot.h \
13         ao_pins.h \
14         ao_product.h \
15         ao_task.h \
16         ao_whiten.h \
17         ao_cc115l.h \
18         ao_fec.h \
19         stm32l.h \
20         ao_sdcard.h \
21         ao_bufio.h \
22         ao_fat.h \
23         Makefile
24
25
26 #PROFILE=ao_profile.c
27 #PROFILE_DEF=-DAO_PROFILE=1
28
29 #SAMPLE_PROFILE=ao_sample_profile.c \
30 #       ao_sample_profile_timer.c
31 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
32
33 #STACK_GUARD=ao_mpu_stm.c
34 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
35
36 MATH_SRC=\
37         ef_log.c
38
39 ALTOS_SRC = \
40         ao_boot_chain.c \
41         ao_interrupt.c \
42         ao_product.c \
43         ao_romconfig.c \
44         ao_cmd.c \
45         ao_config.c \
46         ao_task.c \
47         ao_led_stm.c \
48         ao_stdio.c \
49         ao_panic.c \
50         ao_timer.c \
51         ao_mutex.c \
52         ao_freq.c \
53         ao_dma_stm.c \
54         ao_spi_stm.c \
55         ao_usb_stm.c \
56         ao_exti_stm.c \
57         ao_serial_stm.c \
58         ao_gps_skytraq.c \
59         ao_gps_show.c \
60         ao_cc115l.c \
61         ao_fec_tx.c \
62         ao_rfpa0133.c \
63         ao_aprs.c \
64         ao_eeprom_stm.c \
65         ao_sdcard.c \
66         ao_bufio.c \
67         ao_fat.c \
68         ao_log_fat.c \
69         ao_gps_report_mega.c \
70         ao_telemetry.c \
71         $(SAMPLE_PROFILE) \
72         $(MATH_SRC)
73
74 PRODUCT=TeleGPS-v0.1
75 PRODUCT_DEF=-DTELEGPS
76 IDPRODUCT=0x0025
77
78 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF)
79
80 PROGNAME=telegps-v0.1
81 PROG=$(PROGNAME)-$(VERSION).elf
82 HEX=$(PROGNAME)-$(VERSION).ihx
83
84 SRC=$(ALTOS_SRC) ao_telegps.c
85 OBJ=$(SRC:.c=.o)
86
87 all: $(PROG) $(HEX)
88
89 $(PROG): Makefile $(OBJ) altos.ld
90         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
91
92 $(OBJ): $(INC)
93
94 ao_product.h: ao-make-product.5c ../Version
95         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
96
97 distclean:      clean
98
99 clean:
100         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
101         rm -f ao_product.h
102
103 install:
104
105 uninstall: