]> git.gag.com Git - fw/altos/blob - src/telemega-v2.0/Makefile
altos: Re-enable apogee delay
[fw/altos] / src / telemega-v2.0 / 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_companion.h \
14         ao_data.h \
15         ao_sample.h \
16         ao_pins.h \
17         altitude-pa.h \
18         ao_kalman.h \
19         ao_product.h \
20         ao_ms5607.h \
21         ao_hmc5883.h \
22         ao_mpu6000.h \
23         ao_mma655x.h \
24         ao_cc1200_CC1200.h \
25         ao_profile.h \
26         ao_task.h \
27         ao_whiten.h \
28         ao_sample_profile.h \
29         ao_quaternion.h \
30         ao_mpu.h \
31         stm32l.h \
32         ao_ms5607_convert.c \
33         Makefile
34
35 #
36 # Common AltOS sources
37 #
38 #       ao_hmc5883.c
39
40 #PROFILE=ao_profile.c
41 #PROFILE_DEF=-DAO_PROFILE=1
42
43 #SAMPLE_PROFILE=ao_sample_profile.c \
44 #       ao_sample_profile_timer.c
45 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
46
47 #STACK_GUARD=ao_mpu_stm.c
48 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
49
50 ALTOS_SRC = \
51         ao_boot_chain.c \
52         ao_interrupt.c \
53         ao_product.c \
54         ao_romconfig.c \
55         ao_cmd.c \
56         ao_config.c \
57         ao_task.c \
58         ao_led_stm.c \
59         ao_stdio.c \
60         ao_panic.c \
61         ao_timer.c \
62         ao_mutex.c \
63         ao_serial_stm.c \
64         ao_gps_ublox.c \
65         ao_gps_show.c \
66         ao_gps_report_mega.c \
67         ao_ignite.c \
68         ao_freq.c \
69         ao_dma_stm.c \
70         ao_spi_stm.c \
71         ao_cc1200.c \
72         ao_data.c \
73         ao_ms5607.c \
74         ao_mma655x.c \
75         ao_hmc5883.c \
76         ao_adc_stm.c \
77         ao_beep_stm.c \
78         ao_eeprom_stm.c \
79         ao_storage.c \
80         ao_m25.c \
81         ao_usb_stm.c \
82         ao_exti_stm.c \
83         ao_report.c \
84         ao_i2c_stm.c \
85         ao_mpu6000.c \
86         ao_convert_pa.c \
87         ao_convert_volt.c \
88         ao_log.c \
89         ao_log_mega.c \
90         ao_sample.c \
91         ao_kalman.c \
92         ao_flight.c \
93         ao_telemetry.c \
94         ao_packet_slave.c \
95         ao_packet.c \
96         ao_companion.c \
97         ao_pyro.c \
98         ao_aprs.c \
99         ao_pwm_stm.c \
100         $(PROFILE) \
101         $(SAMPLE_PROFILE) \
102         $(STACK_GUARD)
103
104 PRODUCT=TeleMega-v2.0
105 PRODUCT_DEF=-DTELEMEGA
106 IDPRODUCT=0x0023
107
108 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF)
109
110 PROGNAME=telemega-v2.0
111 PROG=$(PROGNAME)-$(VERSION).elf
112 HEX=$(PROGNAME)-$(VERSION).ihx
113
114 SRC=$(ALTOS_SRC) ao_telemega.c
115 OBJ=$(SRC:.c=.o)
116
117 all: $(PROG) $(HEX)
118
119 $(PROG): Makefile $(OBJ) altos.ld
120         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
121
122 $(OBJ): $(INC)
123
124 distclean:      clean
125
126 clean:
127         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
128         rm -f ao_product.h
129
130 install:
131
132 uninstall: