]> git.gag.com Git - fw/altos/blob - src/telefireeight-v2.0/Makefile
altos: Protect shared storage_data with mutex
[fw/altos] / src / telefireeight-v2.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_arch.h \
11         ao_arch_funcs.h \
12         ao_pad.h \
13         ao_product.h \
14         ao_radio_spi.h \
15         ao_radio_cmac.h \
16         ao_cc1200_CC1200.h \
17         ao_cc1200.h \
18         stm32l.h
19 #
20 # Common AltOS sources
21 #
22
23 #PROFILE=ao_profile.c
24 #PROFILE_DEF=-DAO_PROFILE=1
25
26 ALTOS_SRC = \
27         ao_boot_chain.c \
28         ao_interrupt.c \
29         ao_product.c \
30         ao_romconfig.c \
31         ao_cmd.c \
32         ao_adc_stm.c \
33         ao_data.c \
34         ao_config.c \
35         ao_task.c \
36         ao_led.c \
37         ao_stdio.c \
38         ao_panic.c \
39         ao_timer.c \
40         ao_mutex.c \
41         ao_freq.c \
42         ao_dma_stm.c \
43         ao_spi_stm.c \
44         ao_eeprom_stm.c \
45         ao_usb_stm.c \
46         ao_exti_stm.c \
47         ao_cc1200.c \
48         ao_radio_cmac.c \
49         ao_aes.c \
50         ao_aes_tables.c \
51         ao_pad.c \
52         ao_radio_cmac_cmd.c
53
54 PRODUCT_SRC = \
55         ao_telefireeight.c
56
57 PRODUCT=TeleFireEight-v2.0
58 PRODUCT_DEF=-DTELEFIREEIGHT_V_2_0
59 IDPRODUCT=0x000f
60
61 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF)
62
63 PROGNAME = telefireeight-v2.0
64 PROG = $(PROGNAME)-$(VERSION).elf
65 HEX = $(PROGNAME)-$(VERSION).ihx
66
67 SRC = $(ALTOS_SRC) $(PRODUCT_SRC)
68 OBJ=$(SRC:.c=.o)
69
70 all: $(PROG) $(HEX)
71
72 $(PROG): Makefile $(OBJ) altos.ld
73         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
74
75 $(OBJ): $(INC)
76
77 distclean:      clean
78
79 clean:
80         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME).map
81         rm -f ao_product.h
82
83 install:
84
85 uninstall:
86