altos/telelco-v3.0: Add some real drawing stuff
[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_seven_segment.h \
21         ao_lco.h \
22         ao_lco_cmd.h \
23         ao_lco_func.h \
24         ao_radio_spi.h \
25         ao_radio_cmac.h \
26         ao_cc1200_CC1200.h \
27         ao_cc1200.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_dma_stm.c \
52         ao_spi_stm.c \
53         ao_beep_stm.c \
54         ao_convert_volt.c \
55         ao_fast_timer.c \
56         ao_eeprom.c \
57         ao_flash_stm.c \
58         ao_usb_stm.c \
59         ao_exti_stm.c \
60         ao_cc1200.c \
61         ao_radio_cmac.c \
62         ao_aes.c \
63         ao_aes_tables.c \
64         ao_st7565.c \
65         ao_rect.c \
66         ao_text.c \
67         ao_box.c \
68         ao_copy.c \
69         ao_blt.c \
70         ao_line.c \
71         ao_logo.c \
72         ao_poly.c \
73         BitstreamVeraSans-Roman-58.c \
74         BitstreamVeraSans-Roman-24.c \
75         BitstreamVeraSans-Roman-10.c \
76         BitstreamVeraSans-Roman-12.c \
77         BenguiatGothicStd-Bold-26.c \
78         ao_quadrature.c \
79         ao_button.c \
80         ao_event.c \
81         ao_lco_bits.c \
82         ao_lco_v3.c \
83         ao_lco_cmd.c \
84         ao_lco_func.c \
85         ao_radio_cmac_cmd.c
86
87 PRODUCT=TeleLCO-v3.0
88 PRODUCT_DEF=-DTELELCO
89 IDPRODUCT=0x0023
90
91 CFLAGS = $(PRODUCT_DEF) $(STM32F1_CFLAGS)
92
93 PROGNAME=telelco-v3.0
94 PROG=$(PROGNAME)-$(VERSION).elf
95 HEX=$(PROGNAME)-$(VERSION).ihx
96
97 SRC=$(ALTOS_SRC) ao_telelco.c
98 OBJ=$(SRC:.c=.o)
99
100 all: $(PROG) $(HEX)
101
102 $(PROG): Makefile $(OBJ) altos-128.ld
103         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
104
105 $(OBJ): $(INC)
106
107 distclean:      clean
108
109 clean:
110         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
111         rm -f ao_product.h
112
113 ao_font.h:
114         cd ../draw && make ao_font.h ao_logo.h
115
116 ao_logo.h: ao_font.h
117
118 BitstreamVeraSans-Roman-58.c: ao_font.h
119 BitstreamVeraSans-Roman-24.c: ao_font.h
120 BitstreamVeraSans-Roman-10.c: ao_font.h
121 BitstreamVeraSans-Roman-12.c: ao_font.h
122 BenguiatGothicStd-Bold-26.c: ao_font.h
123
124 install:
125
126 uninstall: