- add "lib" prefix
This commit is contained in:
parent
784e010f2d
commit
3a65d24db5
|
@ -1,4 +1,4 @@
|
||||||
config BR2_PACKAGE_GMP
|
config BR2_PACKAGE_LIBGMP
|
||||||
bool "gmp"
|
bool "gmp"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
|
@ -7,10 +7,10 @@ config BR2_PACKAGE_GMP
|
||||||
http://www.swox.com/gmp/
|
http://www.swox.com/gmp/
|
||||||
|
|
||||||
|
|
||||||
config BR2_PACKAGE_GMP_HEADERS
|
config BR2_PACKAGE_LIBGMP_HEADERS
|
||||||
bool "gmp headers for target"
|
bool "gmp headers for target"
|
||||||
default n
|
default n
|
||||||
depends on BR2_PACKAGE_GMP
|
depends on BR2_PACKAGE_LIBGMP
|
||||||
help
|
help
|
||||||
Install the gmp.h for the target.
|
Install the gmp.h for the target.
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ endif
|
||||||
$(DL_DIR)/$(GMP_SOURCE):
|
$(DL_DIR)/$(GMP_SOURCE):
|
||||||
$(WGET) -P $(DL_DIR) $(GMP_SITE)/$(GMP_SOURCE)
|
$(WGET) -P $(DL_DIR) $(GMP_SITE)/$(GMP_SOURCE)
|
||||||
|
|
||||||
gmp-source: $(DL_DIR)/$(GMP_SOURCE)
|
libgmp-source: $(DL_DIR)/$(GMP_SOURCE)
|
||||||
|
|
||||||
$(GMP_DIR)/.unpacked: $(DL_DIR)/$(GMP_SOURCE)
|
$(GMP_DIR)/.unpacked: $(DL_DIR)/$(GMP_SOURCE)
|
||||||
$(GMP_CAT) $(DL_DIR)/$(GMP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(GMP_CAT) $(DL_DIR)/$(GMP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
|
@ -75,20 +75,20 @@ $(STAGING_DIR)/lib/$(GMP_BINARY): $(GMP_DIR)/.libs/$(GMP_BINARY)
|
||||||
$(TARGET_DIR)/lib/libgmp.so.$(GMP_LIBVERSION): $(STAGING_DIR)/lib/$(GMP_BINARY)
|
$(TARGET_DIR)/lib/libgmp.so.$(GMP_LIBVERSION): $(STAGING_DIR)/lib/$(GMP_BINARY)
|
||||||
cp -a $(STAGING_DIR)/lib/libgmp.so* $(STAGING_DIR)/lib/libgmp.a \
|
cp -a $(STAGING_DIR)/lib/libgmp.so* $(STAGING_DIR)/lib/libgmp.a \
|
||||||
$(TARGET_DIR)/lib/
|
$(TARGET_DIR)/lib/
|
||||||
ifeq ($(BR2_PACKAGE_GMP_HEADERS),y)
|
ifeq ($(BR2_PACKAGE_LIBGMP_HEADERS),y)
|
||||||
test -d $(TARGET_DIR)/usr/include || mkdir -p $(TARGET_DIR)/usr/include
|
test -d $(TARGET_DIR)/usr/include || mkdir -p $(TARGET_DIR)/usr/include
|
||||||
cp -a $(STAGING_DIR)/include/gmp.h $(TARGET_DIR)/usr/include/
|
cp -a $(STAGING_DIR)/include/gmp.h $(TARGET_DIR)/usr/include/
|
||||||
endif
|
endif
|
||||||
$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libgmp.so* \
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libgmp.so* \
|
||||||
$(TARGET_DIR)/lib/libgmp.a
|
$(TARGET_DIR)/lib/libgmp.a
|
||||||
|
|
||||||
gmp: uclibc $(TARGET_DIR)/lib/libgmp.so.$(GMP_LIBVERSION)
|
libgmp: uclibc $(TARGET_DIR)/lib/libgmp.so.$(GMP_LIBVERSION)
|
||||||
|
|
||||||
gmp-clean:
|
libgmp-clean:
|
||||||
rm -f $(TARGET_DIR)/lib/$(GMP_BINARY)
|
rm -f $(TARGET_DIR)/lib/$(GMP_BINARY)
|
||||||
-$(MAKE) -C $(GMP_DIR) clean
|
-$(MAKE) -C $(GMP_DIR) clean
|
||||||
|
|
||||||
gmp-dirclean:
|
libgmp-dirclean:
|
||||||
rm -rf $(GMP_DIR)
|
rm -rf $(GMP_DIR)
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
|
@ -96,6 +96,6 @@ gmp-dirclean:
|
||||||
# Toplevel Makefile options
|
# Toplevel Makefile options
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
ifeq ($(strip $(BR2_PACKAGE_GMP)),y)
|
ifeq ($(strip $(BR2_PACKAGE_LIBGMP)),y)
|
||||||
TARGETS+=gmp
|
TARGETS+=libgmp
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
config BR2_PACKAGE_MPFR
|
config BR2_PACKAGE_LIBMPFR
|
||||||
bool "mpfr"
|
bool "mpfr"
|
||||||
default n
|
default n
|
||||||
default y if BR2_INSTALL_FORTRAN
|
default y if BR2_INSTALL_FORTRAN
|
||||||
select BR2_PACKAGE_GMP
|
select BR2_PACKAGE_LIBGMP
|
||||||
help
|
help
|
||||||
C library for multiple-precision floating-point computations
|
C library for multiple-precision floating-point computations
|
||||||
with exact rounding.
|
with exact rounding.
|
||||||
|
@ -10,11 +10,11 @@ config BR2_PACKAGE_MPFR
|
||||||
http://www.mpfr.org/
|
http://www.mpfr.org/
|
||||||
|
|
||||||
|
|
||||||
config BR2_PACKAGE_MPFR_HEADERS
|
config BR2_PACKAGE_LIBMPFR_HEADERS
|
||||||
bool "mpfr headers for target"
|
bool "mpfr headers for target"
|
||||||
default n
|
default n
|
||||||
depends on BR2_PACKAGE_MPFR
|
depends on BR2_PACKAGE_LIBMPFR
|
||||||
select BR2_PACKAGE_GMP_HEADERS
|
select BR2_PACKAGE_LIBGMP_HEADERS
|
||||||
help
|
help
|
||||||
Install the mpfr headers for the target.
|
Install the mpfr headers for the target.
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ $(DL_DIR)/$(MPFR_SOURCE):
|
||||||
$(WGET) -P $(DL_DIR) $(MPFR_SITE)/$(MPFR_SOURCE)
|
$(WGET) -P $(DL_DIR) $(MPFR_SITE)/$(MPFR_SOURCE)
|
||||||
|
|
||||||
|
|
||||||
mpfr-source: $(DL_DIR)/$(MPFR_SOURCE)
|
libmpfr-source: $(DL_DIR)/$(MPFR_SOURCE)
|
||||||
|
|
||||||
$(MPFR_DIR)/.unpacked: $(DL_DIR)/$(MPFR_SOURCE)
|
$(MPFR_DIR)/.unpacked: $(DL_DIR)/$(MPFR_SOURCE)
|
||||||
$(MPFR_CAT) $(DL_DIR)/$(MPFR_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(MPFR_CAT) $(DL_DIR)/$(MPFR_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
|
@ -81,20 +81,20 @@ $(STAGING_DIR)/lib/$(MPFR_BINARY): $(MPFR_DIR)/.libs/$(MPFR_BINARY)
|
||||||
$(TARGET_DIR)/lib/libmpfr.so.$(MPFR_LIBVERSION): $(STAGING_DIR)/lib/$(MPFR_BINARY)
|
$(TARGET_DIR)/lib/libmpfr.so.$(MPFR_LIBVERSION): $(STAGING_DIR)/lib/$(MPFR_BINARY)
|
||||||
cp -a $(STAGING_DIR)/lib/libmpfr.so* $(STAGING_DIR)/lib/libmpfr.a \
|
cp -a $(STAGING_DIR)/lib/libmpfr.so* $(STAGING_DIR)/lib/libmpfr.a \
|
||||||
$(TARGET_DIR)/lib/
|
$(TARGET_DIR)/lib/
|
||||||
ifeq ($(BR2_PACKAGE_MPFR_HEADERS),y)
|
ifeq ($(BR2_PACKAGE_LIBMPFR_HEADERS),y)
|
||||||
cp -a $(STAGING_DIR)/include/mpfr.h $(STAGING_DIR)/include/mpf2mpfr.h \
|
cp -a $(STAGING_DIR)/include/mpfr.h $(STAGING_DIR)/include/mpf2mpfr.h \
|
||||||
$(TARGET_DIR)/usr/include/
|
$(TARGET_DIR)/usr/include/
|
||||||
endif
|
endif
|
||||||
$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libmpfr.so* \
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libmpfr.so* \
|
||||||
$(TARGET_DIR)/lib/libmpfr.a
|
$(TARGET_DIR)/lib/libmpfr.a
|
||||||
|
|
||||||
mpfr: uclibc $(TARGET_DIR)/lib/libmpfr.so.$(MPFR_LIBVERSION)
|
libmpfr: uclibc libgmp $(TARGET_DIR)/lib/libmpfr.so.$(MPFR_LIBVERSION)
|
||||||
|
|
||||||
mpfr-clean:
|
libmpfr-clean:
|
||||||
rm -f $(TARGET_DIR)/lib/$(MPFR_BINARY)
|
rm -f $(TARGET_DIR)/lib/$(MPFR_BINARY)
|
||||||
-$(MAKE) -C $(MPFR_DIR) clean
|
-$(MAKE) -C $(MPFR_DIR) clean
|
||||||
|
|
||||||
mpfr-dirclean:
|
libmpfr-dirclean:
|
||||||
rm -rf $(MPFR_DIR)
|
rm -rf $(MPFR_DIR)
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
|
@ -102,6 +102,6 @@ mpfr-dirclean:
|
||||||
# Toplevel Makefile options
|
# Toplevel Makefile options
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
ifeq ($(strip $(BR2_PACKAGE_MPFR)),y)
|
ifeq ($(strip $(BR2_PACKAGE_LIBMPFR)),y)
|
||||||
TARGETS+=mpfr
|
TARGETS+=libmpfr
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue