2010-08-24 12:38:42 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
#
|
|
|
|
|
2012-03-26 20:24:57 +00:00
|
|
|
SETJMPLIB_DIR = $(ROOTDIR)/lib/libsetjmp
|
|
|
|
SETJMPLIB_SRC = $(call preprocess, $(SETJMPLIB_DIR)/SOURCES)
|
|
|
|
SETJMPLIB_OBJ := $(call c2obj, $(SETJMPLIB_SRC))
|
2010-08-24 12:38:42 +00:00
|
|
|
|
2012-03-26 20:24:57 +00:00
|
|
|
SETJMPLIB = $(BUILDDIR)/lib/libsetjmp.a
|
2010-08-24 12:38:42 +00:00
|
|
|
|
2012-03-26 20:24:57 +00:00
|
|
|
INCLUDES += -I$(SETJMPLIB_DIR)
|
|
|
|
OTHER_SRC += $(SETJMPLIB_SRC)
|
|
|
|
EXTRA_LIBS += $(SETJMPLIB)
|
2010-08-24 12:38:42 +00:00
|
|
|
|
2012-03-26 20:24:57 +00:00
|
|
|
$(SETJMPLIB): $(SETJMPLIB_OBJ)
|
2010-08-24 12:38:42 +00:00
|
|
|
$(SILENT)$(shell rm -f $@)
|
|
|
|
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
|