]> git.gag.com Git - fw/altos/blob - src/detherm/Makefile
altos/stm32f103-nucleo: Drive a screen too
[fw/altos] / src / detherm / 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         ao_task.h \
15         stm32f0.h
16
17 #
18 # Common AltOS sources
19 #
20 ALTOS_SRC = \
21         ao_interrupt.c \
22         ao_timer.c \
23         ao_panic.c \
24         ao_mutex.c \
25         ao_dma_stm.c \
26         ao_usb_stm.c \
27         ao_spi_stm.c \
28         ao_exti_stm.c \
29         ao_stdio.c \
30         ao_led_stmf0.c \
31         ao_log.c \
32         ao_log_mini.c \
33         ao_sample.c \
34         ao_data.c \
35         ao_kalman.c \
36         ao_flight.c \
37         ao_report.c \
38         ao_storage.c \
39         ao_m25.c \
40         ao_romconfig.c \
41         ao_boot_chain.c \
42         ao_ms5607.c \
43         ao_convert_pa.c \
44         ao_pwm.c \
45         ao_servo.c \
46         ao_task.c \
47         ao_config.c \
48         ao_cmd.c \
49         ao_product.c
50
51 PRODUCT=Detherm-v1.0
52 PRODUCT_DEF=-DDETHERM_V_1_0
53 IDPRODUCT=0x0013
54
55 CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS)
56
57 PROGNAME=detherm-v1.0
58 PROG=$(PROGNAME)-$(VERSION).elf
59 HEX=$(PROGNAME)-$(VERSION).ihx
60
61 SRC=$(ALTOS_SRC) ao_detherm.c
62 OBJ=$(SRC:.c=.o)
63
64 all: $(PROG) $(HEX)
65
66 $(PROG): Makefile $(OBJ) altos.ld
67         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
68
69 ao_product.h: ao-make-product.5c ../Version
70         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) -o $@
71
72 $(OBJ): $(INC)
73
74 distclean:      clean
75
76 clean:
77         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
78         rm -f ao_product.h
79
80 install:
81
82 uninstall: