]> git.gag.com Git - fw/altos/blob - src/telemega-v0.1/Makefile
altos/draw: use --gc-sections in demo program
[fw/altos] / src / telemega-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_companion.h \
13         ao_data.h \
14         ao_sample.h \
15         ao_pins.h \
16         altitude-pa.h \
17         ao_kalman.h \
18         ao_product.h \
19         ao_ms5607.h \
20         ao_hmc5883.h \
21         ao_mpu6000.h \
22         ao_mma655x.h \
23         ao_cc1120_CC1120.h \
24         ao_profile.h \
25         ao_task.h \
26         ao_whiten.h \
27         ao_sample_profile.h \
28         ao_quaternion.h \
29         ao_mpu.h \
30         stm32l.h \
31         Makefile
32
33 #
34 # Common AltOS sources
35 #
36 #       ao_hmc5883.c
37
38 #PROFILE=ao_profile.c
39 #PROFILE_DEF=-DAO_PROFILE=1
40
41 #SAMPLE_PROFILE=ao_sample_profile.c \
42 #       ao_sample_profile_timer.c
43 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
44
45 #STACK_GUARD=ao_mpu_stm.c
46 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
47
48 ALTOS_SRC = \
49         ao_boot_chain.c \
50         ao_interrupt.c \
51         ao_product.c \
52         ao_romconfig.c \
53         ao_cmd.c \
54         ao_config.c \
55         ao_task.c \
56         ao_led_stm.c \
57         ao_stdio.c \
58         ao_panic.c \
59         ao_timer.c \
60         ao_mutex.c \
61         ao_serial_stm.c \
62         ao_gps_skytraq.c \
63         ao_gps_show.c \
64         ao_gps_report_mega.c \
65         ao_ignite.c \
66         ao_freq.c \
67         ao_dma_stm.c \
68         ao_spi_stm.c \
69         ao_cc1120.c \
70         ao_fec_tx.c \
71         ao_fec_rx.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         $(PROFILE) \
100         $(SAMPLE_PROFILE) \
101         $(STACK_GUARD)
102
103 PRODUCT=TeleMega-v0.1
104 PRODUCT_DEF=-DTELEMEGA
105 IDPRODUCT=0x0023
106
107 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF)
108
109 PROGNAME=telemega-v0.1
110 PROG=$(PROGNAME)-$(VERSION).elf
111 HEX=$(PROGNAME)-$(VERSION).ihx
112
113 SRC=$(ALTOS_SRC) ao_telemega.c
114 OBJ=$(SRC:.c=.o)
115
116 all: $(PROG) $(HEX)
117
118 $(PROG): Makefile $(OBJ) altos.ld
119         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
120
121 $(OBJ): $(INC)
122
123 distclean:      clean
124
125 clean:
126         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
127         rm -f ao_product.h
128
129 install:
130
131 uninstall: