forked from G33KatWork/STM32-Toolchain
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
33 lines (26 loc) · 832 Bytes
/
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
SRC := .
include $(SRC)/base.mak
all: info
LASTDEFINED_TARGET :=
include $(SRC)/binutils.mak
include $(SRC)/gcc-newlib.mak
include $(SRC)/gdb.mak
include $(SRC)/openocd.mak
include $(SRC)/stlink.mak
STARTTIME := $(shell date +%s)
all:
$(call cmd_msg,INFO,Build completed in $$(($$(date +%s)-$(STARTTIME))) seconds)
$(call cmd_msg,INFO,Execute a >>make clean<< to remove build tempfiles)
info:
$(call cmd_msg,INFO,Using $(CPUS) CPUs)
$(call cmd_msg,INFO,Installing toolchain to $(TOOLCHAIN_ROOTDIR))
clean:
$(Q)if [ -n "$(TOOLCHAIN_BUILDDIR)" -a -d "$(TOOLCHAIN_BUILDDIR)" ]; then \
rm -rf $(TOOLCHAIN_BUILDDIR); \
fi
distclean: clean
$(Q)if [ -n "$(TOOLCHAIN_SRCDIR)" -a -d "$(TOOLCHAIN_SRCDIR)" ]; then \
rm -rf $(TOOLCHAIN_SRCDIR); \
fi
.PHONY: info download clean distclean
.DEFAULT_GOAL = all