]> git.gag.com Git - fw/altos/blob - src/telemega-v1.0/Makefile
doc: Use -optimize with asciidoctorpdf
[fw/altos] / src / telemega-v1.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_cc1120_CC1120.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_cc1120.c \
72         ao_fec_tx.c \
73         ao_fec_rx.c \
74         ao_data.c \
75         ao_ms5607.c \
76         ao_mma655x.c \
77         ao_hmc5883.c \
78         ao_adc_stm.c \
79         ao_beep_stm.c \
80         ao_eeprom_stm.c \
81         ao_storage.c \
82         ao_m25.c \
83         ao_usb_stm.c \
84         ao_exti_stm.c \
85         ao_report.c \
86         ao_i2c_stm.c \
87         ao_mpu6000.c \
88         ao_convert_pa.c \
89         ao_convert_volt.c \
90         ao_log.c \
91         ao_log_mega.c \
92         ao_sample.c \
93         ao_kalman.c \
94         ao_flight.c \
95         ao_telemetry.c \
96         ao_packet_slave.c \
97         ao_packet.c \
98         ao_companion.c \
99         ao_pyro.c \
100         ao_aprs.c \
101         $(PROFILE) \
102         $(SAMPLE_PROFILE) \
103         $(STACK_GUARD)
104
105 PRODUCT=TeleMega-v1.0
106 PRODUCT_DEF=-DTELEMEGA
107 IDPRODUCT=0x0023
108
109 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF)
110
111 PROGNAME=telemega-v1.0
112 PROG=$(PROGNAME)-$(VERSION).elf
113 HEX=$(PROGNAME)-$(VERSION).ihx
114
115 SRC=$(ALTOS_SRC) ao_telemega.c
116 OBJ=$(SRC:.c=.o)
117
118 all: $(PROG) $(HEX)
119
120 $(PROG): Makefile $(OBJ) altos.ld
121         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
122
123 $(OBJ): $(INC)
124
125 distclean:      clean
126
127 clean:
128         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
129         rm -f ao_product.h
130
131 install:
132
133 uninstall: