You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

#
7 years ago
# makefile to build static libraries
#
# -----------------------------------------------------------------------------
7 years ago
STATIC_LIBS =
ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd2 hd51))
STATIC_LIBS += cortex-strings
endif
static-libs: $(STATIC_LIBS)
# -----------------------------------------------------------------------------
CORTEX-STRINGS_CONF =
ifneq ($(BOXSERIES), hd51)
CORTEX-STRINGS_CONF = --without-neon
endif
cortex-strings: $(STATIC_LIB_DIR)/libcortex-strings.la
$(STATIC_LIB_DIR)/libcortex-strings.la: $(ARCHIVE)/cortex-strings-$(CORTEX-STRINGS_VER).tar.bz2 | $(TARGET_DIR)
$(REMOVE)/cortex-strings-$(CORTEX-STRINGS_VER)
7 years ago
$(UNTAR)/cortex-strings-$(CORTEX-STRINGS_VER).tar.bz2
$(CHDIR)/cortex-strings-$(CORTEX-STRINGS_VER); \
./autogen.sh; \
CFLAGS="-pipe -O2 $(CXX11_ABI) -g -I$(TARGET_INCLUDE_DIR)" \
CPPFLAGS="-pipe -O2 $(CXX11_ABI) -g -I$(TARGET_INCLUDE_DIR)" \
CXXFLAGS="-pipe -O2 $(CXX11_ABI) -g -I$(TARGET_INCLUDE_DIR)" \
LDFLAGS="-Wl,-O1 -L$(TARGET_LIB_DIR)" \
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
./configure $(CONFIGURE_OPTS) \
7 years ago
--prefix= \
--disable-shared \
--enable-static \
$(CORTEX-STRINGS_CONF) \
; \
$(MAKE); \
$(MAKE) install DESTDIR=$(STATIC_DIR)
7 years ago
$(REWRITE_LIBTOOL_STATIC)/libcortex-strings.la
$(REMOVE)/cortex-strings-$(CORTEX-STRINGS_VER)
# -----------------------------------------------------------------------------
PHONY += static-libs
PHONY += cortex-strings