bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# CDDL HEADER START
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# The contents of this file are subject to the terms of the
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# Common Development and Distribution License (the "License").
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# You may not use this file except in compliance with the License.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# or http://www.opensolaris.org/os/licensing.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# See the License for the specific language governing permissions
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# and limitations under the License.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# CDDL HEADER END
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# uts/intel/mii/Makefile
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# Use is subject to license terms.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# This makefile drives the production of the mii support module.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts).
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreUTSBASE = ../..
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# Define the module and object file sets.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreMODULE = mii
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreOBJECTS = $(MII_OBJS:%=$(OBJS_DIR)/%)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreLINTS = $(MII_OBJS:%.o=$(LINTS_DIR)/%.ln)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreWARLOCK_OUT = $(MII_OBJS:%.o=%.ll)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreWARLOCK_OK = $(MODULE).ok
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreWLCMD_DIR = $(UTSBASE)/common/io/warlock
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# Include common rules.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# Define targets
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreALL_TARGET = $(BINARY)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreLINT_TARGET = $(MODULE).lint
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal IyerLDFLAGS += -dy -N misc/mac
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# Default build targets.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore.KEEP_STATE:
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amoredef: $(DEF_DEPS)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amoreall: $(ALL_DEPS)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amoreclean: $(CLEAN_DEPS)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amoreclobber: $(CLOBBER_DEPS)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amorelint: $(LINT_DEPS)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amoremodlintlib: $(MODLINTLIB_DEPS)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amoreinstall: $(INSTALL_DEPS)
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore# Include common targets.
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amore#
bdb9230ac765cb7af3fc1f4119caf2c5720dceb3Garrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ