telebt-v4.0: initial creation of firmware for new product, no BT yet
[fw/altos] / src / telebt-v4.0 / Makefile
1 #
2 # AltOS build
3 #
4 #
5
6 include ../stmf0/Makefile.defs
7
8 INC = \
9         ao.h \
10         ao_arch.h \
11         ao_arch_funcs.h \
12         ao_boot.h \
13         ao_pins.h \
14         ao_product.h \
15         ao_cc1200_CC1200.h \
16         ao_task.h \
17         stm32f0.h \
18         Makefile
19
20 ALTOS_SRC = \
21         ao_boot_chain.c \
22         ao_interrupt.c \
23         ao_product.c \
24         ao_romconfig.c \
25         ao_cmd.c \
26         ao_config.c \
27         ao_data.c \
28         ao_task.c \
29         ao_led.c \
30         ao_stdio.c \
31         ao_panic.c \
32         ao_timer.c \
33         ao_mutex.c \
34         ao_serial_stm.c \
35         ao_freq.c \
36         ao_dma_stm.c \
37         ao_spi_stm.c \
38         ao_cc1200.c \
39         ao_adc_stm.c \
40         ao_usb_stm.c \
41         ao_exti_stm.c \
42         ao_convert_volt.c \
43         ao_packet_master.c \
44         ao_packet.c \
45         ao_monitor.c 
46
47 PRODUCT=TeleBT-v4.0
48 PRODUCT_DEF=-DTELEBT_V_4_0
49 IDPRODUCT=0x000e
50
51 CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) -Os -g
52
53 PROGNAME=telebt-v4.0
54 PROG=$(PROGNAME)-$(VERSION).elf
55 HEX=$(PROGNAME)-$(VERSION).ihx
56
57 SRC=$(ALTOS_SRC) ao_telebt.c
58 OBJ=$(SRC:.c=.o)
59
60 all: $(PROG) $(HEX)
61
62 $(PROG): Makefile $(OBJ) altos.ld
63         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
64
65 $(OBJ): $(INC)
66
67 ao_product.h: ao-make-product.5c ../Version
68         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
69
70 distclean:      clean
71
72 clean:
73         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
74         rm -f ao_product.h
75
76 install:
77
78 uninstall: