Makefile revision 5027ae116939e77882ac5560962b15d8a69c9235
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# CDDL HEADER START
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# The contents of this file are subject to the terms of the
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# Common Development and Distribution License (the "License").
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# You may not use this file except in compliance with the License.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# or http://www.opensolaris.org/os/licensing.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# See the License for the specific language governing permissions
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# and limitations under the License.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# When distributing Covered Code, include this CDDL HEADER in each
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# If applicable, add the following below this CDDL HEADER, with the
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# fields enclosed by brackets "[]" replaced with your own identifying
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# information: Portions Copyright [yyyy] [name of copyright owner]
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# CDDL HEADER END
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# Copyright 2010 Nexenta Systems, Inc. All rights reserved.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# Use is subject to license terms.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# This makefile drives the production of the kernel configuration files.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# intel architecture dependent
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# Path to the base of the uts directory tree (usually /usr/src/uts).
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# Include common rules.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# Define the module and object file sets.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego ColantoniCONFIGFILES = name_to_major minor_perm driver_aliases name_to_sysnum \
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego ColantoniALTBOOTIMAGE = solaris.xpm # Temporary, for compatibility
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego ColantoniSRCFILES = $(CONFIGFILES:%=$(SRCDIR)/%) $(SECCONFIG:%=$(SRCDIR)/%)
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego ColantoniROOTCONFIGFILES = $(CONFIGFILES:%=$(ROOTETC)/%) $(SECCONFIG:%=$(ROOTETCSEC)/%)
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego ColantoniROOTCONFIGFILES += $(BOOTIMAGE:%=$(ROOTBOOT)/%)
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego ColantoniROOTCONFIGFILES += $(BOOTENVRC:%=$(BOOTSOLARIS)/%)
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego ColantoniROOTCONFIGFILES += $(DEVMASTER:%=$(BOOTDEVICEDB)/%)
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego ColantoniROOTALTBOOTIMAGE = $(ALTBOOTIMAGE:%=$(ROOTBOOT)/%)
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# Default build targets.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoniinstall: all $(ROOTCONFIGFILES) $(ROOTALTBOOTIMAGE)
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# The ROOTETC directory is made by ../../../Targetdirs
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# through the rootdirs target in ../../../Makefile.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# etc/path_to_inst has permissions different from the other config files
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni$(ROOTBOOT)/solaris.xpm: $(ROOTBOOT)/splashimage.xpm
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni $(RM) $@; $(LN) $(ROOTBOOT)/splashimage.xpm $@
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni$(BOOTDEVICEDB)/%: $(BOOTDEVICEDB) $(SRCDIR)/%
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni$(SRCDIR)/priv_names: $(PRIVS_DEF) $(PRIVS_AWK)
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pnamesfile=$@
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# No lints, so keep the clobber and clean targets reasonable.
ea342a784cd8d924a42a5721a4b0c42b4d644a93Diego Colantoni# Include common targets.