sbsv2/raptor/util/pvmgmake.mk
changeset 2 39c28ec933dd
child 13 c327db0664bb
equal deleted inserted replaced
1:820b22e13ff1 2:39c28ec933dd
       
     1 #
       
     2 # Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of the License "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: 
       
    15 # Utility makefile 
       
    16 #
       
    17 
       
    18 RAPTOR_PVMGMAKE_VER:=0.9.4-rpt
       
    19 
       
    20 PVMGMAKE_SOURCEDIR:=$(OUTPUTPATH)/pvmgmake-$(RAPTOR_PVMGMAKE_VER)
       
    21 PVMGMAKE_TAR:=$(SBS_HOME)/util/ext/pvmgmake-$(RAPTOR_PVMGMAKE_VER).tgz
       
    22 
       
    23 
       
    24 define b_pvmgmake
       
    25 .PHONY:: pvmgmake
       
    26 
       
    27 all:: pvmgmake
       
    28 
       
    29 pvmgmake: $(INSTALLROOT)/bin/pvmgmake pvm
       
    30 	
       
    31 $(INSTALLROOT)/bin/pvmgmake: $(PVMGMAKE_TAR) 
       
    32 	rm -rf $(PVMGMAKE_SOURCEDIR) && \
       
    33 	cd $(OUTPUTPATH) && \
       
    34 	tar -xzf $(PVMGMAKE_TAR) && \
       
    35 	(  \
       
    36 	cd $(PVMGMAKE_SOURCEDIR) && \
       
    37 	PVM_ROOT=$(INSTALLROOT)/pvm3 && \
       
    38 	PVM_ARCH=LINUX && \
       
    39 	PVM_RSH=/usr/bin/ssh && \
       
    40 	export PVM_ROOT PVM_RSH PVM_ARCH && \
       
    41 	./configure --program-prefix=pvmg --prefix=$(INSTALLROOT) --libexecdir=$$$$PVM_ROOT/bin/LINUX --with-pvm --disable-job-server --enable-case-insensitive-file-system && \
       
    42 	$(MAKE) -j8 && $(MAKE) install \
       
    43 	)
       
    44 endef
       
    45 
       
    46 $(eval $(b_pvmgmake))