-
Notifications
You must be signed in to change notification settings - Fork 114
/
Makefile
46 lines (34 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
######################################################################
# Top Level: STM32F103C8T6 Projects
######################################################################
PROJECTS = miniblink uart uarthwfc
.PHONY = libopencm3 clobber_libopencm3 clean_libopencm3 libwwg
all: libopencm3 libwwg
for d in $(PROJECTS) ; do \
$(MAKE) -C $$d ; \
done
$(MAKE) -$(MAKEFLAGS) -C ./rtos
clean: clean_libopencm3
for d in $(PROJECTS) ; do \
$(MAKE) -C $$d clean ; \
done
$(MAKE) -$(MAKEFLAGS) -C ./rtos clean
$(MAKE) -$(MAKEFLAGS) -C ./rtos/libwwg clean
clobber: clobber_libopencm3
for d in $(PROJECTS) ; do \
$(MAKE) -C $$d clobber ; \
done
$(MAKE) -$(MAKEFLAGS) -C ./rtos clobber
$(MAKE) -$(MAKEFLAGS) -C ./rtos/libwwg clobber
clean_libopencm3: clobber_libopencm3
clobber_libopencm3:
rm -f libopencm3/lib/libopencm3_stm32f1.a
-$(MAKE) -$(MAKEFLAGS) -C ./libopencm3 clean
libopencm3: libopencm3/lib/libopencm3_stm32f1.a
libopencm3/lib/libopencm3_stm32f1.a:
$(MAKE) -C libopencm3 TARGETS=stm32/f1
libwwg:
$(MAKE) -C rtos/libwwg
# Uncomment if necessary:
# MAKE = gmake
# End