29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# CDDL HEADER START
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# The contents of this file are subject to the terms of the
29949e866e40b95795203f3ee46f44a197c946e4stevel# Common Development and Distribution License (the "License").
29949e866e40b95795203f3ee46f44a197c946e4stevel# You may not use this file except in compliance with the License.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
29949e866e40b95795203f3ee46f44a197c946e4stevel# or http://www.opensolaris.org/os/licensing.
29949e866e40b95795203f3ee46f44a197c946e4stevel# See the License for the specific language governing permissions
29949e866e40b95795203f3ee46f44a197c946e4stevel# and limitations under the License.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# When distributing Covered Code, include this CDDL HEADER in each
29949e866e40b95795203f3ee46f44a197c946e4stevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
29949e866e40b95795203f3ee46f44a197c946e4stevel# If applicable, add the following below this CDDL HEADER, with the
29949e866e40b95795203f3ee46f44a197c946e4stevel# fields enclosed by brackets "[]" replaced with your own identifying
29949e866e40b95795203f3ee46f44a197c946e4stevel# information: Portions Copyright [yyyy] [name of copyright owner]
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# CDDL HEADER END
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
29949e866e40b95795203f3ee46f44a197c946e4stevel# Use is subject to license terms.
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# This makefile drives the production of the environ driver kernel
29949e866e40b95795203f3ee46f44a197c946e4stevel# module.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# sun4u implementation architecture dependent
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# Path to the base of the uts directory tree (usually /usr/src/uts).
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevelUTSBASE = ../../..
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# Define the module and object file sets.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevelMODULE = environ
29949e866e40b95795203f3ee46f44a197c946e4stevelOBJECTS = $(ENVIRON_OBJS:%=$(OBJS_DIR)/%)
29949e866e40b95795203f3ee46f44a197c946e4stevelLINTS = $(ENVIRON_OBJS:%.o=$(LINTS_DIR)/%.ln)
29949e866e40b95795203f3ee46f44a197c946e4stevelROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# Include common rules.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.sunfire
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# Define targets
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevelALL_TARGET = $(BINARY)
29949e866e40b95795203f3ee46f44a197c946e4stevelLINT_TARGET = $(MODULE).lint
29949e866e40b95795203f3ee46f44a197c946e4stevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# lint pass one enforcement
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevelCFLAGS += $(CCVERBOSE)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# Turn on doubleword alignment for 64 bit registers
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevelCFLAGS += -dalign
29949e866e40b95795203f3ee46f44a197c946e4stevel
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell#
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell# Define dependency on fhc
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell#
89b43686db1fe9681d80a7cf5662730cb9378caeBayard BellLDFLAGS += -dy -N drv/fhc
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# Default build targets.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel.KEEP_STATE:
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4steveldef: $(DEF_DEPS)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelall: $(ALL_DEPS)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelclean: $(CLEAN_DEPS)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelclobber: $(CLOBBER_DEPS)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevellint: $(LINT_DEPS)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelmodlintlib: $(MODLINTLIB_DEPS)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelclean.lint: $(CLEAN_LINT_DEPS)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevelinstall: $(INSTALL_DEPS)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevel# Include common targets.
29949e866e40b95795203f3ee46f44a197c946e4stevel#
29949e866e40b95795203f3ee46f44a197c946e4stevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.targ