1*bdb9230aSGarrett D'Amore# 2*bdb9230aSGarrett D'Amore# CDDL HEADER START 3*bdb9230aSGarrett D'Amore# 4*bdb9230aSGarrett D'Amore# The contents of this file are subject to the terms of the 5*bdb9230aSGarrett D'Amore# Common Development and Distribution License (the "License"). 6*bdb9230aSGarrett D'Amore# You may not use this file except in compliance with the License. 7*bdb9230aSGarrett D'Amore# 8*bdb9230aSGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*bdb9230aSGarrett D'Amore# or http://www.opensolaris.org/os/licensing. 10*bdb9230aSGarrett D'Amore# See the License for the specific language governing permissions 11*bdb9230aSGarrett D'Amore# and limitations under the License. 12*bdb9230aSGarrett D'Amore# 13*bdb9230aSGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each 14*bdb9230aSGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*bdb9230aSGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the 16*bdb9230aSGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying 17*bdb9230aSGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner] 18*bdb9230aSGarrett D'Amore# 19*bdb9230aSGarrett D'Amore# CDDL HEADER END 20*bdb9230aSGarrett D'Amore# 21*bdb9230aSGarrett D'Amore# 22*bdb9230aSGarrett D'Amore# uts/intel/mii/Makefile 23*bdb9230aSGarrett D'Amore# 24*bdb9230aSGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25*bdb9230aSGarrett D'Amore# Use is subject to license terms. 26*bdb9230aSGarrett D'Amore# 27*bdb9230aSGarrett D'Amore# This makefile drives the production of the mii support module. 28*bdb9230aSGarrett D'Amore# 29*bdb9230aSGarrett D'Amore 30*bdb9230aSGarrett D'Amore# 31*bdb9230aSGarrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts). 32*bdb9230aSGarrett D'Amore# 33*bdb9230aSGarrett D'AmoreUTSBASE = ../.. 34*bdb9230aSGarrett D'Amore 35*bdb9230aSGarrett D'Amore# 36*bdb9230aSGarrett D'Amore# Define the module and object file sets. 37*bdb9230aSGarrett D'Amore# 38*bdb9230aSGarrett D'AmoreMODULE = mii 39*bdb9230aSGarrett D'AmoreOBJECTS = $(MII_OBJS:%=$(OBJS_DIR)/%) 40*bdb9230aSGarrett D'AmoreLINTS = $(MII_OBJS:%.o=$(LINTS_DIR)/%.ln) 41*bdb9230aSGarrett D'AmoreROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 42*bdb9230aSGarrett D'AmoreWARLOCK_OUT = $(MII_OBJS:%.o=%.ll) 43*bdb9230aSGarrett D'AmoreWARLOCK_OK = $(MODULE).ok 44*bdb9230aSGarrett D'AmoreWLCMD_DIR = $(UTSBASE)/common/io/warlock 45*bdb9230aSGarrett D'Amore 46*bdb9230aSGarrett D'Amore# 47*bdb9230aSGarrett D'Amore# Include common rules. 48*bdb9230aSGarrett D'Amore# 49*bdb9230aSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel 50*bdb9230aSGarrett D'Amore 51*bdb9230aSGarrett D'Amore# 52*bdb9230aSGarrett D'Amore# Define targets 53*bdb9230aSGarrett D'Amore# 54*bdb9230aSGarrett D'AmoreALL_TARGET = $(BINARY) 55*bdb9230aSGarrett D'AmoreLINT_TARGET = $(MODULE).lint 56*bdb9230aSGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 57*bdb9230aSGarrett D'Amore 58*bdb9230aSGarrett D'AmoreLDFLAGS += -dy 59*bdb9230aSGarrett D'Amore 60*bdb9230aSGarrett D'Amore# 61*bdb9230aSGarrett D'Amore# Default build targets. 62*bdb9230aSGarrett D'Amore# 63*bdb9230aSGarrett D'Amore.KEEP_STATE: 64*bdb9230aSGarrett D'Amore 65*bdb9230aSGarrett D'Amoredef: $(DEF_DEPS) 66*bdb9230aSGarrett D'Amore 67*bdb9230aSGarrett D'Amoreall: $(ALL_DEPS) 68*bdb9230aSGarrett D'Amore 69*bdb9230aSGarrett D'Amoreclean: $(CLEAN_DEPS) 70*bdb9230aSGarrett D'Amore $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 71*bdb9230aSGarrett D'Amore 72*bdb9230aSGarrett D'Amoreclobber: $(CLOBBER_DEPS) 73*bdb9230aSGarrett D'Amore $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 74*bdb9230aSGarrett D'Amore 75*bdb9230aSGarrett D'Amorelint: $(LINT_DEPS) 76*bdb9230aSGarrett D'Amore 77*bdb9230aSGarrett D'Amoremodlintlib: $(MODLINTLIB_DEPS) 78*bdb9230aSGarrett D'Amore 79*bdb9230aSGarrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS) 80*bdb9230aSGarrett D'Amore 81*bdb9230aSGarrett D'Amoreinstall: $(INSTALL_DEPS) 82*bdb9230aSGarrett D'Amore 83*bdb9230aSGarrett D'Amore# 84*bdb9230aSGarrett D'Amore# Include common targets. 85*bdb9230aSGarrett D'Amore# 86*bdb9230aSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ 87