Debian Codegraph @

src/easytimer-v1/Makefile

raw
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_companion.h \
14 ao_data.h \
15 ao_sample.h \
16 ao_pins.h \
17 altitude-pa.h \
18 ao_kalman.h \
19 ao_product.h \
20 ao_profile.h \
21 ao_task.h \
22 ao_whiten.h \
23 ao_sample_profile.h \
24 ao_mpu.h \
25 stm32l.h \
26 Makefile
27
28 #PROFILE=ao_profile.c
29 #PROFILE_DEF=-DAO_PROFILE=1
30
31 #SAMPLE_PROFILE=ao_sample_profile.c \
32 # ao_sample_profile_timer.c
33 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
34
35 #STACK_GUARD=ao_mpu_stm.c
36 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
37
38 ALTOS_SRC = \
39 ao_boot_chain.c \
40 ao_interrupt.c \
41 ao_product.c \
42 ao_romconfig.c \
43 ao_cmd.c \
44 ao_config.c \
45 ao_task.c \
46 ao_stdio.c \
47 ao_panic.c \
48 ao_timer.c \
49 ao_mutex.c \
50 ao_freq.c \
51 ao_dma_stm.c \
52 ao_spi_stm.c \
53 ao_data.c \
54 ao_bmx160.c \
55 ao_adc_stm.c \
56 ao_beep_stm.c \
57 ao_usb_stm.c \
58 ao_exti_stm.c \
59 ao_eeprom_stm.c \
60 ao_convert_volt.c \
61 ao_report.c \
62 ao_sample.c \
63 ao_kalman.c \
64 ao_pyro.c \
65 ao_flight.c \
66 ao_ignite.c \
67 $(PROFILE) \
68 $(SAMPLE_PROFILE) \
69 $(STACK_GUARD)
70
71 PRODUCT=EasyTimer-v1
72 PRODUCT_DEF=-DEASYTIMER_V_1
73 IDPRODUCT=0x000d
74
75 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF)
76
77 PROGNAME=easytimer-v1
78 PROG=$(PROGNAME)-$(VERSION).elf
79 HEX=$(PROGNAME)-$(VERSION).ihx
80
81 SRC=$(ALTOS_SRC) ao_easytimer.c
82 OBJ=$(SRC:.c=.o)
83
84 all: $(PROG) $(HEX)
85
86 $(PROG): Makefile $(OBJ) altos.ld
87 $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
88
89 $(OBJ): $(INC)
90
91 distclean: clean
92
93 clean:
94 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
95 rm -f ao_product.h
96
97 install:
98
99 uninstall: