]> git.gag.com Git - fw/altos/blob - src/telebt-v4.0/Makefile
altos/scheme: Fix name of constant scheme file
[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         ao_rn4678.h \
18         stm32f0.h \
19         Makefile
20
21 ALTOS_SRC = \
22         ao_boot_chain.c \
23         ao_interrupt.c \
24         ao_product.c \
25         ao_romconfig.c \
26         ao_cmd.c \
27         ao_config.c \
28         ao_data.c \
29         ao_task.c \
30         ao_led.c \
31         ao_stdio.c \
32         ao_panic.c \
33         ao_timer.c \
34         ao_mutex.c \
35         ao_serial_stm.c \
36         ao_rn4678.c \
37         ao_freq.c \
38         ao_dma_stm.c \
39         ao_spi_stm.c \
40         ao_cc1200.c \
41         ao_adc_stm.c \
42         ao_usb_stm.c \
43         ao_exti_stm.c \
44         ao_convert_volt.c \
45         ao_packet_master.c \
46         ao_packet.c \
47         ao_monitor.c \
48         ao_send_packet.c
49
50 PRODUCT=TeleBT-v4.0
51 PRODUCT_DEF=-DTELEBT_V_4_0
52 IDPRODUCT=0x000e
53
54 CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) -Os -g
55
56 PROGNAME=telebt-v4.0
57 PROG=$(PROGNAME)-$(VERSION).elf
58 HEX=$(PROGNAME)-$(VERSION).ihx
59
60 SRC=$(ALTOS_SRC) ao_telebt.c
61 OBJ=$(SRC:.c=.o)
62
63 all: $(PROG) $(HEX)
64
65 $(PROG): Makefile $(OBJ) altos.ld
66         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
67
68 $(OBJ): $(INC)
69
70 ao_product.h: ao-make-product.5c ../Version
71         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
72
73 distclean:      clean
74
75 clean:
76         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
77         rm -f ao_product.h
78
79 install:
80
81 uninstall: