altos: Add prototype TeleDongle v1.9 code
[fw/altos] / src / teledongle-v1.9 / Makefile
1 #
2 # AltOS build
3 #
4 #
5
6 include ../stm/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_task.h \
16         ao_whiten.h \
17         stm32l.h \
18         Makefile
19
20 #PROFILE=ao_profile.c
21 #PROFILE_DEF=-DAO_PROFILE=1
22
23 #SAMPLE_PROFILE=ao_sample_profile.c \
24 #       ao_sample_profile_timer.c
25 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
26
27 #STACK_GUARD=ao_mpu_stm.c
28 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
29
30 #       ao_monitor.c \
31 #       ao_rssi.c \
32 #       ao_send_packet.c \
33 #       ao_packet_master.c \
34 #       ao_packet.c
35
36
37 ALTOS_SRC = \
38         ao_boot_chain.c \
39         ao_interrupt.c \
40         ao_product.c \
41         ao_romconfig.c \
42         ao_cc1200.c \
43         ao_cmd.c \
44         ao_config.c \
45         ao_task.c \
46         ao_led.c \
47         ao_stdio.c \
48         ao_panic.c \
49         ao_timer.c \
50         ao_mutex.c \
51         ao_freq.c \
52         ao_dma_stm.c \
53         ao_spi_stm.c \
54         ao_usb_stm.c \
55         ao_exti_stm.c \
56         ao_eeprom_stm.c
57
58 PRODUCT=TeleDongle-v1.9
59 PRODUCT_DEF=-DTELEDONGLE
60 IDPRODUCT=0x000c
61
62 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
63
64 PROGNAME=teledongle-v1.9
65 PROG=$(PROGNAME)-$(VERSION).elf
66 HEX=$(PROGNAME)-$(VERSION).ihx
67
68 SRC=$(ALTOS_SRC) ao_teledongle.c
69 OBJ=$(SRC:.c=.o)
70
71 all: $(PROG) $(HEX)
72
73 $(PROG): Makefile $(OBJ) altos.ld
74         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
75
76 $(OBJ): $(INC)
77
78 ao_product.h: ao-make-product.5c ../Version
79         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
80
81 distclean:      clean
82
83 clean:
84         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
85         rm -f ao_product.h
86
87 install:
88
89 uninstall: