]> git.gag.com Git - fw/altos/blob - src/easymini-v2.0/Makefile
altos/telebt-v4.0: Hook up RN4678 module
[fw/altos] / src / easymini-v2.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_pins.h \
13         ao_product.h \
14         stm32f0.h
15
16 #
17 # Common AltOS sources
18 #
19
20 ALTOS_SRC = \
21         ao_interrupt.c \
22         ao_boot_chain.c \
23         ao_romconfig.c \
24         ao_product.c \
25         ao_mutex.c \
26         ao_panic.c \
27         ao_stdio.c \
28         ao_storage.c \
29         ao_report.c \
30         ao_ignite.c \
31         ao_flight.c \
32         ao_kalman.c \
33         ao_sample.c \
34         ao_data.c \
35         ao_convert_pa.c \
36         ao_convert_volt.c \
37         ao_task.c \
38         ao_log.c \
39         ao_log_mini.c \
40         ao_cmd.c \
41         ao_config.c \
42         ao_dma_stm.c \
43         ao_timer.c \
44         ao_exti_stm.c \
45         ao_spi_stm.c \
46         ao_adc_stm.c \
47         ao_usb_stm.c \
48         ao_m25.c \
49         ao_ms5607.c \
50         ao_beep_stm.c
51
52 PRODUCT=EasyMini-v2.0
53 PRODUCT_DEF=-DEASYMINI_V_2_0
54 IDPRODUCT=0x0026
55
56 CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) -g -Os
57
58 PROGNAME=easymini-v2.0
59 PROG=$(PROGNAME)-$(VERSION).elf
60 HEX=$(PROGNAME)-$(VERSION).ihx
61
62 SRC=$(ALTOS_SRC) ao_easymini.c
63 OBJ=$(SRC:.c=.o)
64
65 all: $(PROG) $(HEX)
66
67 $(PROG): Makefile $(OBJ)
68         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
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 $(OBJ): $(INC)
74
75 distclean:      clean
76
77 clean:
78         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
79         rm -f ao_product.h
80
81 install:
82
83 uninstall: