summaryrefslogtreecommitdiffstats
path: root/lib/arm_support/arm_support.make
blob: a3775ee3b06a7f8009e809b5ac48d3e5b63e67bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#             __________               __   ___.
#   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
#   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
#   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
#   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
#                     \/            \/     \/    \/            \/
#

ARMSUPPORT_DIR = $(ROOTDIR)/lib/arm_support
ARMSUPPORT_SRC = $(ARMSUPPORT_DIR)/support-arm.S
ARMSUPPORT_OBJ := $(call c2obj, $(ARMSUPPORT_SRC))

OTHER_SRC += $(ARMSUPPORT_SRC)

LIBARMSUPPORT := $(BUILDDIR)/lib/libarm_support.a

$(LIBARMSUPPORT): $(ARMSUPPORT_OBJ)
	$(SILENT)$(shell rm -f $@)
	$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null