telebt-v4.0: make git ignore products of build
[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         ao_send_packet.c
47
48 PRODUCT=TeleBT-v4.0
49 PRODUCT_DEF=-DTELEBT_V_4_0
50 IDPRODUCT=0x000e
51
52 CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) -Os -g
53
54 PROGNAME=telebt-v4.0
55 PROG=$(PROGNAME)-$(VERSION).elf
56 HEX=$(PROGNAME)-$(VERSION).ihx
57
58 SRC=$(ALTOS_SRC) ao_telebt.c
59 OBJ=$(SRC:.c=.o)
60
61 all: $(PROG) $(HEX)
62
63 $(PROG): Makefile $(OBJ) altos.ld
64         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
65
66 $(OBJ): $(INC)
67
68 ao_product.h: ao-make-product.5c ../Version
69         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
70
71 distclean:      clean
72
73 clean:
74         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
75         rm -f ao_product.h
76
77 install:
78
79 uninstall: