]> git.gag.com Git - fw/altos/blob - src/telefireone-v1.0/Makefile
altos/stm32f042: Increase interrupt stack to 256 bytes
[fw/altos] / src / telefireone-v1.0 / Makefile
1 #
2 # TeleFire build file
3 #
4
5 include ../stm/Makefile.defs
6
7 INC = \
8         ao.h \
9         ao_pins.h \
10         ao_log.h \
11         ao_arch.h \
12         ao_arch_funcs.h \
13         ao_pad.h \
14         ao_product.h \
15         ao_radio_spi.h \
16         ao_radio_cmac.h \
17         ao_cc1200_CC1200.h \
18         ao_cc1200.h \
19         stm32l.h
20 #
21 # Common AltOS sources
22 #
23
24 #PROFILE=ao_profile.c
25 #PROFILE_DEF=-DAO_PROFILE=1
26
27 ALTOS_SRC = \
28         ao_boot_chain.c \
29         ao_interrupt.c \
30         ao_product.c \
31         ao_romconfig.c \
32         ao_cmd.c \
33         ao_adc_stm.c \
34         ao_data.c \
35         ao_config.c \
36         ao_task.c \
37         ao_led_stm.c \
38         ao_stdio.c \
39         ao_panic.c \
40         ao_timer.c \
41         ao_mutex.c \
42         ao_freq.c \
43         ao_dma_stm.c \
44         ao_spi_stm.c \
45         ao_eeprom_stm.c \
46         ao_storage.c \
47         ao_m25.c \
48         ao_usb_stm.c \
49         ao_exti_stm.c \
50         ao_cc1200.c \
51         ao_radio_cmac.c \
52         ao_aes.c \
53         ao_aes_tables.c \
54         ao_pad.c \
55         ao_radio_cmac_cmd.c \
56         ao_log.c \
57         ao_log_fireone.c
58
59 PRODUCT_SRC = \
60         ao_telefireone.c
61
62 PRODUCT=TeleFireOne-v1.0
63 PRODUCT_DEF=-DTELEFIREONE_V_1_0
64 IDPRODUCT=0x000f
65
66 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF)
67
68 PROGNAME = telefireone-v1.0
69 PROG = $(PROGNAME)-$(VERSION).elf
70 HEX = $(PROGNAME)-$(VERSION).ihx
71
72 SRC = $(ALTOS_SRC) $(PRODUCT_SRC)
73 OBJ=$(SRC:.c=.o)
74
75 all: $(PROG) $(HEX)
76
77 $(PROG): Makefile $(OBJ) altos.ld
78         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
79
80 $(OBJ): $(INC)
81
82 distclean:      clean
83
84 clean:
85         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
86         rm -f ao_product.h
87
88 install:
89
90 uninstall:
91
92 echo:
93         echo $(PROG) $(VERSION)