[BACK]Return to Makefile CVS log [TXT][DIR] Up to [Development] / xfs-cmds

File: [Development] / xfs-cmds / Makefile (download)

Revision 1.9, Fri Jan 14 04:58:04 2005 UTC (12 years, 9 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.8: +114 -0 lines

Merge IRIX build changes in, based on original grove2 variant.
Merge of master-melb:xfs-cmds:21155a by kenmcd.

#!smake
#                                                                         
#  Copyright (C) 2005, Silicon Graphics, Inc.                             
#  All Rights Reserved.                                                   
#                                                                         
#  UNPUBLISHED -- Rights reserved under the copyright laws of the United  
#  States.  Use of a copyright notice is precautionary only and does not  
#  imply publication or disclosure.                                       
#                                                                         
#  THIS SOFTWARE CONTAINS CONFIDENTIAL AND PROPRIETARY INFORMATION OF     
#  SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION, DISTRIBUTION, OR 
#  DISCLOSURE IS STRICTLY PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN    
#  PERMISSION OF SILICON GRAPHICS, INC.                                   
#                                                                         
#  U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND                               
#  Use, duplication or disclosure by the Government is subject to         
#  restrictions as set forth in FAR 52.227.19(c)(2) or subparagraph       
#  (c)(1)(ii) of the Rights in Technical Data and Computer Software       
#  clause at DFARS 252.227-7013 and/or in similar or successor clauses    
#  in the FAR, or the DOD or NASA FAR Supplement.  Unpublished-- rights   
#  reserved under the copyright laws of the United States.                
#  Contractor/manufacturer is Silicon Graphics, Inc.,                     
#  2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.                 
#
#
#	Makefile for the GPL XFS commands tree
#
# The main targets at the top level are:
#
# default:this performs a bootstrap (headers and exports) then
#       builds all of the software in place. No rawidb is generated and
#       targets are not installed anywhere. No ism image is generated
#
# startversion: this generates a version number.
#       The developer just needs to invoke the target
#       (see $(ROOT)/usr/include/make/startversion for more info).
#       The generated version number can be embedded as ident string in
#       executables by setting the envariable RLS_ID_OBJECT to
#       ${WORKAREA}/.identfile. The VERSION envariable is also set for use
#       with the spec file (at gendist time).
#       This target is supplied by ismcommonrules and it saves/documents the
#       version number in $(WORKAREA)/.version_number.
#
# headers:install all headers. This should always be run without RAWIDB set.
#
# exports:builds and installs all libraries and data files that are required
#       to build the rest of the ism. This should always be run without
#       RAWIDB set.
#
# install:builds and installs the entire ism. 'headers' and 'exports'
#       must be run previous to 'install'. With RAWIDB set this will
#       generate the rawidb for the ism. Without RAWIDB set, all the
#       ism objects will be installed in $ROOT
#
# images:descends into the build directory and generates the files needed
#       for the build of entire system.
#       'rawidb' must be run previous to 'images'.
#
# ism:descends into the build directory and generates ism images.
#       'rawidb' must be run previous to 'ism'.
#
# clean:removes .o's
#
# clobber:removes all non-source. The effective of 'clobber' can be checked
#       by running p_check -w after running 'clobber'
#
# rmtargets:removes TARGETS only
#


include ${ROOT}/usr/include/make/ismcommondefs

SUBDIRS=irix
HEADERS_SUBDIRS=
EXPORTS_SUBDIRS=

COMMONPREF=xfs-cmds
SRC=`/sbin/pwd`
IDBFILE="`/sbin/pwd`/build/IDB"
ISM_NAME=eoe

default: headers exports ${_FORCE}
	${SUBDIRS_MAKERULE}

headers: ${_FORCE}
	${HEADERS_SUBDIRS_MAKERULE}

exports: ${_FORCE}
	${EXPORTS_SUBDIRS_MAKERULE}

install lint ${COMMONTARGS}: ${COMMONPREF}$$@
	${SUBDIRS_MAKERULE}

include $(ISMCOMMONRULES)

${COMMONPREF}install:

${COMMONPREF}lint:

${SUBDIRS}: ${_FORCE}
	cd $@; ${MAKE}

rawidb: $(_FORCE)
	@RAWIDB=$(IDBFILE); export RAWIDB ; \
	if [ -f $$RAWIDB ] ; then mv $$RAWIDB $$RAWIDB.prev ; fi ;\
	echo "RAWIDB=$$RAWIDB SRC=$(SRC) $(MAKE) install" ;\
	$(MAKE) SRC=$(SRC) install

ism: $(_FORCE)
	cd build; $(MAKE) buildism

images: $(_FORCE)
	cd build; $(MAKE) buildimages