06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# CDDL HEADER START
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# The contents of this file are subject to the terms of the
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Common Development and Distribution License (the "License").
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# You may not use this file except in compliance with the License.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# or http://www.opensolaris.org/os/licensing.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# See the License for the specific language governing permissions
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# and limitations under the License.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# When distributing Covered Code, include this CDDL HEADER in each
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# If applicable, add the following below this CDDL HEADER, with the
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# fields enclosed by brackets "[]" replaced with your own identifying
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# information: Portions Copyright [yyyy] [name of copyright owner]
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# CDDL HEADER END
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# uts/intel/dev/Makefile
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Use is subject to license terms.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# This makefile drives the production of the dev file system
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# kernel module.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# intel architecture dependent
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Path to the base of the uts directory tree (usually /usr/src/uts).
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuramUTSBASE = ../..
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Define the module and object file sets.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuramMODULE = dev
06db247c678f0e3956535e8a6dec31d6c2108827raghuramOBJECTS = $(DEV_OBJS:%=$(OBJS_DIR)/%)
06db247c678f0e3956535e8a6dec31d6c2108827raghuramLINTS = $(DEV_OBJS:%.o=$(LINTS_DIR)/%.ln)
06db247c678f0e3956535e8a6dec31d6c2108827raghuramROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Include common rules.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuraminclude $(UTSBASE)/intel/Makefile.intel
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Define targets
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuramALL_TARGET = $(BINARY)
06db247c678f0e3956535e8a6dec31d6c2108827raghuramLINT_TARGET = $(MODULE).lint
06db247c678f0e3956535e8a6dec31d6c2108827raghuramINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Override defaults to build a unique, local modstubs.o.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuramMODSTUBS_DIR = $(OBJS_DIR)
06db247c678f0e3956535e8a6dec31d6c2108827raghuramCFLAGS += $(CCVERBOSE)
06db247c678f0e3956535e8a6dec31d6c2108827raghuramLDFLAGS += -dy -Nfs/devfs -Nmisc/dls
06db247c678f0e3956535e8a6dec31d6c2108827raghuramINC_PATH += -I$(UTSBASE)/common/fs/zfs
06db247c678f0e3956535e8a6dec31d6c2108827raghuramINC_PATH += -I$(UTSBASE)/common/io/bpf
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuramCERRWARN += -_gcc=-Wno-parentheses
06db247c678f0e3956535e8a6dec31d6c2108827raghuramCERRWARN += -_gcc=-Wno-unused-label
06db247c678f0e3956535e8a6dec31d6c2108827raghuramCERRWARN += -_gcc=-Wno-uninitialized
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Default build targets.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram.KEEP_STATE:
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuramdef: $(DEF_DEPS)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuramall: $(ALL_DEPS)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuramclean: $(CLEAN_DEPS)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuramclobber: $(CLOBBER_DEPS)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuramlint: $(LINT_DEPS)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghurammodlintlib: $(MODLINTLIB_DEPS)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuramclean.lint: $(CLEAN_LINT_DEPS)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuraminstall: $(INSTALL_DEPS)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Include common targets.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuraminclude $(UTSBASE)/intel/Makefile.targ
06db247c678f0e3956535e8a6dec31d6c2108827raghuram