usr/src/lib/Makefile
author Ethan Quach <Ethan.Quach@sun.com>
Tue, 31 May 2011 14:21:09 -0700
changeset 1160 6f7e708c38ec
parent 1111 0c6c862af34f
child 1178 bb89a62910e7
permissions -rw-r--r--
16257 Support for zones configuration and installation should be included in AI 7041915 TransferFiles ICT should support transferring a directory that is more than one level deep. 7049824 System installed via AI ends up with incorrect mountpoints for shared ZFS datasets

#
# CDDL HEADER START
# 
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
# 
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
# 
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
#

include $(SRC)/Makefile.master

SUBDIRS=	bootmgmt \
		install_common \
		install_utils \
		libaiscf \
		libaiscf_pymod \
		libict  \
		libict_pymod \
		liblogsvc \
		liblogsvc_pymod \
		liborchestrator \
		libspmicommon \
		libtarget_pymod \
		libtd \
		libti \
		libti_pymod \
		libtransfer \
		libtransfer_pymod \
		libzoneinfo_pymod \
		libaimdns \
		netif \
		terminalui

HDRSUBDIRS=	libadmldb libadmutil

COMSUBDIRS=	liberrsvc_pymod \
		liberrsvc \
		install_boot \
		install_configuration \
		install_doc \
		install_engine \
		install_ict \
		install_logging \
		install_logging_pymod \
		install_manifest \
		install_manifest_input \
		install_target \
		install_transfer

ADMINLIBRARIES=	libadmldb.so libadmutil.so
ROOTADMINLIBLINKS=	$(ADMINLIBRARIES:%=$(ROOTADMINLIB)/%)

.PARALLEL:	$(SUBDIRS)

ROOTINC=	$(ROOT)/usr/include
ROOTINCADMIN=	$(ROOTINC)/admin

all:=		TARGET= all
check:=		TARGET= check
clean:=		TARGET= clean
clobber:=	TARGET= clobber
install:=	TARGET= install
install_h:=	TARGET= install_h
lint:=		TARGET= lint

.KEEP_STATE:

all check clean clobber lint: $(COMSUBDIRS) $(SUBDIRS)

install: $(ROOTADMINLIBLINKS) .WAIT $(COMSUBDIRS) $(SUBDIRS)

headers: install_h

install_h:	$(ROOTINCADMIN) $(HDRSUBDIRS) $(COMSUBDIRS) $(SUBDIRS)

# library dependencies
libaiscf_pymod:		libaiscf
liblogsvc_pymod:	liblogsvc
libtransfer_pymod:	libtransfer liblogsvc
libti_pymod:		libti
liborchestrator:	libtd liblogsvc libti libtransfer_pymod libict
libict:			liblogsvc libti libtransfer_pymod
libtd:			liblogsvc
libti:			liblogsvc
libtransfer:		liblogsvc
libict_pymod:		liblogsvc
libtarget_pymod:	libtd libti


$(ROOTADMINLIBLINKS):
	$(RM) $@; $(SYMLINK) $(ADMINLIB)/$(@F) $@

$(ROOTINCADMIN):
	$(INS.dir)

$(COMSUBDIRS) $(SUBDIRS) $(HDRSUBDIRS): FRC
	cd $@; pwd; $(MAKE) $(TARGET)

FRC: