altos/telelco-v3.0: Show backlight/contrast value as percent
[fw/altos] / src / telelco-v3.0 / Makefile
1 #
2 # AltOS build for TeleLCO v3.0
3 #
4 #
5
6 STM32F1_LINKER_SCRIPT=altos-128.ld
7
8 include ../stm32f1/Makefile.defs
9
10 INC = \
11         ao.h \
12         ao_arch.h \
13         ao_arch_funcs.h \
14         ao_boot.h \
15         ao_companion.h \
16         ao_data.h \
17         ao_sample.h \
18         ao_pins.h \
19         ao_product.h \
20         ao_lco.h \
21         ao_lco_cmd.h \
22         ao_lco_func.h \
23         ao_radio_spi.h \
24         ao_radio_cmac.h \
25         ao_cc1200_CC1200.h \
26         ao_cc1200.h \
27         ao_st7565.h \
28         ao_font.h \
29         ao_logo.h \
30         stm32f1.h
31
32 #
33 # Common AltOS sources
34 #
35
36 ALTOS_SRC = \
37         ao_boot_chain.c \
38         ao_interrupt.c \
39         ao_product.c \
40         ao_romconfig.c \
41         ao_cmd.c \
42         ao_config.c \
43         ao_task.c \
44         ao_led.c \
45         ao_stdio.c \
46         ao_panic.c \
47         ao_clock.c \
48         ao_timer.c \
49         ao_mutex.c \
50         ao_freq.c \
51         ao_adc_single_stm.c \
52         ao_dma_stm.c \
53         ao_spi_stm.c \
54         ao_beep_stm.c \
55         ao_convert_volt.c \
56         ao_fast_timer.c \
57         ao_pwm_stm.c \
58         ao_eeprom.c \
59         ao_flash_stm.c \
60         ao_usb_stm.c \
61         ao_exti_stm.c \
62         ao_cc1200.c \
63         ao_radio_cmac.c \
64         ao_aes.c \
65         ao_aes_tables.c \
66         ao_st7565.c \
67         ao_rect.c \
68         ao_text.c \
69         ao_text_width.c \
70         ao_box.c \
71         ao_copy.c \
72         ao_blt.c \
73         ao_line.c \
74         ao_logo.c \
75         ao_poly.c \
76         BitstreamVeraSans-Roman-58.c \
77         BitstreamVeraSans-Roman-24.c \
78         BitstreamVeraSans-Roman-10.c \
79         BitstreamVeraSans-Roman-12.c \
80         BenguiatGothicStd-Bold-26.c \
81         ao_quadrature.c \
82         ao_button.c \
83         ao_event.c \
84         ao_lco_bits.c \
85         ao_lco_v3.c \
86         ao_lco_cmd.c \
87         ao_lco_func.c \
88         ao_radio_cmac_cmd.c
89
90 PRODUCT=TeleLCO-v3.0
91 PRODUCT_DEF=-DTELELCO
92 IDPRODUCT=0x0023
93
94 CFLAGS = $(PRODUCT_DEF) $(STM32F1_CFLAGS)
95
96 PROGNAME=telelco-v3.0
97 PROG=$(PROGNAME)-$(VERSION).elf
98 HEX=$(PROGNAME)-$(VERSION).ihx
99
100 SRC=$(ALTOS_SRC) ao_telelco.c
101 OBJ=$(SRC:.c=.o)
102
103 all: $(PROG) $(HEX)
104
105 $(PROG): Makefile $(OBJ) altos-128.ld
106         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
107
108 $(OBJ): $(INC)
109
110 distclean:      clean
111
112 clean:
113         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
114         rm -f ao_product.h
115
116 ao_font.h:
117         cd ../draw && make ao_font.h ao_logo.h
118
119 ao_logo.h: ao_font.h
120
121 BitstreamVeraSans-Roman-58.c: ao_font.h
122 BitstreamVeraSans-Roman-24.c: ao_font.h
123 BitstreamVeraSans-Roman-10.c: ao_font.h
124 BitstreamVeraSans-Roman-12.c: ao_font.h
125 BenguiatGothicStd-Bold-26.c: ao_font.h
126
127 install:
128
129 uninstall: