]> git.gag.com Git - fw/altos/blob - src/telelco-v0.2-cc1200/Makefile
altos: Add initial TeleLCO-v3 bits
[fw/altos] / src / telelco-v0.2-cc1200 / Makefile
1 #
2 # AltOS build for TeleLCO
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         ao_product.h \
18         ao_seven_segment.h \
19         ao_lco.h \
20         ao_lco_cmd.h \
21         ao_lco_func.h \
22         ao_radio_spi.h \
23         ao_radio_cmac.h \
24         ao_cc1200_CC1200.h \
25         ao_cc1200.h \
26         stm32l.h
27
28 #
29 # Common AltOS sources
30 #
31
32 #PROFILE=ao_profile.c
33 #PROFILE_DEF=-DAO_PROFILE=1
34
35 ALTOS_SRC = \
36         ao_boot_chain.c \
37         ao_interrupt.c \
38         ao_product.c \
39         ao_romconfig.c \
40         ao_cmd.c \
41         ao_config.c \
42         ao_task.c \
43         ao_led_stm.c \
44         ao_stdio.c \
45         ao_panic.c \
46         ao_timer.c \
47         ao_mutex.c \
48         ao_freq.c \
49         ao_dma_stm.c \
50         ao_spi_stm.c \
51         ao_beep_stm.c \
52         ao_eeprom_stm.c \
53         ao_adc_single_stm.c \
54         ao_convert_volt.c \
55         ao_fast_timer.c \
56         ao_lcd_stm.c \
57         ao_usb_stm.c \
58         ao_exti_stm.c \
59         ao_cc1200.c \
60         ao_radio_cmac.c \
61         ao_aes.c \
62         ao_aes_tables.c \
63         ao_fec_tx.c \
64         ao_fec_rx.c \
65         ao_seven_segment.c \
66         ao_quadrature.c \
67         ao_button.c \
68         ao_event.c \
69         ao_lco.c \
70         ao_lco_bits.c \
71         ao_lco_cmd.c \
72         ao_lco_func.c \
73         ao_radio_cmac_cmd.c
74
75 PRODUCT=TeleLCO-v0.2
76 PRODUCT_DEF=-DTELELCO
77 IDPRODUCT=0x0023
78
79 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF)
80
81 PROGNAME=telelco-v0.2
82 PROG=$(PROGNAME)-$(VERSION).elf
83 HEX=$(PROGNAME)-$(VERSION).ihx
84
85 SRC=$(ALTOS_SRC) ao_telelco.c
86 OBJ=$(SRC:.c=.o)
87
88 all: $(PROG) $(HEX)
89
90 $(PROG): Makefile $(OBJ) altos.ld
91         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
92
93 $(OBJ): $(INC)
94
95 distclean:      clean
96
97 clean:
98         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
99         rm -f ao_product.h
100
101 install:
102
103 uninstall: