summaryrefslogtreecommitdiff
path: root/lib/mipsunwinder/mipsunwinder.make
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mipsunwinder/mipsunwinder.make')
-rw-r--r--lib/mipsunwinder/mipsunwinder.make23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/mipsunwinder/mipsunwinder.make b/lib/mipsunwinder/mipsunwinder.make
new file mode 100644
index 0000000000..ddd1ce078f
--- /dev/null
+++ b/lib/mipsunwinder/mipsunwinder.make
@@ -0,0 +1,23 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7#
8
9MIPSUNWINDERLIB_DIR = $(ROOTDIR)/lib/mipsunwinder
10MIPSUNWINDERLIB_SRC = $(call preprocess, $(MIPSUNWINDERLIB_DIR)/SOURCES)
11MIPSUNWINDERLIB_OBJ := $(call c2obj, $(MIPSUNWINDERLIB_SRC))
12
13OTHER_SRC += $(MIPSUNWINDERLIB_SRC)
14
15MIPSUNWINDERLIB = $(BUILDDIR)/lib/libmipsunwinder.a
16CORE_LIBS += $(MIPSUNWINDERLIB)
17
18INCLUDES += -I$(MIPSUNWINDERLIB_DIR)
19DEFINES += -DBACKTRACE_MIPSUNWINDER
20
21$(MIPSUNWINDERLIB): $(MIPSUNWINDERLIB_OBJ)
22 $(SILENT)$(shell rm -f $@)
23 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null