rockbox/lib/libsetjmp/libsetjmp.make
Thomas Martitz 46454ac2a8 Move setjmp to lib and add setjmp for sh (imported from newlib) and compile it as separate library.
It's used by both, plugins and codecs, and sh/hwcodec doesn't compile codecs
so it doesn't fit into sources.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27869 a1c6a512-1295-4272-9138-f99709370657
2010-08-24 12:38:42 +00:00

21 lines
723 B
Makefile

# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
#
SETJMP_DIR = $(ROOTDIR)/lib/libsetjmp
SETJMP_SRC = $(call preprocess, $(SETJMP_DIR)/SOURCES)
SETJMP_OBJ := $(call c2obj, $(SETJMP_SRC))
OTHER_SRC += $(SETJMP_SRC)
LIBSETJMP = $(BUILDDIR)/lib/libsetjmp.a
INCLUDES += -I$(SETJMP_DIR)
$(LIBSETJMP): $(SETJMP_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null