[leaf-commits] src/bering-uclibc4/source/libgmp buildtool.cfg, NONE, 1.1 buildtool.mk, NONE, 1.1 gmp-5.0.1.tar.bz2, NONE, 1.1

Erich Titl <[email protected]> Fri, 19 Nov 2010 16:08:15 +0000
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/src/bering-uclibc4/source/libgmp
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv3243

Added Files:
	buildtool.cfg buildtool.mk gmp-5.0.1.tar.bz2 
Log Message:
Initial version for BuC4


--- NEW FILE: gmp-5.0.1.tar.bz2 ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: buildtool.cfg ---
################################################################################
# $id:
################################################################################
<File buildtool.mk>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = libgmp
</File>

<File gmp-5.0.1.tar.bz2>
  Server = cvs4-sourceforge
  Revision = HEAD  
  Directory = libgmp
  envname = LIBGMP_SOURCE
</File>


--- NEW FILE: buildtool.mk ---
#############################################################
#
# $Id:
#
#############################################################

include $(MASTERMAKEFILE)
LIBGMP_DIR:=gmp-5.0.1
LIBGMP_TARGET_DIR:=$(BT_BUILD_DIR)/libgmp
export CC=$(TARGET_CC)
CNFL=--enable-mpbsd 
CFCT="-Os "
STRIP_OPTIONS=-s --remove-section=.note --remove-section=.comment 

$(LIBGMP_DIR)/.source: 		
	bzcat $(LIBGMP_SOURCE) |  tar -xvf - 	
	#zcat $(LIBGMP_PATCH1) |  patch -d $(LIBGMP_DIR) -p1  
	touch $(LIBGMP_DIR)/.source


$(LIBGMP_DIR)/.configured: $(LIBGMP_DIR)/.source
	(cd $(LIBGMP_DIR); ./configure --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu --prefix=/usr $(CNFL));
	touch $(LIBGMP_DIR)/.configured

source: $(LIBGMP_DIR)/.source

$(LIBGMP_DIR)/.build: $(LIBGMP_DIR)/.configured
	mkdir -p $(LIBGMP_TARGET_DIR)
	mkdir -p $(BT_STAGING_DIR)/usr/lib
	mkdir -p $(BT_STAGING_DIR)/usr/include
	$(MAKE) CFLAGS=$(CFCT) -C $(LIBGMP_DIR) 	
	$(MAKE) CFLAGS=$(CFCT) DESTDIR=$(LIBGMP_TARGET_DIR) -C $(LIBGMP_DIR) install
	cp -a $(LIBGMP_TARGET_DIR)/usr/lib/libgmp.* $(BT_STAGING_DIR)/usr/lib/
	cp -a $(LIBGMP_TARGET_DIR)/usr/lib/libmp.* $(BT_STAGING_DIR)/usr/lib/
	cp -a $(LIBGMP_TARGET_DIR)/usr/include/gmp.h $(BT_STAGING_DIR)/usr/include
	cp -a $(LIBGMP_TARGET_DIR)/usr/include/mp.h $(BT_STAGING_DIR)/usr/include
	touch $(LIBGMP_DIR)/.build

build: $(LIBGMP_DIR)/.build

clean:
	-rm $(LIBGMP_DIR)/.build
	rm -rf $(LIBGMP_TARGET_DIR)
	rm -f $(BT_STAGING_DIR)/usr/lib/libgmp.* 
	rm -f $(BT_STAGING_DIR)/usr/lib/libmp.* 
	rm -f $(BT_STAGING_DIR)/usr/include/gmp.h 
	rm -f $(BT_STAGING_DIR)/usr/include/mp.h 
	$(MAKE) -C $(LIBGMP_DIR) clean
	
srcclean:
	rm -rf $(LIBGMP_DIR)



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev