altos/telelco-v3.0: Use eeprom emulation for config storage
[fw/altos] / src / telelco-v3.0 / Makefile
1 #
2 # AltOS build for TeleLCO v3.0
3 #
4 #
5
6 include ../stm32f1/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         ao_font.h \
27         ao_logo.h \
28         stm32f1.h
29
30 #
31 # Common AltOS sources
32 #
33
34 ALTOS_SRC = \
35         ao_boot_chain.c \
36         ao_interrupt.c \
37         ao_product.c \
38         ao_romconfig.c \
39         ao_cmd.c \
40         ao_config.c \
41         ao_task.c \
42         ao_led.c \
43         ao_stdio.c \
44         ao_panic.c \
45         ao_clock.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_convert_volt.c \
53         ao_fast_timer.c \
54         ao_eeprom.c \
55         ao_flash_stm.c \
56         ao_usb_stm.c \
57         ao_exti_stm.c \
58         ao_cc1200.c \
59         ao_radio_cmac.c \
60         ao_aes.c \
61         ao_aes_tables.c \
62         ao_st7565.c \
63         ao_rect.c \
64         ao_text.c \
65         ao_box.c \
66         ao_copy.c \
67         ao_blt.c \
68         ao_line.c \
69         ao_logo.c \
70         ao_poly.c \
71         BitstreamVeraSans-Roman-58.c \
72         BitstreamVeraSans-Roman-24.c \
73         BitstreamVeraSans-Roman-10.c \
74         BitstreamVeraSans-Roman-12.c \
75         BenguiatGothicStd-Bold-26.c \
76         ao_quadrature.c \
77         ao_button.c \
78         ao_event.c \
79         ao_lco_bits.c \
80         ao_lco_v3.c \
81         ao_lco_cmd.c \
82         ao_lco_func.c \
83         ao_radio_cmac_cmd.c
84
85 PRODUCT=TeleLCO-v3.0
86 PRODUCT_DEF=-DTELELCO
87 IDPRODUCT=0x0023
88
89 CFLAGS = $(PRODUCT_DEF) $(STM32F1_CFLAGS)
90
91 PROGNAME=telelco-v3.0
92 PROG=$(PROGNAME)-$(VERSION).elf
93 HEX=$(PROGNAME)-$(VERSION).ihx
94
95 SRC=$(ALTOS_SRC) ao_telelco.c
96 OBJ=$(SRC:.c=.o)
97
98 all: $(PROG) $(HEX)
99
100 $(PROG): Makefile $(OBJ) altos.ld
101         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
102
103 $(OBJ): $(INC)
104
105 distclean:      clean
106
107 clean:
108         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
109         rm -f ao_product.h
110
111 ao_font.h:
112         cd ../draw && make ao_font.h ao_logo.h
113
114 ao_logo.h: ao_font.h
115
116 BitstreamVeraSans-Roman-58.c: ao_font.h
117 BitstreamVeraSans-Roman-24.c: ao_font.h
118 BitstreamVeraSans-Roman-10.c: ao_font.h
119 BitstreamVeraSans-Roman-12.c: ao_font.h
120 BenguiatGothicStd-Bold-26.c: ao_font.h
121
122 install:
123
124 uninstall: