]> git.gag.com Git - fw/altos/blob - src/telefiretwo-v0.2/Makefile
altos/draw: Add validation for line drawing
[fw/altos] / src / telefiretwo-v0.2 / 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_beep_stm.c \
45         ao_eeprom_stm.c \
46         ao_usb_stm.c \
47         ao_exti_stm.c \
48         ao_cc1200.c \
49         ao_radio_cmac.c \
50         ao_aes.c \
51         ao_aes_tables.c \
52         ao_pad.c \
53         ao_radio_cmac_cmd.c
54
55 PRODUCT_SRC = \
56         ao_telefiretwo.c
57
58 PRODUCT=TeleFire-v0.2
59 PRODUCT_DEF=-DTELEFIRETWO_V_0_2
60 IDPRODUCT=0x000f
61
62 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF)
63
64 PROGNAME = telefiretwo-v0.2
65 PROG = $(PROGNAME)-$(VERSION).elf
66 HEX = $(PROGNAME)-$(VERSION).ihx
67
68 SRC = $(ALTOS_SRC) $(PRODUCT_SRC)
69 OBJ=$(SRC:.c=.o)
70
71 all: $(PROG) $(HEX)
72
73 $(PROG): Makefile $(OBJ) altos.ld
74         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
75
76 $(OBJ): $(INC)
77
78 distclean:      clean
79
80 clean:
81         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
82         rm -f ao_product.h
83
84 install:
85
86 uninstall:
87