# $Revision$

#    SAM-QFS_notice_begin
#
#      Solaris 2.x Sun Storage & Archiving Management File System
#
#		Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
#
#		U.S. Government Rights - Commercial software. Government users are
#	subject to the Sun Microsystems, Inc. standard license agreement and applicable
#	provisions of the FAR and its supplements.
#
#      	Use is subject to license terms. Sun, Sun Microsystems and the Sun logo
#	are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S.
#	and other countries.
#
#    SAM-QFS_notice_end
#
#
#	LGPL NOTICE
#
#	This library is free software; you can redistribute it and/or
#	modify it under the terms of the GNU Lesser General Public
#	License as published by the Free Software Foundation; either
#	version 2.1 of the License, or (at your option) any later version.
#
#	This library is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#	Lesser General Public License for more details.
#
#	You should have received a copy of the GNU Lesser General Public
#	License along with this library; if not, write to the Free Software
#	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

DEPTH = .

include $(DEPTH)/mk/common.mk

BUILD_64BIT = yes

#   all is defined here so it is the default.
.PHONY: all config set_config
ifneq ($(SPARCV9), yes)
ifneq ($(AMD64), yes)
all:    info
endif
endif

DIRS = src

include $(DEPTH)/mk/targets.mk

.INIT:
	@if [ ! -d lib ] ; then /bin/mkdir lib; fi

#   Set up the default configuration.
#
#   Note that this target needs to be defined prior to including
#   common.mk to avoid picking up the existing definitions in
#   CONFIG.mk.

config: set_config

set_config:
	$(MAKE) -C mk $(MAKECMDGOALS)
	$(MAKE) info

clean:		clean_lib
clean_lib:
	rm -rf lib/$(OBJ_DIR)

clobberall:		clobber_lib
clobber_lib:
	rm -rf lib/obj
	rm -f $(DEPTH)/MARKER
	$(MAKE) -C mk $(MAKECMDGOALS)

.NOTPARALLEL:

include $(DEPTH)/mk/depend.mk
