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