]> git.gag.com Git - fw/altos/blob - src/easytimer-v2/Makefile
altos/telelco-v3: Minor UI tweaks
[fw/altos] / src / easytimer-v2 / Makefile
1 #
2 # AltOS build
3 #
4 #
5
6 include ../samd21/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_task.h \
21         ao_whiten.h \
22         samd21.h \
23         Makefile
24
25 SAMD21_ROM=128
26 SAMD21_RAM=16
27
28 ALTOS_SRC = \
29         ao_boot_chain.c \
30         ao_interrupt.c \
31         ao_product.c \
32         ao_romconfig.c \
33         ao_cmd.c \
34         ao_config.c \
35         ao_task.c \
36         ao_stdio.c \
37         ao_storage.c \
38         ao_panic.c \
39         ao_timer.c \
40         ao_mutex.c \
41         ao_freq.c \
42         ao_dma_samd21.c \
43         ao_spi_samd21.c \
44         ao_data.c \
45         ao_bmi088.c \
46         ao_mmc5983.c \
47         ao_m25.c \
48         ao_adc_samd21.c \
49         ao_beep_samd21.c \
50         ao_usb_samd21.c \
51         ao_exti_samd21.c \
52         ao_convert_volt.c \
53         ao_report.c \
54         ao_sample.c \
55         ao_kalman.c \
56         ao_pyro.c \
57         ao_flight.c \
58         ao_ignite.c \
59         ao_log.c \
60         ao_log_timer.c \
61         $(PROFILE) \
62         $(SAMPLE_PROFILE) \
63         $(STACK_GUARD)
64
65 PRODUCT=EasyTimer-2
66 PRODUCT_DEF=-DEASYTIMER_V_2
67 IDPRODUCT=0x000d
68
69 CFLAGS = $(PRODUCT_DEF) $(SAMD21_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF)
70
71 PROGNAME=easytimer-v2
72 PROG=$(PROGNAME)-$(VERSION).elf
73 HEX=$(PROGNAME)-$(VERSION).ihx
74
75 SRC=$(ALTOS_SRC) ao_easytimer.c
76 OBJ=$(SRC:.c=.o)
77
78 all: $(PROG) $(HEX)
79
80 $(PROG): Makefile $(OBJ)
81         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
82
83 $(OBJ): $(INC)
84
85 distclean:      clean
86
87 clean:
88         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
89         rm -f ao_product.h
90
91 install:
92
93 uninstall: