altos: Make profiling Viterbi decoder more useful
[fw/altos] / src / megametrum-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_data.h \
13         ao_sample.h \
14         ao_pins.h \
15         altitude.h \
16         ao_kalman.h \
17         ao_product.h \
18         ao_ms5607.h \
19         ao_hmc5883.h \
20         ao_mpu6000.h \
21         ao_cc1120_CC1120.h \
22         ao_profile.h \
23         ao_whiten.h \
24         stm32l.h
25
26 #
27 # Common AltOS sources
28 #
29
30 #PROFILE=ao_profile.c
31
32 ALTOS_SRC = \
33         ao_interrupt.c \
34         ao_product.c \
35         ao_romconfig.c \
36         ao_cmd.c \
37         ao_config.c \
38         ao_task.c \
39         ao_led.c \
40         ao_stdio.c \
41         ao_panic.c \
42         ao_timer.c \
43         ao_mutex.c \
44         ao_serial_stm.c \
45         ao_gps_skytraq.c \
46         ao_gps_report_mega.c \
47         ao_ignite.c \
48         ao_freq.c \
49         ao_dma_stm.c \
50         ao_spi_stm.c \
51         ao_cc1120.c \
52         ao_fec_tx.c \
53         ao_fec_rx.c \
54         ao_ms5607.c \
55         ao_adc_stm.c \
56         ao_beep_stm.c \
57         ao_storage.c \
58         ao_m25.c \
59         ao_usb_stm.c \
60         ao_exti_stm.c \
61         ao_report.c \
62         ao_i2c_stm.c \
63         ao_hmc5883.c \
64         ao_mpu6000.c \
65         ao_convert_pa.c \
66         ao_log.c \
67         ao_log_mega.c \
68         ao_sample_mm.c \
69         ao_kalman.c \
70         ao_flight_mm.c \
71         ao_telemetry.c \
72         ao_packet_slave.c \
73         ao_packet.c \
74         ao_companion.c \
75         $(PROFILE)
76
77 PRODUCT=MegaMetrum-v0.1
78 PRODUCT_DEF=-DMEGAMETRUM
79 IDPRODUCT=0x0023
80
81 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -Os -g
82
83 PROG=megametrum-v0.1-$(VERSION).elf
84
85 SRC=$(ALTOS_SRC) ao_megametrum.c
86 OBJ=$(SRC:.c=.o)
87
88 all: $(PROG)
89
90 $(PROG): Makefile $(OBJ)
91         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc
92
93 ../altitude.h: make-altitude
94         nickle $< > $@
95
96 $(OBJ): $(INC)
97
98 ao_product.h: ao-make-product.5c ../Version
99         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
100
101 distclean:      clean
102
103 clean:
104         rm -f $(OBJ)
105         rm -f ao_product.h
106
107 install:
108
109 uninstall: